You need to change the DocumentRoot
setting in your httpd.conf
file. Chances are it will be under something like /etc/apache2/conf/httpd.conf
In my Ubuntu 14.04 LTS and kali2 linux , the document root was set to /var/www/html
. It was configured in the following file:
/etc/apache2/sites-available/000-default.conf
So just do a
sudo nano /etc/apache2/sites-available/000-default.conf
http://stackoverflow.com/questions/5891802/how-do-i-change-the-root-directory-of-an-apache-server
Apache log file 位置
By default, /var/log/apache2/error.log
.
This can be configured in /etc/php5/apache2/php.ini
.
http://askubuntu.com/questions/14763/where-are-the-apache-and-php-log-files
来源:oschina
链接:https://my.oschina.net/u/2308739/blog/759177