-
Notifications
You must be signed in to change notification settings - Fork 9
CentOS Apache, and notes
Michael Hulse edited this page Dec 16, 2015
·
1 revision
Configuration files live in /etc/httpd.
Create virtual host directories in the /var/www/html directory. Reserve private and/or secure data for the /var/www/ parent directory.
Restart Apache using:
$ apachectl start
$ apachectl stop
$ apachectl restartTail the server error logs:
$ tail -f /var/log/httpd/error_logIf needed:
$ which php
# If not found, you can use yum to install:
$ sudo yum install php php-mysql
# A restart is required:
$ apachectl restart