linux - Run php program from /var/www folder -


i have lampp server , ubuntu os, when use command line write,

sudo /opt/lampp/lampp start 

for starting xampp server on linux. can able run php code written in /opt/lampp/htdocs directly calling,

localhost/myphpcode.php 

and works well.

but want run php code folder /var/www in root. how can run php folder using path?

edit httpd.conf file , add documentroot "/var/www" modifying root directory, put file there , restart server


Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -