sudo
in the terminal then you will be prompted to enter your admin password to proceed.http://localhost
./Library/WebServer/Documents
directory. We will change this is the following sections.Sites
in user directory. So, open Terminal and get ready to create the user level document root directory.Sites
directorySites
directory.username.conf
fileusername.conf
file to configure our document root.yusufshakeel.conf
.whoami
command in the terminal and it will tell you your username.YOUR_USER_NAME
with your username.yusufshakeel.conf
file.httpd.conf
filehttpd.conf
file.httpd.conf
file by typing the following command.vi
and uncomment the following lines.#
from the start of the line.#
at the beginning of the line.YOUR_USERNAME
with your username.AllowOverride None
to AllowOverride All
.httpd-userdir.conf
filehttpd-userdir.conf
file.vi
.httpd.conf
file.#
sign from the start of the line.phpinfo
index.php
file inside the Sites directory.http://localhost
and you will get to see a similar output.