Jump to content

Server Status Not Working


datdesi

Recommended Posts

OK so my server status isn't working right, it display not available for some odd reason. I have made sure the status file is on the server, I made sure the server status address is also correct with the slash at the end, I have also enabled the exec functions in the php.ini. What could I be doing wrong?

Link to comment
Share on other sites

You need to navigate to "/status/index.php" and click on "code editor" in cPanel. Once you have done that you need to scroll down a bit until you see the following code:

 

$action=$_GET["action"];

if ($action=="phpinfo") {
   /*
   Uncoment the line below to allow users to view PHP Info for your
   server. This potentially allows access to information a malicious
   user could use to find weaknesses in your server.
   */
   #phpinfo();

 

Notice how the "phpino();" has a "#" before it? You need to remove that "#" to uncomment that line.

 

So your code should look like the following:

$action=$_GET["action"];

if ($action=="phpinfo") {
   /*
   Uncoment the line below to allow users to view PHP Info for your
   server. This potentially allows access to information a malicious
   user could use to find weaknesses in your server.
   */
   phpinfo();

 

However, you need to notice this will give users access to view your phpinfo which could allow users with malicious tendencies to cause harm to your servers.

 

I hope this has helped.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated