tapupartforpres Posted August 4, 2008 Share Posted August 4, 2008 Hello people. I am sort of new to .php and have a site that I am getting an error. Works fine live, but locally NO GO? I saw a bunch of posts on this exact same error, but nothing has worked. Any insight would be great. Thanks Warning: session_start() [function.session-start]: open(/var/folders/xs/xsUmeAUQFTymmu9rtBvzq++++TI/-Tmp-//sess_27fd27289c34b2b1e451d03aeda09111, O_RDWR) failed: Permission denied (13) in /Applications/xampp/xamppfiles/htdocs/wineworks/classes/session/session.class.php on line 34 Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /Applications/xampp/xamppfiles/htdocs/wineworks/classes/session/session.class.php:34) in /Applications/xampp/xamppfiles/htdocs/wineworks/classes/session/session.class.php on line 34 Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /Applications/xampp/xamppfiles/htdocs/wineworks/classes/session/session.class.php:34) in /Applications/xampp/xamppfiles/htdocs/wineworks/classes/session/session.class.php on line 34 Warning: Cannot modify header information - headers already sent by (output started at /Applications/xampp/xamppfiles/htdocs/wineworks/classes/session/session.class.php:34) in /Applications/xampp/xamppfiles/htdocs/wineworks/classes/session/session.class.php on line 35 Quote Link to comment Share on other sites More sharing options...
Jabop Posted August 4, 2008 Share Posted August 4, 2008 Looks like you don't have permissions to read/write from your sessions directory on your live site. Contact your server administrator if you can't fix this yourself. Quote Link to comment Share on other sites More sharing options...
Johntron Posted August 4, 2008 Share Posted August 4, 2008 You need read and write permissions on /var/folders/xs/xsUmeAUQFTymmu9rtBvzq++++TI/-Tmp-//sess_27fd27289c34b2b1e451d03aeda09111. You may be able to do this through FTP, or you can go to the terminal. In the terminal it would be `chmod u+rwx /var/folders/xs/xsUmeAUQFTymmu9rtBvzq++++TI/-Tmp-/`, assuming this folder belongs to the same user that Apache is running as. Quote Link to comment Share on other sites More sharing options...
tapupartforpres Posted August 4, 2008 Author Share Posted August 4, 2008 No it's working live, just not locally. Locally the sessions directory is read/write. Quote Link to comment Share on other sites More sharing options...
ngreenwood6 Posted August 4, 2008 Share Posted August 4, 2008 I would make sure that sessions is enabled on your local server. Quote Link to comment Share on other sites More sharing options...
tapupartforpres Posted August 4, 2008 Author Share Posted August 4, 2008 I checked the php.ini file to see if sessions was enabled, but no go? I don't think I found the place where I can turn it on? If this helps, I have other local sites that are working fine? Thanks again. Quote Link to comment Share on other sites More sharing options...
tapupartforpres Posted August 4, 2008 Author Share Posted August 4, 2008 Looks like you don't have permissions to read/write from your sessions directory on your live site. Contact your server administrator if you can't fix this yourself. I fixed this on the local site and no go. Quote Link to comment Share on other sites More sharing options...
tapupartforpres Posted August 4, 2008 Author Share Posted August 4, 2008 You need read and write permissions on /var/folders/xs/xsUmeAUQFTymmu9rtBvzq++++TI/-Tmp-//sess_27fd27289c34b2b1e451d03aeda09111. You may be able to do this through FTP, or you can go to the terminal. In the terminal it would be `chmod u+rwx /var/folders/xs/xsUmeAUQFTymmu9rtBvzq++++TI/-Tmp-/`, assuming this folder belongs to the same user that Apache is running as. There is no such directory. The file name at the end changes every time I refresh. Quote Link to comment Share on other sites More sharing options...
ngreenwood6 Posted August 4, 2008 Share Posted August 4, 2008 You should see something like this session.use_cookies = 1 in the php.ini file Quote Link to comment Share on other sites More sharing options...
Johntron Posted August 4, 2008 Share Posted August 4, 2008 You need read and write permissions on /var/folders/xs/xsUmeAUQFTymmu9rtBvzq++++TI/-Tmp-//sess_27fd27289c34b2b1e451d03aeda09111. You may be able to do this through FTP, or you can go to the terminal. In the terminal it would be `chmod u+rwx /var/folders/xs/xsUmeAUQFTymmu9rtBvzq++++TI/-Tmp-/`, assuming this folder belongs to the same user that Apache is running as. There is no such directory. The file name at the end changes every time I refresh. Sorry, try this . . . chmod -R u+rwx /var/folders/xs/ Quote Link to comment Share on other sites More sharing options...
tapupartforpres Posted August 4, 2008 Author Share Posted August 4, 2008 You need read and write permissions on /var/folders/xs/xsUmeAUQFTymmu9rtBvzq++++TI/-Tmp-//sess_27fd27289c34b2b1e451d03aeda09111. You may be able to do this through FTP, or you can go to the terminal. In the terminal it would be `chmod u+rwx /var/folders/xs/xsUmeAUQFTymmu9rtBvzq++++TI/-Tmp-/`, assuming this folder belongs to the same user that Apache is running as. There is no such directory. The file name at the end changes every time I refresh. Sorry, try this . . . Sorry man, it didn't work. I went to terminal and copied and pasted? chmod -R u+rwx /var/folders/xs/ Quote Link to comment Share on other sites More sharing options...
tapupartforpres Posted August 4, 2008 Author Share Posted August 4, 2008 You should see something like this session.use_cookies = 1 in the php.ini file I went to the php.ini file (I opened it in text editor on a Mac, I know about the .htaccess with a Mac, so just wanted to add that) and it still s giving me the same errors. It was defaulted to a =1, changed to =0 and back. Nothing. What do you think? By the way the php.ini file is in the XAMPP program files. Quote Link to comment Share on other sites More sharing options...
DarkWater Posted August 4, 2008 Share Posted August 4, 2008 Did you restart the Apache server afterwards? Quote Link to comment Share on other sites More sharing options...
tapupartforpres Posted August 4, 2008 Author Share Posted August 4, 2008 Did you restart the Apache server afterwards? Thank you for the reply. Wow a forum, where people actually help. I just tried that all 3 above suggestions and restart after every time and it is still giving me these errors. I always miss something small, thanks for your help. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.