Ubuntu – How to run a php file after installing LAMP in ubuntu 11.10

Apache2lampPHP

I installed lamp on ubuntu. Apache2 and Mysql are working fine.

The folder apache2 is in /etc and contains:

apache2.conf  envvars     magic           mods-enabled  sites-available
conf.d        httpd.conf  mods-available  ports.conf    sites-enabled

The httpd.conf file is empty.
As far as windows is concerned apache had a "www" folder where we used to store our php files. What should I do in this case ?
The tutorials given on the internet could not help! 😐
Please help!

Best Answer

The equivalent folder in Ubuntu should be /var/www, unless you changed it yourself. This directory is (by default) defined in /etc/apache2/sites-enabled/000-default, in the line that begins with the word DocumentRoot.

Related Question