[SOLVED]: PHP Errors

Forum for questions and support relating to the 1.24.x releases only.
Locked
HomeServer
Posts: 7
Joined: Tue Jun 29, 2010 8:38 am

[SOLVED]: PHP Errors

Post by HomeServer »

ZM 1.24.2 on Ubuntu 10.04

Copy of Apache2 log below;

[Mon Jul 19 15:18:17 2010] [error] [client 127.0.0.1] PHP Warning: Unknown: open(/var/lib/php5/sess_8j32dks3cmvfso0vchntj24gt7, O_RDWR) failed: Permission denied (13) in Unknown on line 0, referer: http://localhost/index.php?username=xxx ... ew=montage
[Mon Jul 19 15:18:17 2010] [error] [client 127.0.0.1] PHP Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/var/lib/php5) in Unknown on line 0, referer: http://localhost/index.php?username=xxx ... ew=montage




What attributes should /var/lib/php5 be?

Is this a fault with ZM?

Currently /var/lib/php5 is

drwx-wx-wt 2 root root 4096 2010-07-19 15:18 php5


Is this correct??
Last edited by HomeServer on Wed Jul 21, 2010 3:41 pm, edited 1 time in total.
ilios
Posts: 20
Joined: Sun Jun 20, 2010 5:28 pm

Post by ilios »

the first error seems to be a permission issue try chmod 754 /var/lib/php5

that error should be fixed, don't know about the other error, witch distro are you using?
F5 is our mantra
ilios
Posts: 20
Joined: Sun Jun 20, 2010 5:28 pm

Post by ilios »

ilios wrote:the first error seems to be a permission issue try chmod 754 /var/lib/php5

that error should be fixed, don't know about the other error, witch distro are you using?
also chown www-data /var/lib/php5
F5 is our mantra
HomeServer
Posts: 7
Joined: Tue Jun 29, 2010 8:38 am

Post by HomeServer »

Thanks for the reply.

Have changed attributes as follows;

drwxr-xr-T 2 www-data root 4096 2010-07-21 07:58 php5

But now get these errors;


[Wed Jul 21 08:31:19 2010] [error] [client 127.0.0.1] array (\n 0 => \n array (\n 'file' => '/var/www/zm/ajax/stream.php',\n 'line' => 55,\n 'function' => 'ajaxError',\n 'args' => \n array (\n 0 => 'socket_sendto( /tmp/zms-989377s.sock ) failed: No such file or directory',\n ),\n ),\n 1 => \n array (\n 'file' => '/var/www/zm/index.php',\n 'line' => 116,\n 'args' => \n array (\n 0 => '/var/www/zm/ajax/stream.php',\n ),\n 'function' => 'require_once',\n ),\n), referer: http://localhost/index.php?username=xxx ... ew=montage
[Wed Jul 21 08:31:21 2010] [notice] caught SIGTERM, shutting down
PHP Deprecated: Comments starting with '#' are deprecated in /etc/php5/apache2/conf.d/mcrypt.ini on line 1 in Unknown on line 0
[Wed Jul 21 08:32:09 2010] [notice] Apache/2.2.14 (Ubuntu) PHP/5.3.2-1ubuntu4.2 with Suhosin-Patch configured -- resuming normal operations

ajaxError ???? any ideas????

SOLVED: simply refresh the browser :)
Locked