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.

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:
    0
    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:
    1
    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,623
    Likes Received:
    21
    Trophy Points:
    38
    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.
     
Loading...

Share This Page