Install Osclass on a CentOS
Osclass is your one-stop shop to building your own classifieds marketplace. Create a site with real estate ads, job listings, car classifieds, rentals, or just about anything you can imagine. With dozens of templates, themes and plugins, Osclass is fully customizable.

Install Apache web server
yum -y install httpd
Once the installation of the Apache web server is completed, start it and make it to start automatically on boot.
systemctl start httpd
systemctl enable httpd
Osclass is written in the PHP programming language, so we need to install PHP and a few PHP extensions
yum -y install php php-mysql
Run the following command on your terminal to install MariaDB server on your CentOS 7 server
yum -y install mariadb mariadb-server
Once the installation of the database server is completed start the MariaDB server and set it to start on system boot
systemctl start mariadb
systemctl enable mariadb
Then, run the mysql_secure_installation script. This script will help you improve the security of your MariaDB installation and set your MariaDB root password.

Osclass requires an empty database, so login to the MariaDB server with the root user and create a new user and database that will be used by Osclass to store information
mysql -u root -p

CREATE USER 'osclassuser'@'localhost' IDENTIFIED BY 'PASSWORD';
GRANT ALL PRIVILEGES ON `osclass`.* TO 'osclassuser'@'localhost';
Go to the official Osclass website and download the latest release of their application then follow the bellow instruction:
mkdir /var/www/html/osclass
unzip -d /var/www/html/osclass
Set the Apache user to be owner of the Osclass files and directories
chown -R apache: /var/www/html/osclass
On the next step we will create Apache virtual host for your Osclass based website. Create a '/etc/httpd/conf.d/vhosts.conf' file with the following content:
IncludeOptional vhosts.d/*.conf
Create a 'vhosts.d/' directory:
mkdir /etc/httpd/vhosts.d/
Create the virtual host with the following content:
vim /etc/httpd/vhosts.d/

<VirtualHost YOUR_SERVER_IP:80>
DocumentRoot "/var/www/html/osclass/"
ErrorLog "/var/log/httpd/"
CustomLog "/var/log/httpd/" combined

<Directory "/var/www/html/osclass/">
DirectoryIndex index.html index.php
Options FollowSymLinks
AllowOverride All
Require all granted
Save the changes and restart the Apache web server for the changes to take effect.
systemctl restart httpd
Now goto to your browser and access the Osclass installation script at and you will see the following screen bellow:-
Click the "Install" button
After clicking "Install" click "Run the install" button.
Next step in the installation is to fill the database information and click "Next" button.

After fill DB details, enter the adminitrator login details for the newly created osclass site and click "Next".

Now Your Installation Is Successfully completed You Can Access Your Osclass Through you favorite browser.

About Author:

I am a Linux Administrator and Security Expert with this site i can help lot's of people about linux knowladge and as per security expert i also intersted about hacking related news.TwitterFacebook

Newer Post
Older Post


Post a Comment