• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

problem with php as fastCGI

L

lolpopl

Guest
Hi,
i use php as fastCGI. and i have a little problem.
In my log i have a lot of message like this :

[14-Apr-2010 22:40:55] PHP Warning: session_start() [<a href='function.session-start'>function.session-start</a>]: open(/tmp/sess_i8gb47tdc6740mev874r8f5i6$
[14-Apr-2010 22:40:55] PHP Warning: Unknown: open(/tmp/sess_i8gb47tdc6740mev874r8f5i64, O_RDWR) failed: Permission denied (13) in Unknown on line 0
[14-Apr-2010 22:40:55] PHP Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct ($

My /tmp folder is in chmod 777.

Do you know why i have this error log?

Thank a lot.
 
777 is not correct permission. There is should be like:

# stat /tmp
File: `/tmp'
Size: 12288 Blocks: 24 IO Block: 4096 directory
Device: 35h/53d Inode: 18093775 Links: 3
Access: (1777/drwxrwxrwt) Uid: ( 0/ root) Gid: ( 0/ root)
 
stat /tmp
File: `/tmp'
Size: 120760 Blocks: 0 IO Block: 4096 directory
Device: 13h/19d Inode: 3560 Links: 3
Access: (1777/drwxrwxrwt) Uid: ( 0/ root) Gid: ( 0/ root)
Access: 2010-04-20 22:10:08.931813976 +0000
Modify: 2010-04-20 22:17:56.910813976 +0000
Change: 2010-04-20 22:17:56.910813976 +0000

I have reboot the server, and it's ok now.
 
777 is not correct permission. There is should be like:
We hit this issue too.

Could you suggest to the developers to have a future version of Plesk to automatically set the correct permissions on that directory?

Thanks.
 
We hit this issue too.

Could you suggest to the developers to have a future version of Plesk to automatically set the correct permissions on that directory?

Thanks.

Why do you think that Plesk should do it? There are a lot of important system files and directories and Plesk should correct it too? I don't understand how system files/dirs permissions can be related to Plesk? If it was changed by you or by some third-party software - Plesk should correct it? :)
 
I stand corrected, we hit a similar issue, but with the directory /var/lib/php/session.

The default RHEL/CentOS permissions won't allow the Plesk sites with PHP in FastCGI mode to write to it.

It looks like the issue is already documented in your KB:
http://kb.odin.com/7056

It would be great if you could have that fixed in the next Plesk release.
 
I stand corrected, we hit a similar issue, but with the directory /var/lib/php/session.

The default RHEL/CentOS permissions won't allow the Plesk sites with PHP in FastCGI mode to write to it.

It looks like the issue is already documented in your KB:
http://kb.parallels.com/7056

It would be great if you could have that fixed in the next Plesk release.

They never fixed this issue.

The only solution is chmod 777 /var/lib/php/session
 
Back
Top