Menu

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.

INSTALLATION
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 DATABASE osclass;
CREATE USER 'osclassuser'@'localhost' IDENTIFIED BY 'PASSWORD';
GRANT ALL PRIVILEGES ON `osclass`.* TO 'osclassuser'@'localhost';
FLUSH PRIVILEGES;
exit
Go to the official Osclass website and download the latest release of their application then follow the bellow instruction:
wget https://static.osclass.org/download/osclass.3.6.1.zip
mkdir /var/www/html/osclass
unzip osclass.3.6.1.zip -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/yourdomain.com.conf

<VirtualHost YOUR_SERVER_IP:80>
ServerAdmin webmaster@yourdomain.com
DocumentRoot "/var/www/html/osclass/"
ServerName yourdomain.com
ServerAlias www.yourdomain.com
ErrorLog "/var/log/httpd/yourdomain.com-error_log"
CustomLog "/var/log/httpd/yourdomain.com-access_log" combined

<Directory "/var/www/html/osclass/">
DirectoryIndex index.html index.php
Options FollowSymLinks
AllowOverride All
Require all granted
</Directory>
</VirtualHost>
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 http://yourdomain.com/index.php 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.
www.hackthesec.co.in

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

Next
Newer Post
Previous
Older Post

0 comments:

Post a Comment

 
Top