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!

run php files in /usr/local/apache

Discussion in 'EasyApache' started by smarty-boots.co, Mar 4, 2012.

  1. smarty-boots.co

    Joined:
    May 4, 2011
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    51
    Hi

    I have 2 D/Server and on one I am able to run php files in /usr/local/apache using just the
    http: // hostname/myfile.php
    but on the 2nd server we can not what do I need to change so that we can?
     
  2. gnextitsolution

    gnextitsolution Registered

    Joined:
    Mar 4, 2012
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    51
    cPanel Access Level:
    Root Administrator
    Hi,

    What error do you get in the browser and in your apache error logs on the second server?
     
  3. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,608
    Likes Received:
    32
    Trophy Points:
    238
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    You should place files in /usr/local/apache/htdocs rather than directly in /usr/local/apache folder if you want the files to be accessible via the hostname.
     
    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