<\/span><\/h2>\nBefore starting, you will need to update your server to the latest version. You can do it with the following command:<\/p>\n
yum update -y<\/span><\/pre>\nAfter updating your system, you will need to install the EPEL repository on your system. You can install it by running the following command:<\/p>\n
rpm --import \/etc\/pki\/rpm-gpg\/RPM-GPG-KEY*\n<\/span>yum install epel-release -y<\/span><\/pre>\nNext, you will also need to disable SELinux on your system in order to access Open Classifieds without having any possible issues.<\/p>\n
You can disable it by editing the\u00a0\/etc\/selinux\/config<\/code> file:<\/p>\nnano \/etc\/selinux\/config<\/span><\/pre>\nMake the following changes:<\/p>\n
SELINUX=disabled<\/span>\nSELINUXTYPE=targeted<\/span><\/pre>\nSave and close the file. Then, restart your system to apply all the changes.<\/p>\n
<\/span>Step 2: Install LAMP Server<\/span><\/h2>\nFirst, you will need to install Apache web server and MariaDB database server on your server. You can install them by running the following command:<\/p>\n
yum install httpd mariadb-server -y<\/span><\/pre>\nOnce the installation has been completed successfully, start Apache and MariaDB service and enable them to start on boot time with the following command:<\/p>\n
systemctl start httpd<\/span>\nsystemctl enable httpd<\/span>\nsystemctl start mariadb<\/span>\nsystemctl enable mariadb<\/span><\/pre>\nBy default, the latest version of PHP is not available in the CentOS-7 default repository. So, you will need to add Remi repository on your system.<\/p>\n
You can install it with the following command:<\/p>\n
rpm -Uvh http:\/\/rpms.remirepo.net\/enterprise\/remi-release-7.rpm<\/span><\/pre>\nNext, install yum-config-manager utility to enable Remi repository:<\/p>\n
yum install yum-utils -y<\/span><\/pre>\nNext, update the repository with the following command:<\/p>\n
yum update -y<\/span><\/pre>\nNext, enable Remi repository for PHP 7.2 with the following command:<\/p>\n
yum-config-manager --enable remi-php72<\/span><\/pre>\nNext, install PHP and other required libraries with the following command:<\/p>\n
yum install php php-opcache httpd php-zip php-mysqlnd php-pdo php-gd php-ldap php-odbc php-pear php-xml php-xmlrpc php-mbstring php-soap curl curl-devel php-curl php-mcrypt -y<\/span><\/pre>\nAfter installing all the packages, open php.ini file and make some changes:<\/p>\n
nano \/etc\/php.ini<\/span><\/pre>\nChange the following lines:<\/p>\n
short_open_tag = On<\/span>\nmemory_limit = 256M<\/span>\nupload_max_filesize = 100M<\/span>\npost_max_size = 100M<\/span><\/pre>\nSave and close the file, when you are finished.<\/p>\n