• Forum
  • Doc
  • Screenshots
  • Download
  • Donate
  • Contributors
  • Contact
  • Follow @phpfreechat
  • DEMO
  • Board index ‹ Version 2.x Branch ‹ General Support (v2.x)
  • Change font size
  • FAQ
  • Register
  • Login

problem with fresh install

Moderators: OldWolf, re*s.t.a.r.s.*2

Post a reply
6 posts • Page 1 of 1

problem with fresh install

Postby Kinkz » Thu Jan 31, 2013 10:57 am

Hi,

I am trying to set up PFC 2 on my server, but I cannot get it to work.

The chat is displaying and it prompts a visitor for a login, but it does not accept any. The error log seems to be filled with these errors.

[Thu Jan 31 10:23:42 2013] [error] [client 109.109.115.145] exception 'ErrorException' with message 'session_start(): open(/var/lib/php/session/sess_4ul3iaq5o1difpjsddp10enmq1, O_RDWR) failed: Permission denied (13)' in /var/www/free-web.nl/chat/server/routes/auth.php:10, referer: http://chat.free-web.nl/
[Thu Jan 31 10:23:42 2013] [error] [client 109.109.115.145] Stack trace:, referer: http://chat.free-web.nl/
[Thu Jan 31 10:23:42 2013] [error] [client 109.109.115.145] #0 [internal function]: Slim\\Slim::handleErrors(2, 'session_start()...', '/var/www/free-w...', 10, Array), referer: http://chat.free-web.nl/
[Thu Jan 31 10:23:42 2013] [error] [client 109.109.115.145] #1 /var/www/free-web.nl/chat/server/routes/auth.php(10): session_start(), referer: http://chat.free-web.nl/
[Thu Jan 31 10:23:42 2013] [error] [client 109.109.115.145] #2 [internal function]: {closure}(), referer: http://chat.free-web.nl/
[Thu Jan 31 10:23:42 2013] [error] [client 109.109.115.145] #3 /var/www/free-web.nl/chat/server/lib/Slim/Slim/Router.php(200): call_user_func_array(Object(Closure), Array), referer: http://chat.free-web.nl/
[Thu Jan 31 10:23:42 2013] [error] [client 109.109.115.145] #4 /var/www/free-web.nl/chat/server/lib/Slim/Slim/Slim.php(1218): Slim\\Router->dispatch(Object(Slim\\Route)), referer: http://chat.free-web.nl/
[Thu Jan 31 10:23:42 2013] [error] [client 109.109.115.145] #5 /var/www/free-web.nl/chat/server/lib/Slim/Slim/Middleware/Flash.php(86): Slim\\Slim->call(), referer: http://chat.free-web.nl/
[Thu Jan 31 10:23:42 2013] [error] [client 109.109.115.145] #6 /var/www/free-web.nl/chat/server/lib/Slim/Slim/Middleware/MethodOverride.php(94): Slim\\Middleware\\Flash->call(), referer: http://chat.free-web.nl/
[Thu Jan 31 10:23:42 2013] [error] [client 109.109.115.145] #7 /var/www/free-web.nl/chat/server/lib/Slim/Slim/Middleware/PrettyExceptions.php(67): Slim\\Middleware\\MethodOverride->call(), referer: http://chat.free-web.nl/
[Thu Jan 31 10:23:42 2013] [error] [client 109.109.115.145] #8 /var/www/free-web.nl/chat/server/lib/Slim/Slim/Slim.php(1167): Slim\\Middleware\\PrettyExceptions->call(), referer: http://chat.free-web.nl/
[Thu Jan 31 10:23:42 2013] [error] [client 109.109.115.145] #9 /var/www/free-web.nl/chat/server/index.php(32): Slim\\Slim->run(), referer: http://chat.free-web.nl/
[Thu Jan 31 10:23:42 2013] [error] [client 109.109.115.145] #10 {main}, referer: http://chat.free-web.nl/
[Thu Jan 31 10:23:42 2013] [error] [client 109.109.115.145] PHP Warning: Unknown: open(/var/lib/php/session/sess_4ul3iaq5o1difpjsddp10enmq1, O_RDWR) failed: Permission denied (13) in Unknown on line 0, referer: http://chat.free-web.nl/
[Thu Jan 31 10:23:42 2013] [error] [client 109.109.115.145] PHP Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/var/lib/php/session) in Unknown on line 0, referer: http://chat.free-web.nl/

Does anyone have an idea on where to look?

Kinkz
Kinkz
New member
 
Posts: 4
Joined: Thu Jan 31, 2013 9:48 am
Top

Re: problem with fresh install

Postby phpfreechat » Thu Jan 31, 2013 11:52 pm

What is your PHP version ?
Does your web server have write on this folder: /var/lib/php/session/ ?
phpfreechat
Site Admin
 
Posts: 2657
Joined: Tue Feb 07, 2006 3:35 pm
Location: France
Top

Re: problem with fresh install

Postby Kinkz » Fri Feb 01, 2013 2:53 pm

phpfreechat wrote:What is your PHP version ?
Does your web server have write on this folder: /var/lib/php/session/ ?


I am running PHP 5.3 with suPHP. The user did not have write permissions on the /var/lib/php/session/ so I have set a custom php.ini for the user. The user now has its own session folder and now I am getting these errors.

[Fri Feb 01 14:47:23 2013] [error] [client *.*.*.*] exception 'ErrorException' with message 'scandir(/var/www/free-web.nl/chat/server/container/../data/users) [<a href='function.scandir'>function.scandir</a>]: failed to open dir: No such file or directory' in /var/www/free-web.nl/chat/server/container/users.php:177, referer: http://chat.free-web.nl/
[Fri Feb 01 14:47:23 2013] [error] [client *.*.*.*] Stack trace:, referer: http://chat.free-web.nl/
[Fri Feb 01 14:47:23 2013] [error] [client *.*.*.*] #0 [internal function]: Slim\\Slim::handleErrors(2, 'scandir(/var/ww...', '/var/www/free-w...', 177, Array), referer: http://chat.free-web.nl/
[Fri Feb 01 14:47:23 2013] [error] [client *.*.*.*] #1 /var/www/free-web.nl/chat/server/container/users.php(177): scandir('/var/www/free-w...'), referer: http://chat.free-web.nl/
[Fri Feb 01 14:47:23 2013] [error] [client *.*.*.*] #2 /var/www/free-web.nl/chat/server/container/users.php(149): Container_users::getUsers(), referer: http://chat.free-web.nl/
[Fri Feb 01 14:47:23 2013] [error] [client *.*.*.*] #3 /var/www/free-web.nl/chat/server/routes/auth.php(7): Container_users::runGC(), referer: http://chat.free-web.nl/
[Fri Feb 01 14:47:23 2013] [error] [client *.*.*.*] #4 [internal function]: {closure}(), referer: http://chat.free-web.nl/
[Fri Feb 01 14:47:23 2013] [error] [client *.*.*.*] #5 /var/www/free-web.nl/chat/server/lib/Slim/Slim/Router.php(200): call_user_func_array(Object(Closure), Array), referer: http://chat.free-web.nl/
[Fri Feb 01 14:47:23 2013] [error] [client *.*.*.*] #6 /var/www/free-web.nl/chat/server/lib/Slim/Slim/Slim.php(1218): Slim\\Router->dispatch(Object(Slim\\Route)), referer: http://chat.free-web.nl/
[Fri Feb 01 14:47:23 2013] [error] [client *.*.*.*] #7 /var/www/free-web.nl/chat/server/lib/Slim/Slim/Middleware/Flash.php(86): Slim\\Slim->call(), referer: http://chat.free-web.nl/
[Fri Feb 01 14:47:23 2013] [error] [client *.*.*.*] #8 /var/www/free-web.nl/chat/server/lib/Slim/Slim/Middleware/MethodOverride.php(94): Slim\\Middleware\\Flash->call(), referer: http://chat.free-web.nl/
[Fri Feb 01 14:47:23 2013] [error] [client *.*.*.*] #9 /var/www/free-web.nl/chat/server/lib/Slim/Slim/Middleware/PrettyExceptions.php(67): Slim\\Middleware\\MethodOverride->call(), referer: http://chat.free-web.nl/
[Fri Feb 01 14:47:23 2013] [error] [client *.*.*.*] #10 /var/www/free-web.nl/chat/server/lib/Slim/Slim/Slim.php(1167): Slim\\Middleware\\PrettyExceptions->call(), referer: http://chat.free-web.nl/
[Fri Feb 01 14:47:23 2013] [error] [client *.*.*.*] #11 /var/www/free-web.nl/chat/server/index.php(32): Slim\\Slim->run(), referer: http://chat.free-web.nl/
[Fri Feb 01 14:47:23 2013] [error] [client *.*.*.*] #12 {main}, referer: http://chat.free-web.nl/

Kinkz
Kinkz
New member
 
Posts: 4
Joined: Thu Jan 31, 2013 9:48 am
Top

Re: problem with fresh install

Postby phpfreechat » Fri Feb 01, 2013 9:35 pm

Did you give 777 rights to /var/www/free-web.nl/chat/server/data/ folder ?
phpfreechat
Site Admin
 
Posts: 2657
Joined: Tue Feb 07, 2006 3:35 pm
Location: France
Top

Re: problem with fresh install

Postby Kinkz » Sat Feb 02, 2013 2:17 pm

phpfreechat wrote:Did you give 777 rights to /var/www/free-web.nl/chat/server/data/ folder ?


That solved the problem. But why is 777 needed?

Kinkz
Kinkz
New member
 
Posts: 4
Joined: Thu Jan 31, 2013 9:48 am
Top

Re: problem with fresh install

Postby phpfreechat » Sat Feb 02, 2013 3:03 pm

Cause phpfreechat stores chat users and chat messages into this folder.
phpfreechat
Site Admin
 
Posts: 2657
Joined: Tue Feb 07, 2006 3:35 pm
Location: France
Top


Post a reply
6 posts • Page 1 of 1

Return to General Support (v2.x)

Who is online

Users browsing this forum: No registered users and 2 guests

  • Board index
  • The team • Delete all board cookies • All times are UTC + 1 hour
Powered by phpBB® Forum Software © phpBB Group
Sign in
Wrong credentials
Sign up I forgot my password
.
jeu-gratuit.net | more partners
Fork me on GitHub