Safe_mode = off

Discussion in 'Site & Server Administration' started by Atulya, Apr 23, 2009.

  1. #1
    Hi,

    Anybody let me know how to put the safe mode 'off' in php.ini. I have dedicated server with root access.
     
    Atulya, Apr 23, 2009 IP
  2. kailash

    kailash Well-Known Member

    Messages:
    1,248
    Likes Received:
    42
    Best Answers:
    0
    Trophy Points:
    190
    #2
    Open your php.ini and search for safe_mode and set the value to off.

    safe_mode = off

    Kailash
     
    kailash, Apr 23, 2009 IP
  3. jackio

    jackio Banned

    Messages:
    490
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    0
    #3
    If you don't know how to find the php.ini, you can do a phpinfo() and check Configuration File Path :)
     
    jackio, Apr 23, 2009 IP
  4. Atulya

    Atulya Guest

    Messages:
    142
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #4
    I did that, but no effect. Is there any change need in httpd.conf file?
     
    Atulya, Apr 23, 2009 IP
  5. saecreative

    saecreative Banned

    Messages:
    14
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    you are using phpsuexec mode ?
     
    saecreative, Apr 23, 2009 IP
  6. kailash

    kailash Well-Known Member

    Messages:
    1,248
    Likes Received:
    42
    Best Answers:
    0
    Trophy Points:
    190
    #6
    After making the changes in php.ini, you will need to restart Apache service. No change requires in httpd.conf.

    Kailash
     
    kailash, Apr 24, 2009 IP
  7. sandeeppai

    sandeeppai Peon

    Messages:
    23
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    first login as root and find the php.ini file by giving the command

    php - i | grep php.ini

    This will show you the loaded php.ini configuration file

    Edit it and search for the option safe_mode and make it safe_mode = Off

    Else create an .htaccess file in the document root or public_html and add the entry

    php_flag safe_mode off

    If this does not work copy the contents of phpinfo here
     
    sandeeppai, Apr 24, 2009 IP