500 Internal error code (3 lines code)

Discussion in 'Site & Server Administration' started by ASTRAPI, Jun 13, 2010.

  1. #1
    Hello

    I was trying to set another path on my account so it will use a folder in my account and not the main server /tmp but i get a 500 Internal error :(

    .htaccess

    <?php
    // session_save_path('/home/account/sessions');
    echo ini_get("session.save_path");
    phpinfo(INFO_ALL);
    ?>

    Any ideas?

    Thank you
     
    ASTRAPI, Jun 13, 2010 IP
  2. oxyhosts2010

    oxyhosts2010 Peon

    Messages:
    11
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Hi,

    create a file "php.ini" in your home folder and set the session_save_path there. it should be in the format as given below.

    =========
    session.save_path = <path to your folder>
    =========

    Save the file and give the ownership of the user.
     
    oxyhosts2010, Jun 13, 2010 IP
  3. ASTRAPI

    ASTRAPI Guest

    Messages:
    500
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    is it possible for one account only in the server as home directory doesn't exist ?
     
    ASTRAPI, Jun 13, 2010 IP
  4. madaboutlinux

    madaboutlinux Member

    Messages:
    250
    Likes Received:
    7
    Best Answers:
    2
    Trophy Points:
    43
    #4
    What is the home directory of the account? Is the server SuPHP enabled?
    If yes, you can use php.ini under the account and set the "session.save_path" value.
    If not, you need to use .htaccess to set the session.save_path value.
    Make sure the permissions of the directory where sessions will be saved are 777.
    BTW, what do the Apache error logs say? They are saved under /etc/httpd/logs/error_log file
     
    madaboutlinux, Jun 14, 2010 IP
  5. ASTRAPI

    ASTRAPI Guest

    Messages:
    500
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Ok fixed thanks :)
     
    ASTRAPI, Jun 14, 2010 IP