Apache:Httpd:HowToInstall
lastmod 2018-08-17created 2015-04-228 edits
Notes on how to install Apache.
Ubuntu
First, install it as follows.
Cent OS 7
The installation steps below are based on Cent OS 7.
First, install it as follows.
If you need SSL, install it as follows.
To change the SSL port number, edit the /etc/httpd/conf.d/ssl.conf file as follows.
Also, register the changed port with SELinux, and open it in the firewall using firewalld1.
## SELinux setting:
$ semanage port -a -t http_port_t -p tcp 8888
## firewalld setting:
$ firewall-cmd --permanent --zone=public --add-port=8022/tcp
$ firewall-cmd --reload
Beyond that, check the SELinux information of the DocumentRoot directory2 with ls -Z, verify the permissions and user, and then restart Apache.
You cannot use chkconfig to register it as a service.3 You must use systemctl.
LAMP
- Install Apache, PHP And MySQL On CentOS 7 (LAMP)
- See also: MediaWiki:Install#CentOS_7
Linux + Apache httpd + MySQL MariaDB + PHP + (optionally OpenSSL)
$ yum install -y httpd
$ yum install -y mariadb-server
$ yum -y install php
$ yum -y install mod_ssl