session_start issues

m4djack

16-08-2004 04:09:46

Hello there.

I tried to install netmrg 0.16 on Mandrake 10.0. FIrst, i downloaded and installed mysql from mysql(rpm format) packages i got from mysql.com. Then i followed the steps as desribed in http//www.php.net/manual/en/install.apache.php. Both of the apache 1.3.31 and php 5.0.0. are in .gz format. All the installation above went fine without any errors. Then i tried out the apache server to confirm that it was able to display php pages using <?phpinfo()?> and the result was normal.

Next, i started to compile netmrg and edit all those netmrg.xml files to suit with the database i have created. After that, i login into http//localhost/netmrg/index.php and this is what i get -

Warning session_start() [function.session-start] open(/root/tmp/sess_2c9f2eb331a79ac65f9bcab9524f6614, O_RDWR) failed Permission denied (13) in /usr/local/var/www/netmrg/include/config.php on line 36

Warning session_start() [function.session-start] Cannot send session cookie - headers already sent by (output started at /usr/local/var/www/netmrg/include/config.php36) in /usr/local/var/www/netmrg/include/config.php on line 36

Warning session_start() [function.session-start] Cannot send session cache limiter - headers already sent (output started at /usr/local/var/www/netmrg/include/config.php36) in /usr/local/var/www/netmrg/include/config.php on line 36

Warning mysql_connect() [function.mysql-connect] Access denied for user 'netmrguser@localhost' (Using password YES) in /usr/local/var/www/netmrg/lib/database.php on line 33
DB_ERROR Cannot connect to the database server.
Warning Unknown open(/root/tmp/sess_2c9f2eb331a79ac65f9bcab9524f6614, O_RDWR) failed Permission denied (13) in Unknown on line 0

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


What does this mean? Is it because i install php using root? For your information, i created a directory at /netmrg-related and put php,apache and netmrg into that folder to compile. I did not compile it at /root directory. I`d appreciate for any reply. Thanks a lot.

silfreed

16-08-2004 08:18:31

It looks like Apache is not able to write PHP's session files to /root/tmp. You can do one of two things

1) Make /root/tmp writable by your apache processes (usually [i3e8b8b5c19]chown nobodynobody /root/tmp; chmod 775 /root/tmp[/i3e8b8b5c19])

2) Move the directory PHP is using for session data somewhere else, like your system temp directory (/tmp). You change this in the php.ini file (I'm not sure where it will be on your system - it's usually /usr/local/lib/).

-Doug