Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

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:
    51
    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:
    51
    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:
    460
    Likes Received:
    0
    Trophy Points:
    66
    cPanel Access Level:
    Root Administrator
    If you are looking for enabling php safe mode then please refer to The php.ini File
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. 4thcause

    4thcause Registered

    Joined:
    Jan 26, 2012
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    51
    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:
    1
    Trophy Points:
    56
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  6. 4thcause

    4thcause Registered

    Joined:
    Jan 26, 2012
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    51
    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 Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,704
    Likes Received:
    1,883
    Trophy Points:
    363
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  8. hoststop

    hoststop Well-Known Member

    Joined:
    Dec 6, 2011
    Messages:
    84
    Likes Received:
    1
    Trophy Points:
    56
    Location:
    Bolton, UK
    cPanel Access Level:
    Root Administrator
    Contact your web host & ask them to perform the changes.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice