PDA

View Full Version : Problem with installing Gallery2


lamnk
09-05-2007, 11:08 AM
At the very beginning of the installation i got this following message:
Warning: session_start() [function.session-start]: open(/var/lib/php/session/sess_k7s27sjs03qlncd01afrnjihj3, O_RDWR) failed: Permission denied (13) in /var/www/vhosts/xxx.com/httpdocs/anh/lib/support/GallerySetupUtilities.class on line 348

Warning: session_start() [function.session-start]: open(/var/lib/php/session/sess_68de0f7e758d46746fff15589e81d6d7, O_RDWR) failed: Permission denied (13) in /var/www/vhosts/xxx.com/httpdocs/anh/lib/support/GallerySetupUtilities.class on line 75
When i turn LSWS off and switch to apache there's no error at all

So where is the problem here ? (I got a wordpress blog on the same domain and it runs ok )

mistwang
09-05-2007, 11:12 AM
With LiteSpeed, you run php with suexec, while with Apache, php run as "nobody", so you have permission problem when access session files. You should remove those session files having problem with.

lamnk
09-05-2007, 11:27 AM
Hmm, i tried to remove the session files in /var/lib/php/session/ but the error still occurs

mistwang
09-05-2007, 11:32 AM
close all your browser windows and reopen.

lamnk
09-05-2007, 12:18 PM
Still no luck though ...

Guess i need to install the script with apache and then switch to LSWS and see if it works

lamnk
09-05-2007, 03:41 PM
Installation went fine with apache and the script runs smoothly, i can add, edit photos ... but switching to LSWS give me a total blank page :(

mistwang
09-05-2007, 03:53 PM
It is a file permission problem.

Maybe you can turn off php suexec by changing
http://www.litespeedtech.com/docs/webserver/config/vhostlist/#setUidMode

to "Server UID".

lamnk
09-05-2007, 04:06 PM
Doesn't change anything, i even turned Restrained off then restarted LS

lamnk
09-06-2007, 05:35 PM
Update: I installed LSWS on another dedicated box (last time it was on a vps). Gallery runs normally with the default shipped php package. When i compile & install php like your guide in wiki, i get the same message in the first post.