The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

How do I enable safe mode?

Discussion in 'Security' started by 4thcause, Jan 26, 2012.

  1. 4thcause

    4thcause Registered

    Joined:
    Jan 26, 2012
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Website Owner
    cpanel accelerated 2. I was told I could enable safe mode.
     
  2. 4thcause

    4thcause Registered

    Joined:
    Jan 26, 2012
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Website Owner
    not sure if I posted this in the right section or not. Not sure if it is a Linux/FreeBSD server or not.
     
  3. storminternet

    storminternet Well-Known Member

    Joined:
    Nov 2, 2011
    Messages:
    462
    Likes Received:
    0
    Trophy Points:
    16
    cPanel Access Level:
    Root Administrator
    If you are looking for enabling php safe mode then please refer to The php.ini File
     
  4. 4thcause

    4thcause Registered

    Joined:
    Jan 26, 2012
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Website Owner
    Having trouble editing the php.ini file. I went to php configuration but it just tells me


    These PHP configuration settings are customizable by the server administrator. They are listed for reference only.

    Im the one that bought the hosting so that makes me admin? Having trouble where I can actually edit the php.ini file.
     
  5. hoststop

    hoststop Well-Known Member

    Joined:
    Dec 6, 2011
    Messages:
    84
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Bolton, UK
    cPanel Access Level:
    Root Administrator
    On cPanel servers, use the command below to check the php.ini location.

    root@server [~]# php -i | grep php.ini

    You will get the file location after Loaded Configuration File

    Open this file and find for safe_mode. Change from Off to On. Once done, restart apache with command below.

    /etc/init.d/httpd restart

    This should enable safe mode on the server.
     
  6. 4thcause

    4thcause Registered

    Joined:
    Jan 26, 2012
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Website Owner
    I dont have access to a shell in cpanel, I can manage SSH keys but thats it. Im guessing I dont have admin access.
     
  7. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    Do you have root access to the server? If not, you will need to contact your web hosting provider to see if they are able to modify this setting for you. If you do have root access, you should access Web Host Manager using the "root" username and browse to:

    "WHM >> Service Configuration >> PHP Configuration Editor"

    Thank you.
     
  8. hoststop

    hoststop Well-Known Member

    Joined:
    Dec 6, 2011
    Messages:
    84
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Bolton, UK
    cPanel Access Level:
    Root Administrator
    Contact your web host & ask them to perform the changes.
     
Loading...

Share This Page