LAMP 使用 Apache 作為網頁伺服器,網站的預設根目錄是在「/var/www」下。 在 /var/www 下會有一個 index.html,這是用來網頁瀏覽器開啟「http://127.0.0.1/ 」時看到的網頁。
啟動Apache
sudo service apache2 start
中止Apache
sudo service apache2 stop
重新啟動Apache
sudo service apache2 restart
Apache 的主要設定檔之檔名為 httpd.conf 設定檔位置在「 /etc/apach2 」下。
cd /etc/apach2