{"id":16589,"date":"2014-12-15T16:10:06","date_gmt":"2014-12-15T22:10:06","guid":{"rendered":"https:\/\/secure.rosehosting.com\/blog\/?p=16589"},"modified":"2022-06-03T03:46:29","modified_gmt":"2022-06-03T08:46:29","slug":"how-to-install-ocportal-on-a-centos-7-vps","status":"publish","type":"post","link":"https:\/\/www.rosehosting.com\/blog\/how-to-install-ocportal-on-a-centos-7-vps\/","title":{"rendered":"How to install ocPortal on a CentOS 7 VPS"},"content":{"rendered":"
<\/a>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<\/a> with the Apache web server, PHP and MariaDB.<\/p>\n <\/p>\n First of all update your system and install the necessary packages.<\/p>\n Install Apache web server<\/p>\n Start the web server and enable it to start on boot<\/p>\n Install PHP and few additional PHP modules<\/p>\n Next, we will install MariaDB on the server by executing the following commands:<\/p>\n To start MariaDB and enable it at the boot time run:<\/p>\n and use the following options<\/p>\n Once you are finished with the step above, login as a MariaDB root and create an new database and user:<\/p>\n Don’t forget to replace ‘YOURPASSWORD’<\/em> with an actual strong password.<\/p>\n Now, create a new directory for ocPortal inside the document root directory on your server.<\/p>\n and go to ocPortal’s official website<\/a> and download the latest stable release. At the moment of writing this article it is version 9.0.15.<\/p>\n Unpack the downloaded zip archive<\/p>\n Set the correct ownership<\/p>\n Create a virtual host directive for your domain in the web server configuration file<\/p>\n And restart apache<\/p>\n 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…<\/p>\n Of course you don\u2019t have to do any of this if you use one of our Linux VPS Hosting<\/a> services, in which case you can simply ask our expert Linux admins to install ocPortal for you. They are available 24\u00d77 and will take care of your request immediately.<\/p>\n PS.<\/strong><\/span> 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":" ocPortal is a free and open souce, PHP based content management system. It can be thoroughly customized and it comes … <\/p>\nyum -y update\r\nyum -y install wget unzip<\/pre>\n
yum install httpd<\/pre>\n
systemctl start httpd.service\r\nsystemctl enable httpd.service<\/pre>\n
yum install php php-fpm php-cli php-mbstring php-gd php-curl php-pdo php-xml<\/pre>\n
yum install mariadb-server mariadb<\/pre>\n
systemctl start mariadb.service\r\nsystemctl enable mariadb.service\/<\/pre>\n
In order to secure your MariaDB server and set a MySQL 'root' password, run the following script<\/pre>\n
mysql_secure_installation<\/pre>\n
- Set root password? [Y\/n] y\r\n- Remove anonymous users? [Y\/n] y\r\n- Disallow root login remotely? [Y\/n] y\r\n- Remove test database and access to it? [Y\/n] y\r\n- Reload privilege tables now? [Y\/n] y<\/pre>\n
mysql -uroot -p<\/pre>\n
MariaDB [(none)]> CREATE DATABASE ocportal;\r\nMariaDB [(none)]> GRANT ALL ON ocportal.* to ocportaluser@localhost identified by 'YOURPASSWORD';\r\nMariaDB [(none)]> FLUSH PRIVILEGES;\r\nMariaDB [(none)]> \\q<\/pre>\n
mkdir \/var\/www\/html\/yourdomain.com\r\ncd \/var\/www\/html\/yourdomain.com<\/pre>\n
unzip ocportal_manualextraction_installer-9.0.15.zip<\/pre>\n
chown -R apache:apache \/var\/www\/html\/yourdomain.com\/<\/pre>\n
vim \/etc\/httpd\/conf\/httpd.conf<\/pre>\n
<VirtualHost *:80>\r\nServerAdmin webmaster@yourdomain.com\r\nDocumentRoot \/var\/www\/html\/yourdomain.com\r\nServerName yourdomain.com\r\nErrorLog logs\/yourdomain.com-error_log\r\nCustomLog logs\/yourdomain.com-access_log common\r\n<\/VirtualHost><\/pre>\n
systemctl restart httpd<\/pre>\n