Configure PHP for Apache
Configure php for Apache 1. Add remi repository: yum install https://rpms.remirepo.net/enterprise/remi-release-8.rpm Install php: yum install php 2. Create a .php file in your Apache DocumentRoot …
Welcome!
Configure php for Apache 1. Add remi repository: yum install https://rpms.remirepo.net/enterprise/remi-release-8.rpm Install php: yum install php 2. Create a .php file in your Apache DocumentRoot …
Apache Vhost 1. First create a directory where all the vhost will be stored (mine will be in /etc/httpd/sites mkdir /etc/httpd/sites 2. Create a new …
Use .htaccess and .htpasswd to authenticate the access to website 1. Edit the AllowOverride None line in your vhost configuration file and change it to …
Rewrite HTTP to HTTPS 1. Edit vhost to add the following lines to it: RewriteEngine On RewriteCond %{HTTPS} off RewriteRule (.*) https://%{SERVER_NAME}/$1 [R,L] 2. Restart …
Change Apache DocumentRoot 1. Using your text editor (mine will be vim) open the Apache configuration file: vim /etc/httpd/conf/httpd.conf 2. Find the DocumentRoot section: 3. …
Install Apache Web Server 1. First update all the installed package using: yum update -y 2. Next install Apache HTTP Server from the default software …