run php files in /usr/local/apache

May 4, 2011
5
0
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?
 

cPanelTristan

Quality Assurance Analyst
Staff member
Oct 2, 2010
7,607
38
248
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.