Tag Archives: apache

How to install apache (httpd) on CentOS 8

This tutorial will show you how to install the Apache web server on CentOS 8.

You will need to log into your CentOS 8 server and run the following commands:

  • sudo yum install httpd
    • When prompted press y to confirm the installation.
  • sudo service httpd start
    • This starts the apache service
  • sudo service httpd status
    • This insures that the service is running, your output should look similar to the output below.

  • sudo chkconfig httpd on
    • This insures that the apache service is powered on when the server boots.
  • Next create a file called index.html in the apache root directory by running the following command
    • sudo vi /var/www/html/index.html
  • Press i to go into insert mode and add the following text
    • <html> this is my web serer </html>
  • press esc and then type wq! to quit and save the file.
  • You can now navigate to your servers ip address or dns name, you should now see a screen similar to the one below.

 

A full video can be seen here:

How to install Joomla 3 on CentOs 7 /Redhat 7 Linux.

This tutorial shows you how to install Joomla 3 on CentOS 7 / Redhat 7 Linux (RHEL).It shows you first how to download, unzip and move the Joomla files to the correct directory for apache.

 

Next it shows you how to download and install php including the php-mysqli extension that is needed by Joomla. You will then see how to configure Apache to see the Joomla files.

 

Next you will then configure permissions and set up your Joomla Database in MYSQL (MariaDB) Finally you will install Joomla.

 

 

The commands that you need to follow along with this tutorial are:

 

Downloading, Unzipping and Moving Joomla:

 

sudo Wget https://downloads.joomla.org/cms/joomla3/3-8-3/Joomla_3-8-3-Stable-Full_Package.zip?format=zip
Sudo mkdir Joomla
Sudo mv Joomla_3-8-3-Stable-Full_Package.zip\?format\=zip Joomla
Cd Joomla
Sudo unzip Joomla_3-8-3-Stable-Full_Package.zip\?format\=zip Joomla
Sudo rm Joomla_3-8-3-Stable-Full_Package.zip\?format\=zip
Sudo mv Joomla /var/www/html

 

Installing PHP

 

Sudo yum install php
Sudo yum install php-mysqli

 

Configuring Apache and Permissions  

 

Sudo vi /etc/httpd/conf/httpd.conf
Sudo service httpd restart
Sudo chown apache:apache -R /var/www/html/Joomla
Sudo chcon -Rv –type=httpd_sys_rw_content_t /var/www/html

Configuring MYSQL / MariaDB

 

Mysql -u root -p
Create database joomla;
grant all on joomla.* to ‘darren’@’localhost’ identified by ‘password123’;