lists.netmrg.net lists.netmrg.net
NetMRG discussion and support
 
FAQ :: Search :: Memberlist :: Usergroups :: Register
Profile :: Log in to check your private messages :: Log in

session_start issues

 
Post new topic   Reply to topic    lists.netmrg.net Forum Index -> Support
Author Message
m4djack
Beginner


Joined: 16 Jul 2004
Posts: 3

PostPosted: Mon Aug 16, 2004 8:09 am    Post subject: session_start issues Reply with quote

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.php:36) 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.php:36) 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.
Back to top
silfreed
Site Admin


Joined: 19 Jan 2003
Posts: 394
Location: Shippensburg, PA, USA

PostPosted: Mon Aug 16, 2004 12:18 pm    Post subject: Reply with quote

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 chown nobody:nobody /root/tmp; chmod 775 /root/tmp)

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
Back to top
Display posts from previous:   
Post new topic   Reply to topic    lists.netmrg.net Forum Index -> Support All times are GMT
Page 1 of 1

 



smartBlue Style © 2002 Smartor
Powered by phpBB © 2001, 2002 phpBB Group