Remote server moved hardware - now no one can login at the forum
  • SickoSicko
    Posts: 8
    Greetings,

    I had my site moved to another hardware at my remote VPS, while maintaining the same domain and remote paths.

    Now the forum is displaying some strange warning messages and can't login. Some has any idea what could it be?

    Here's the address: http://lolhehehe.com/forum/
  • DinoboffDinoboff
    Posts: 1,880

    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
    There are some problems with your php session settings. Make sure Apache or php has write permission on "/var/lib/php/session".
  • SickoSicko
    Posts: 8
    How would I do that? Sorry for the dumb question
  • DinoboffDinoboff
    Posts: 1,880
    It is not a dump question but it is specific to your server.

    But you should let your provider or sysadmin know about it and ask them to fix it. If you don't have support, look in your provider faq or ask on their forum how to correctly setup php session.
  • SickoSicko
    Posts: 8
    It is a VPS, so no support.

    I have all access to the server, just need to know how to do it. Is there any place I can find this info?
  • DinoboffDinoboff
    Posts: 1,880

    ps aux | grep httpd
    sudo mkdir -p /var/lib/php/session
    sudo chown -R [APACHE USER NAME] /var/lib/php/session
    sudo chmod -R 700 /var/lib/php/session
    The first command will show the Apache process. The first column will show the Apache user name (one will be "root" but it just Apache process manager).
  • SickoSicko
    Posts: 8
    Did it, but the issue persists.

    I did a ls -la at/var/lib/php/ and it returned:

    drwx------ 2 apache apache 4096 Apr 7 2009 session
  • DinoboffDinoboff
    Posts: 1,880
    To check if the permission is the problem, try:
    sudo chmod -R 777 /var/lib/php/session
  • SickoSicko
    Posts: 8
    That was it. Thanks a lot man.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Login with Facebook Sign In with Google Sign In with OpenID Sign In with Twitter

In this Discussion

Who's Online 1

paintballer82