[SOLVED] Restored Gallery gives internal server error

richardball

Joined: 2008-12-06
Posts: 2
Posted: Wed, 2012-12-12 18:52


Gallery version 2.3 (to the best of my knowledge - I can't log in to check:
PHP version 5.3.19:
PHPInfo Link (see FAQ):
Webserver 2.2.23:
Database 5.1.65-cll:
Activated toolkits NetPbm, GD and ImageMagic - but these are not yet present on the new server:
Operating system Linux:
Browser Firefox, IE9 or Chrome:

I have several Gallery 2 databases that have worked very well for several years.

The server;s hard disk had to be changed and the web sites were backed up with CPanel, a new sever installed on the new hard diak, and the web sites were restored to the new web server.

The Gallery installations won't run.

I get an 'Internal server error' and the error log has several messages of this type:

PHP Warning: rename(/tmp/11597-fast.inc8LE6tq,/home/familia/biblio_base/cache/entity/1/1/11597-fast.inc) [<a href='function.rename'>function.rename</a>]: Permission denied in /home/familia/public_html/biblio/modules/core/classes/GalleryPlatform.class on line 450

referring to locks, cache/entity

The php version has moved from 5.2 to 5.3 on newly installed server.

What permissions would be required for it to be able to open its stream - owner of these files in the data folder is web server and permissions are all 755.

Help would be much appreciated if a simple solution could be found.

Thank you,

Richard Ball

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Wed, 2012-12-12 18:57

chmod -R 0777 /home/familia/biblio_base

-s
________________________________
All New jQuery Minislideshow for G2/G3

 
richardball

Joined: 2008-12-06
Posts: 2
Posted: Sun, 2012-12-16 14:43

Thank you for your suggestion, but it was not the correct one.

The new web server (Apache) had Apache's suexec installed (not PHP suexec) which requires all folders to be permission 755 and all folders to be owned by the web site (which the original Gallery installations were not).

Having changed all the ownerships to be the same as the web site and the permissions to 755, the sites worked OK, but needed Imagemagick re-installing on the new web server, preferably in the same path as before or reconfiguring the Gallery in admin view.

(I can't see how to mark this posting 'solved' )

All the best,

Richard