Safe Mode

Discussion in 'Site & Server Administration' started by Earning, Jul 11, 2007.

  1. #1
    Hi,
    Any one can help me to find out where can I change safe mode on or off?
    Linux Server
    CentOS

    Tnx.
     
    Earning, Jul 11, 2007 IP
  2. ilxeon

    ilxeon Peon

    Messages:
    336
    Likes Received:
    48
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Hello
    open php.ini for your server(use pico)
    find safe_mode and assign the values you require, in your case
    safe_mode = Off
    you can find path of php.ini by running phpinfo file.
     
    ilxeon, Jul 11, 2007 IP
  3. Earning

    Earning Well-Known Member

    Messages:
    1,426
    Likes Received:
    96
    Best Answers:
    0
    Trophy Points:
    140
    #3
    Thanks for info.
    any one can help me with exact details please?:)
     
    Earning, Jul 22, 2007 IP
  4. ndreamer

    ndreamer Guest

    Messages:
    339
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    0
    #4
    depends where your php.ini file is.

    login to ssh

    enter
    locate php.ini

    at least one file should display.

    now type
    vi location of php.ini file

    then just find the safe mode setting.

    you will then need to restart apache or your server for the changes to take effect.
     
    ndreamer, Jul 23, 2007 IP
  5. inworx

    inworx Peon

    Messages:
    4,860
    Likes Received:
    201
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Upload a phpinfo file to the server.
    Open it in browser, find the location of php.ini as stated in the phpinfo file.

    Login to ssh and su to root and edit the file using nano or pico
    find safe_mode=XX
    Change its valur to on or off as stated after "="
     
    inworx, Jul 25, 2007 IP