Warning: session_start ... Permission denied

Question:

Q: I receive the following errors when attempting to use iPanel/iHost:

Warning: session_start() [function.session-start]: open(/tmp/sess_1234, O_RDWR) failed: Permission denied (13) in /webroot/ipanel/includes/include.php on line 9

Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /webroot/ipanel/includes/include.php:9) in /webroot/ipanel/includes/include.php on line 9

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /webroot/ipanel/includes/include.php:9) in /webroot/ipanel/includes/include.php on line 9

How do I correct this?

Answer:

These errors indicate a problem with your PHP configuration or filesystem permissions, and are not specifically related to iPanel/iHost. You would encounter the same problems on your server with any script that uses PHP sessions.

You should ask your systems administrator to check your session save path in php.ini, ensure that it's pointing to the correct location, and check the permissions on the session save path to ensure that it's writable by the UID under which PHP is running.