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
Post a Comment