ubuntu lamp常用命令和文件位置

重启apache2

 sudo service apache2 restart;

apache2配置文件

/etc/apache2/sites-enabled

新建项目域名配置


        ServerName phpmyadmin.localhost.com
        ServerAdmin webmaster@localhost
        DocumentRoot /var/www/html/phpmyadmin

        ErrorLog ${APACHE_LOG_DIR}/error.log
        CustomLog ${APACHE_LOG_DIR}/access.log combined

hosts文件位置

/etc/hosts 

你可能感兴趣的:(ubuntu lamp常用命令和文件位置)