Where to save the php and html files on apache
Okay I am new to linux and have been learning php. anyway I just installed the apache server and the php extensions but I have no Idea where to save the files that I create so I can run them through the server.
Thank you, Zepyr |
Hi, welcome to lq!
Quote:
the name and location of which will depend on the distro you've chosen.... Cheers, Tink |
In most apache installations, the default location for your website files is the htdocs subdirectory.
I use the Xampp stack, and the files that are visible over the web go in /opt/lampp/htdocs. You can change this, but there's no good reason to. |
We need to know which Linux distro & version you've got.
However, if you look in the Apache httpd.conf, the DocumentRoot directive is normally where you would start. See the docs here for more info: http://httpd.apache.org/ |
Quote:
For Ubuntu based systems that could be /var/www. Again that depends on the apache configuration. You can change that and make your php files reside where you want them to. |
Did you use a package manager to get apache, or did you compile it yourself?
IME, for example, compiling Apache 2.0.54 yourself with a standard configuration and installing it will make the htdocs folder be in /usr/local/apache2/htdocs |
All times are GMT -5. The time now is 03:52 AM. |