Announcement

#16 2012-10-31 23:02:42

deljones
Member
2012-09-06
60

Re: moving to another server

Hi

Ive moved everything using ssh ftp however the db on the new server has different credentials...

Where is the file in Piwigo that I need to edit to connect properly to the new server..


Derek

Offline

 

#17 2012-11-01 00:11:25

deljones
Member
2012-09-06
60

Re: moving to another server

Hi all (again)

I have copied my old piwigo install to a new server using ssh. Exported and re-imported my db file.

Ran piwigo and got the following error.

./_data/templates_c no write access

#1    mkgetdir /var/www/piwigo/include/template.class.php(82)
#2    Template::Template /var/www/piwigo/include/common.inc.php(200)
#3    include_once /var/www/piwigo/index.php(26)

HELP!!!!!

Del

Offline

 

#18 2012-11-01 00:12:34

mendip_discovery
Member
Mendip Hills, Somerset, UK
2012-05-19
91

Re: moving to another server

site > local > config > database.inc.php


Jack

Offline

 

#19 2012-11-01 00:14:22

mendip_discovery
Member
Mendip Hills, Somerset, UK
2012-05-19
91

Re: moving to another server

deljones wrote:

./_data/templates_c no write access

OK this is a folder permissions issue. Use SSH or FTP and change the permissions to the folders.


Jack

Offline

 

#20 2012-11-01 00:16:15

deljones
Member
2012-09-06
60

Re: moving to another server

jack..

All folders?

755?

777 for upload?

Offline

 

#21 2012-11-01 00:18:45

mendip_discovery
Member
Mendip Hills, Somerset, UK
2012-05-19
91

Re: moving to another server

My folders within _data are all 755

To be honest most of the folders are 755



Jack

Offline

 

#22 2012-11-01 00:20:01

deljones
Member
2012-09-06
60

Re: moving to another server

ill give it a go...

Offline

 

#23 2012-11-01 00:20:13

mendip_discovery
Member
Mendip Hills, Somerset, UK
2012-05-19
91

Re: moving to another server

I am on my 3rd server move, so its not too bad.



Jack

Offline

 

#24 2012-11-01 00:30:29

deljones
Member
2012-09-06
60

Re: moving to another server

Hi jack..

Just checked...

ALL folders are 755
ALL files are 664 in the folders and outside

I used SFTP (SSH) to do the transfer.  :( :(

Im doing another transfer again just to make sure but the reult will be the same

./_data/templates_c no write access

#1    mkgetdir /var/www/piwigo/include/template.class.php(82)
#2    Template::Template /var/www/piwigo/include/common.inc.php(200)
#3    include_once /var/www/piwigo/index.php(26)

Del

Offline

 

#25 2012-11-01 00:34:11

mendip_discovery
Member
Mendip Hills, Somerset, UK
2012-05-19
91

Re: moving to another server

Delete the files in /_data/templates_c and maybe up the permissions to higher than 755 for the folder.

I was SSHing earlier for the first time and I used rsync as its a bit smoother and doesn't bother with files of the same size and name...only changes what has changed.


Jack

Offline

 

#26 2012-11-01 00:37:50

deljones
Member
2012-09-06
60

Re: moving to another server

Halfway through the transfer.

What are those templates? The old piwigo is still working... Will deleting these not cause problems?

Offline

 

#27 2012-11-01 00:42:38

mendip_discovery
Member
Mendip Hills, Somerset, UK
2012-05-19
91

Re: moving to another server

IIRC the stuff in _data is temporary stuff. So that templates folder is the cached data. The i is where the thumbnails etc are.

In a odd twist my site is down and there is bugger all I can do about it atm as I think the webhost has blocked my account as I used rsync to copy 200,000 files @ 20G between two servers in the same building, it took less than an hour to do but I think it tripped the auto-ban for using too much server power.




Jack

Offline

 

#28 2012-11-01 00:44:43

deljones
Member
2012-09-06
60

Re: moving to another server

ok.. here goes...

d

Offline

 

#29 2012-11-01 00:47:11

deljones
Member
2012-09-06
60

Re: moving to another server

oh dear same result... :(

Offline

 

#30 2012-11-01 00:48:36

mendip_discovery
Member
Mendip Hills, Somerset, UK
2012-05-19
91

Re: moving to another server

change to 777 and dont forget to SHIFT and refresh to force a new refresh.


Jack

Offline

 

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2024 · Contact