error while open in web

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

Post Reply
edy
Posts: 1
Joined: Sun May 02, 2004 11:37 am

error while open in web

Post by edy »

dear all,
i have installed cacti, and when i open in web http://192.168.1.83/cacti/
it says :

Warning: open(/tmp/sess_752ef74936204378deb80e809f59ad3b, O_RDWR) failed: No such file or directory (2) in /htdocs/cacti/include/config.php on line 74

Fatal error: Call to undefined function: mysql_connect() in /htdocs/cacti/lib/adodb/drivers/adodb-mysql.inc.php on line 320

Warning: open(/tmp/sess_752ef74936204378deb80e809f59ad3b, O_RDWR) failed: No such file or directory (2) in Unknown on line 0

Warning: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/tmp) in Unknown on line 0


any suggestion for me?
really important, need help

thx
User avatar
branix
Posts: 39
Joined: Sun Mar 14, 2004 10:38 am

Post by branix »

First check your php.ini settings, the section regarding [sessions], especially the sessions path.
Then make sure your php instalation has mysql support (as it does not appear to).
edy priono

Post by edy priono »

i have check my php instalation, when i test my php (test.php), it says that in configure command :
'./configure' '--with-apxs=/usr/sbin/apxs' '--without-mysql' '

but in mysql section , it says:
mysql support is enabled

hmm, i have try to check my php.ini, but i don't understand what you mean with :
the section regarding [sessions], especially the sessions path.

may i have your email?, i want to send you my php.ini, and my test.php result, please

thx

edy priono
User avatar
branix
Posts: 39
Joined: Sun Mar 14, 2004 10:38 am

Post by branix »

About your sessions:

Code: Select all

mkdir /tmp
chmod 777 /tmp
modify php.ini (or check it):

Code: Select all

session.save_path  = /tmp
Restart your web server.

And finally, rebuid your php instalation without the '--without-mysql' instruction.
Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests