ocPortal is a free and open souce, PHP based content management system. It can be thoroughly customized and it comes with lots of website features out of the box. In this tutorial we will install ocPortal on a CentOS 7 VPS with the Apache web server, PHP and MariaDB.
First of all update your system and install the necessary packages.
Install Apache web server
Start the web server and enable it to start on boot
Install PHP and few additional PHP modules
Next, we will install MariaDB on the server by executing the following commands:
To start MariaDB and enable it at the boot time run:
and use the following options
Once you are finished with the step above, login as a MariaDB root and create an new database and user:
Don’t forget to replace ‘YOURPASSWORD’ with an actual strong password.
Now, create a new directory for ocPortal inside the document root directory on your server.
and go to ocPortal’s official website and download the latest stable release. At the moment of writing this article it is version 9.0.15.
Unpack the downloaded zip archive
Set the correct ownership
Create a virtual host directive for your domain in the web server configuration file
And restart apache
That’s all. Now, head your favourite web browser to http://yourdomain.com/install.php to finish the installation. You will need to configure ocPortal settings, create an admin account, enter the information or the MariaDB we’ve created earlier in this tutorial, etc…
Of course you don’t have to do any of this if you use one of our Linux VPS Hosting services, in which case you can simply ask our expert Linux admins to install ocPortal for you. They are available 24×7 and will take care of your request immediately.
PS. 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.