Skip to content

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 restart

Tail the server error logs:

$ tail -f /var/log/httpd/error_log

Install php

If needed:

$ which php
# If not found, you can use yum to install:
$ sudo yum install php php-mysql
# A restart is required:
$ apachectl restart
Clone this wiki locally