httpd -v
sudo apachectl start
and press enter:ls
and check if you have a config file named after your yourusername.conf
username, if you can’t find one, that’s ok, then just type sudo nano yourusername.conf
sudo chmod 644 YourUserName.conf
and press enter
, lastly we type sudo apachectl restart
php -v
.#
):Ctrl + x
to exit then press “y” to save changes and enter to confirm file name.