Webfusion SSH - Turn safe mode off ??? **URGENT**

Discussion in 'Site & Server Administration' started by adam1987, Feb 7, 2007.

  1. #1
    Can someone please help me or give me a step by step guide to turning safe mode off via SSH !!!!

    Thanks :)
     
    adam1987, Feb 7, 2007 IP
  2. Brokentwo

    Brokentwo Peon

    Messages:
    70
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #2
    I'm assuming you mean turn safe mode off in php.

    If you have root access and WHM/cPanel then you can use Easy Apache to achieve this.

    Here's an excellent tutorial on how to use Easy Apache.
     
    Brokentwo, Feb 7, 2007 IP
  3. adam1987

    adam1987 Well-Known Member

    Messages:
    714
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    110
    #3
    Just have plesk VPS ...
     
    adam1987, Feb 8, 2007 IP
  4. niloy

    niloy Banned

    Messages:
    46
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    To shut down safe mode do the following.

    1. Login to root using shell.
    2. type the following command:
    nano /usr/local/Zend/etc/php.ini

    if you dont have nano editor then use pico or vi to edit the php.info file
    3. Search for the line "safe_mode"
    4. Change the value to "Off".
    5. Save the file.
    6. Restart your Apache/Httpd

    Your safe mode should be shut down. :)
     
    niloy, Feb 8, 2007 IP
  5. krakjoe

    krakjoe Well-Known Member

    Messages:
    1,795
    Likes Received:
    141
    Best Answers:
    0
    Trophy Points:
    135
    #5
    you may need to do locate php.ini or whereis php.ini if it's not there....

    the command to restart apache is httpd restart or apachectl restart, probably the former.
     
    krakjoe, Feb 8, 2007 IP
  6. niloy

    niloy Banned

    Messages:
    46
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    A bit mistake :)

    correct command:
    service httpd restart
    Code (markup):
    or

    /etc/init.d/httpd restart
    Code (markup):
    :)
     
    niloy, Feb 8, 2007 IP