category: apache

Apache - Apache Command Line on Mac / Ubuntu

on 2015-08-05

Apache - Apache Command Line on Mac / Ubuntu


sudo apachectl start

sudo apachectl restart

sudo apachectl status

sudo apachectl stop


sudo /etc/init.d/apache2 start

sudo /etc/init.d/apache2 restart

sudo /etc/init.d/apache2 status

sudo /etc/init.d/apache2 stop
sudo service apache2 start

sudo service apache2 restart

sudo service apache2 status

sudo service apache2 stop

Refer - Ubuntu Linux: Start / Restart / Stop Apache Web Server

Apache - dir permission cnfig

on 2015-05-07

Apache - dir permission cnfig

If yooouo want use virtual host

Yoou can set /etc/apache2/extra/httpd-vhosts.conf this file


<Directory /Users/ted/tedadev/local/bomb01>
    AllowOverride All
    Options Indexes MultiViews FollowSymLinks
    Require all granted
<VirtualHost *:80>
    DocumentRoot "/Users/ted/tedadev/local/bomb01"
    ErrorLog "/Volumes/RamDisk/ysm-error.log"
    CustomLog "/Volumes/RamDisk/ysm-access.log" common

Refer - Forbidden 403, You don’t have permission to access /~username/ on this server