Yclas (formally known as Open Classifieds) is a free, powerful, open-source web platform that allows users to easily create and build classifieds, advertisements, and listings sites. Let’s begin with the installation.
In this tutorial, we will show you how to install Yclas on your Debian 11 server.
Table of Contents
Requirements
- For the purposes of this tutorial, we will be using a Debian 11 Server.
- SSH root access or a user with sudo privileges is also required.
Step 1: Connect to your server via SSH
Connect to your server via SSH as the root user using the following command:
Remember to replace “IP_ADDRESS” and “PORT_NUMBER” with your actual server IP address and SSH port number. Replace “root” with your admin username if you’re not planning on using the root account.
Before starting with the installation, we need to update the OS packages to their latest versions.
We can do this by running the following commands:
Once the upgrade is complete, we can move on to the next step.
Step 2: Install Apache webserver
Yclas needs a web server to serve its content, and we will use Apache webserver which is one of the most popular web servers in the World.
Apache webserver can be installed with the following command:
Once, the installation is complete you can check the status of the Apache service:
You should get the following output:
Step 3: Install PHP
To install PHP and the required PHP extensions required by Yclas, run the following command:
Yclas uses the short tag ‘short cut’ syntax, so in order to enable the short_open_tag
directive in PHP, edit the php.ini configuration file and modify the following line:
Restart Apache for the changes to take effect.
Step 4: Install MariaDB
We will use MariaDB as a database engine. Run the following command to install the latest MariaDB server from the official Debian 11 base repository :
To verify if the MariaDB service is up and running, run the following command:
You should receive the following output
To enable the MariaDB service to start on system reboot execute the following command:
If desired, you can further improve the security of your MariaDB server by running a command that will go through a few questions.
We suggest answering every question with the character ‘Y’ for yes.
Step 5: Create a Database for Open Classifieds
Create a MySQL database for the Yclas website:
Don’t forget to replace ‘Password’ with an actual strong password.
Step 6: Download Open Classifieds
Download the latest stable release of the software to your server. At the time of writing this tutorial, the latest stable version of Yclas is 4.4.0.
Once it is downloaded, unpack the downloaded ZIP archive to the document root directory of your server:
Rename the directory to something simpler (this is optional, however, it makes it easier to type and memorize where your files are):
Set the Apache user to be the owner of all Yclas files:
Step 7: Configure Apache Yclas Site
Now we will configure the Apache configuration file for Yclas. Create a new virtual host with the following content by creating a file in the directory /etc/apache2/sites-available
:
Once you are done, save the file and close it.
Activate the server block by creating a symbolic link:
And finally, enable the Apache rewrite module and restart the Apache service for the changes to take effect.
Step 8: Installing Yclas Using the Web Interface
You can now go to your http://your_domain.com
and follow the on-screen instructions to complete the Yclas installation.
Next, enter your database name, username, and password and continue.
On the next screen, you will have the site configuration and create the administrator user.
You will have two buttons that will take you to the newly created website and the administration panel respectively.
Once the installation is completed, it is recommended to remove the ‘install’ directory for security reasons.
That’s it! Yclas (Open Classifieds) has been successfully installed on your Debian 11 server.
Of course, you don’t have to install Open Classifieds on Debian 11 if you use one of our Debian VPS Hosting services, in which case you can simply ask our expert Linux admins to install Yclas for you. They are available 24×7 and will take care of your request immediately.
PS. If you liked this post on how to install Yclas (Open Classifieds) on Debian 11, please share it with your friends on social networks or simply leave a reply below. Thanks.