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!

Add PHP file to each server without creating cpanel account

Discussion in 'General Discussion' started by ttremain, Jan 17, 2013.

  1. ttremain

    ttremain Well-Known Member

    Joined:
    Feb 16, 2003
    Messages:
    215
    Likes Received:
    0
    Trophy Points:
    166
    cPanel Access Level:
    Root Administrator
    I would like to add a PHP file to each server, that I can monitor from another location.

    This files will test a few simple things, and give the results in text, that will be monitored from elsewhere.

    I would like to place it somewhere where I can access it just with the servername, and file name, something like
    http://host.domain.com/obscure_name.php

    I've tried placing it in the cgi-sys folder, but it looks like that folder cannot parse PHP, or I was just unable
    to connect using: http://host.domain.com/cgi-sys/obscure_name.php

    Thank you!
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    16,170
    Likes Received:
    370
    Trophy Points:
    583
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    See if it works here:
    /usr/local/apache/htdocs/
     
    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