How To Install Ocportal on ubuntu 17.04
To Install ocPortal on Ubuntu 17.04
ocPortal is a free and open source content management system (CMS) built using PHP and it uses a MySQL database to store the data. With ocPortal, you can customize your online store, create an interactive website and incorporate business. It can be easily customized and it is packed with a lot of website features like photo galleries, news, events and social networking. It is really so simple to install ocPortal and in this article, you will learn about the method to install ocPortal on Ubuntu 17.04.
Pre-requirements
Install LAMP (apache, php5.6, mariadb-server)
In MariaDB (create database, user and give privilages to user)
For PHP installation
1. add-apt-repository ppa:ondrej/php
2. apt-get update
modules (php5.6 php5.6-mbstring php5.6-mcrypt php5.6-mysql php5.6-xml php5.6-gd php5.6-imap php5.6-ldap php5.6-odbc php-pear php5.6-xmlrpc php-xml-parser)
Installing ocPortal
Before you begin the process, make sure you download the latest and stable ocportal installation package from the following link : http://ocportal.com/site/sites.html.
Once the file is downloaded, you should enter into your downloads directory by making use of the following command.
root@linuxhelp:~# cd /home/user/Downloads/
And in that directory, make use of the following command to list the files. You will see the downloaded zip file in it.
root@linuxhelp:~/Downloads# ls
ocportal_manualextraction_installer-9.0.41.zip
And from there, you need to extract the downloaded package by making use of the following command.
root@linuxhelp:~/Downloads# unzip ocportal_manualextraction_installer-9.0.41.zip -d ocportal
Archive: ocportal_manualextraction_installer-9.0.41.zip
creating: ocportal/adminzone/
inflating: ocportal/adminzone/find_permissions.php
inflating: ocportal/adminzone/index.php
inflating: ocportal/adminzone/load_template.php
inflating: ocportal/adminzone/logowizard.php
inflating: ocportal/adminzone/menu_management.php
creating: ocportal/adminzone/pages/
.
.
.
extracting: ocportal/uploads/watermarks/index.html
creating: ocportal/uploads/website_specific/
extracting: ocportal/uploads/website_specific/index.html
inflating: ocportal/validateip.php
inflating: ocportal/web.config
And then, you should move the extracted package into the html location as follows.
root@linuxhelp:~/Downloads# mv ocportal /var/www/html/
And from there, you need to change ownership of the ocportal directory in html location
root@linuxhelp:~/Downloads# chown www-data:www-data -R /var/www/html/ocportal
You should also create a new .conf file for VirtualHosting, so make use of the following command for the same purpose.
root@linuxhelp:~/Downloads# vim /etc/apache2/sites-available/ocportal.conf
And in that file, you need to add the following lines.
< VirtualHost *:80> ServerAdmin admin@linuxhelp.com DocumentRoot /var/www/html/ocportal/ ServerName linuxhelp.com ServerAlias www.linuxhelp.com < Directory /var/www/html/ocportal/> Options FollowSymLinks AllowOverride All Order allow,deny allow from all < /Directory> ErrorLog /var/log/apache2/linuxhelp.com-error_log CustomLog /var/log/apache2/linuxhelp.com-access_log common < /VirtualHost>
After that, you need to give your < machineip> and domain name in hosts file. Run the following command for the same purpose.
root@linuxhelp:~/Downloads# vim /etc/hosts Add the line in the host file. 192.168.7.237 linuxhelp.com
Later, enable the newly created .conf file as follows.
root@linuxhelp:~/Downloads# a2ensite ocportal.conf
Enabling site ocportal.
To activate the new configuration, you need to run:
systemctl reload apache2
After that, you need to restart the Apache service as follows.
root@linuxhelp:~/Downloads# systemctl restart apache2
Now let us proceed with the process via GUI. Open your browser and give < your domain> as URL. The installer of ocPortal appears. In that, choose language and click Proceed.
In the next page, you should click on I agree to this legally binding agreement.
In the next page, you need to select the forum software. It is recommended to use ocPortal' s own forum.
In the next page you should configure the general settings and ocPortal settings. Finally, click on the Install ocPortal button, which triggers the installation.
The install log appears now. You will be automatically proceeded to next step.
Installation is now complete, you shall now configure the ocPortal by clicking on the option given at the bottom of the installer.
Now, you should go to terminal and remove install.php by running the following command.
root@linuxhelp:/var/www/html/ocportal# rm -rf install.php
Now, you can log into your ocPortal. Enter your login credentials and login.
The setup wizzard appears, click on the Proceed button.
The setup wizard has been completed. You can manage and navigate to your pages. Let us go to the Admin Zone.
The Admin page now appears on your screen.
With this, the installation of ocPortal on Ubuntu 17.04 comes to an end.
Comments ( 0 )
No comments available