{"id":18313,"date":"2015-12-14T15:25:13","date_gmt":"2015-12-14T21:25:13","guid":{"rendered":"https:\/\/www.rosehosting.com\/blog\/?p=18313"},"modified":"2022-12-29T11:20:32","modified_gmt":"2022-12-29T17:20:32","slug":"how-to-install-open-classifieds-on-a-debian-8-vps","status":"publish","type":"post","link":"https:\/\/www.rosehosting.com\/blog\/how-to-install-open-classifieds-on-a-debian-8-vps\/","title":{"rendered":"How to Install Open Classifieds on a Debian 8 VPS"},"content":{"rendered":"
In this tutorial, we will show you how to install Open Classifieds on a Debian 8 VPS<\/strong> with Apache, PHP and MySQL installed on it. OpenClassifieds is a free open source script used to create a website for classifieds, advertisement or listings within few minutes.<\/p>\n This tutorial was tested and written for a Debian 8 VPS<\/a>, but it should work on any Linux distribution.<\/p>\n Let’s start with the installation. Install Apache, MySQL, PHP and required extensions on your virtual server:<\/p>\n To enable Apache2 mod_rewrite module, run the following command:<\/p>\n Download the latest version of Open Classifieds available at http:\/\/open-classifieds.com\/download to the ‘opt’ directory on your server and extract it to the ‘\/var\/www\/html\/openclassifieds2\/’ directory on your server using the following commands:<\/p>\n Create a new MySQL database for Open Classifieds and assign a MySQL user to it with full permissions:<\/p>\n Do not forget to replace ‘your-password’ with a strong password. Then, run the following commands:<\/p>\n Or, use the a2ensite command to enable the ‘openclassifieds2.conf’ configuration in Apache:<\/p>\n Edit the ‘openclassifieds2.conf’ configuration file:<\/p>\n add the following lines to it:<\/p>\n <VirtualHost *:80> Open Classifieds uses the short tag ‘short cut’ syntax, so in order to enable short_open_tag directive in PHP, edit the php.ini configuration file and add\/modify the following line:<\/p>\n Set the proper file permissions for the Apache web server:<\/p>\n Restart the Apache web server for the changes to take effect:<\/p>\n Open your favorite web browser, navigate to http:\/\/yourdomain.com and follow the easy instructions: Log in at http:\/\/yourdomain.com\/oc-panel using your administrator login credentials and start using Open Classifieds, create some categories, locations etc.<\/p>\n <\/p>\n That is it. The Open Classifieds installation is now complete. PS<\/span>.<\/strong> If you liked this post please share it with your friends on the social networks using the buttons on the left or simply leave a reply below. Thanks.<\/p>\n","protected":false},"excerpt":{"rendered":" In this tutorial, we will show you how to install Open Classifieds on a Debian 8 VPS with Apache, PHP … <\/p>\n
\nAt the time of writing this tutorial, the latest stable version of Open Classifieds is 2.6.0 and it requires:<\/p>\n\n
\nUpdate your OS packages:<\/p>\nsudo apt-get update<\/pre>\n
apt-get install apache2 libapache2-mod-php5 php5-cli php5-common php5-gd php5-mcrypt php5-curl php5-mysql mysql-server unzip<\/pre>\n
sudo a2enmod rewrite<\/pre>\n
cd \/opt\r\nunzip -o openclassifieds2-2.6.0.zip -d \/var\/www\/html\/\r\nmv \/var\/www\/html\/openclassifieds2-2.6.0 \/var\/www\/html\/openclassifieds2\/<\/pre>\n
mysql -u root -p\r\nmysql> CREATE DATABASE classifiedsdb;\r\nmysql> GRANT ALL PRIVILEGES ON classifiedsdb.* TO 'classifieds'@'localhost' IDENTIFIED BY 'y0ur-passw0rd' WITH GRANT OPTION;\r\nmysql> FLUSH PRIVILEGES;\r\nmysql> quit<\/pre>\n
\nCreate a new virtual host directive in Apache. For example, create a new Apache configuration file named ‘openclassifieds2.conf’ on your virtual server:<\/p>\ntouch \/etc\/apache2\/sites-available\/openclassifieds2.conf<\/pre>\n
ln -s \/etc\/apache2\/sites-available\/openclassifieds2.conf \/etc\/apache2\/sites-enabled\/openclassifieds2.conf\r\nrm \/etc\/apache2\/sites-enabled\/000-default.conf<\/pre>\n
sudo a2ensite openclassifieds2.conf\r\nsudo a2dissite 000-default.conf<\/pre>\n
vi \/etc\/apache2\/sites-available\/openclassifieds2.conf<\/pre>\n
\nServerAdmin admin@yourdomain.com
\nDocumentRoot \/var\/www\/html\/openclassifieds2\/
\nServerName yourdomain.com
\nServerAlias www.yourdomain.com
\n<Directory \/var\/www\/html\/openclassifieds2\/>
\nOptions FollowSymLinks
\nAllowOverride All
\n<\/Directory>
\nErrorLog \/var\/log\/apache2\/yourdomain.com-error_log
\nCustomLog \/var\/log\/apache2\/yourdomain.com-access_log common
\n<\/VirtualHost><\/p>\nvi \/etc\/php5\/apache2\/php.ini<\/pre>\n
short_open_tag = On<\/pre>\n
sudo chown -R www-data:www-data \/var\/www\/html\/openclassifieds2\/<\/pre>\n
service apache2 restart<\/pre>\n
\nIf all checks on the first page of the installation are green, click ‘Start installation’, enter the database name, username and password, uncheck ‘sample data’ and click ‘Continue’. On the next page, set the site name, time zone, administrator email and password and click ‘install’.
\nFor security reason, make sure to remove the ‘install\/’ directory after installation:<\/p>\nrm -rf \/var\/www\/html\/openclassifieds2\/install<\/pre>\n
\nOf course you don’t have to do any of this if you use one of our Debian VPS Hosting<\/a> services, in which case you can simply ask our expert Linux admins to install Open Classifieds<\/strong> for you. They are available 24\u00d77 and will take care of your request immediately. You might also like to read How to Install Dotclear on a Debian 8 VPS<\/a>.<\/p>\n