How to install Geeklog 2.2.0 on Linuxmint-18.03

To install Geeklog 2.2.0 on Linuxmint-18.03

Geeklog is an open source content management system which is used for creating and managing dynamic web content. It can be used either as Weblog, CMS or Web Portal and it is written in PHP and supports MYSQL database.

Prerequisites

Install LAMP(Apache, MariaDB, php7)
In MariaDB (create database and user and give privileges to that user )


Php installation with required following modules

add-apt-repository ppa:ondrej/php 
apt-get update 
apt-get install php7.0 php7.0-mysql php7.0-curl php7.0-json php7.0-cgi libapache2-mod-php7.0 php7.0-mcrypt php7.0-xmlrpc php7.0-gd php7.0-mbstring php7.0  php7.0-common  php7.0-xmlrpc php7.0-soap  php7.0-xml php7.0-intl  
php7.0-cli  php7.0-ldap php7.0-zip php7.0-readline php7.0-imap php7.0-tidy php7.0-recode php7.0-sq php7.0-intl

Download a Geeklog package using wget command

linuxhelp ~ # wget https://www.geeklog.net/downloads/visit.php/file_5b0c7089434be
--2018-06-08 14:22:04--  https://www.geeklog.net/downloads/visit.php/file_5b0c7089434be
Resolving www.geeklog.net (www.geeklog.net)... 216.92.57.85
Connecting to www.geeklog.net (www.geeklog.net)|216.92.57.85|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 15949944 (15M) [application/octet-stream]
Saving to: ‘ file_5b0c7089434be’ 

file_5b0c7089434be        100%[====================================> ]  15.21M   995KB/s    in 25s     

2018-06-08 14:22:31 (617 KB/s) - ‘ file_5b0c7089434be’  saved [15949944/15949944]

Make a new directory

linuxhelp ~ # mkdir geeklog

The downloaded package is a tar file, so extract the package as follows

linuxhelp ~ # tar -zxvf file_5b0c7089434be -C geeklog/
db-config.php
emailgeeklogstories
INSTALL
readme
backups
backups/README
data
data/cacert.pem
data/cache
data/cache/index.html
data/layout_cache
data/layout_cache/index.html
data/layout_css
.
.
.
system/vendor/swiftmailer/swiftmailer/lib/swiftmailer_generate_mimes_config.php
system/vendor/swiftmailer/swiftmailer/lib/swift_init.php
system/vendor/swiftmailer/swiftmailer/lib/swift_required.php
system/vendor/swiftmailer/swiftmailer/lib/swift_required_pear.php
system/vendor/swiftmailer/swiftmailer/LICENSE
system/vendor/swiftmailer/swiftmailer/phpunit.xml.dist
system/vendor/swiftmailer/swiftmailer/README
system/vendor/swiftmailer/swiftmailer/VERSION

Change the ownership and permission of the Geeklog directory

linuxhelp ~ # ls
file_5b0c7089434be  geeklog
linuxhelp ~ # chown -R www-data:www-data geeklog/  chmod -R 775 geeklog/

Move geeklog drectory to html location

linuxhelp ~ # mv geeklog/ /var/www/html/

Create a new virtual host configuration for accessing the Geeklog application

linuxhelp ~ # cd /etc/apache2/sites-available/
linuxhelp sites-available # vim geeklog.conf
< VirtualHost *:80> 
ServerName www.linuxhelp1.com
DocumentRoot /var/www/html/geeklog/public_html/
< Directory /var/www/html/geeklog/public_html/> 
AllowOverride All
allow from all
< /Directory> 
< /VirtualHost> 

Enable the site access

linuxhelp sites-available # a2ensite geeklog.conf 
Enabling site geeklog.
To activate the new configuration, you need to run:
  service apache2 reload

Enable the rewrite module

linuxhelp sites-available # a2enmod rewrite 
Enabling module rewrite.
To activate the new configuration, you need to run:
  service apache2 restart

Make an entry to the host file as follows

linuxhelp sites-available # vim /etc/hosts

Finally, restart the apache2 service

linuxhelp sites-available # systemctl restart apache2.service

Now you can proceed the further installation and configuration from the browser by navigating to the following URL: http://< ipaddress or domain name

Welcome page of Geeklog

Choose the installation type

Configure the site information, database detail, and Admin user credential

Once the installation is done you will see the following page.

Log in using the Admin user credentials

Once you login you need to set up a Password

Administration control panel of Geeklog

With this, the method to install Geeklog 2.2.0 on Linuxmint-18.03 comes to an end.

Tag : Linux Mint
FAQ
Q
How to enable site access for geeklog?
A
To enable site access for geeklog use the following command

#a2ensite geeklog.conf
Q
How to download geeklog from the terminal ?
A
To download geeklog from the terminal use the following command.

#wget https://www.geeklog.net/downloads/visit.php/file_5b0c7089434be
Q
How to add PPA repo for PHP during Geeklog setup
A
to add PPA repo for PHP during Geeklog setup use the following repo package

ppa:ondrej/php
Q
What are the Prerequisites of Geeklog CMS?
A
The Prerequisites of Geeklog CMS are

Install LAMP(Apache, MariaDB, php7)
In MariaDB (create database and user and give privileges to that user )
Q
What is Geeklog CMS?
A
Geeklog is an open source content management system which is used for creating and managing dynamic web content. It can be used either as Weblog, CMS or Web Portal and it is written in PHP and supports MYSQL database.