How To Install Grand CMS On Centos 7.6
- 00:26 rpm -q centos-release
- 00:40 mysql -u root -p
- 02:02 wget http://downloads.sourceforge.net/project/grandcms/grandcms_v0.2.0.1.1.zip
- 02:17 unzip grandcms_v0.2.0.1.1.zip -d grand
- 02:31 mv grand /var/www/
- 02:39 chown -R apache:apache /var/www/grand
- 02:49 chmod -R 775 /var/www/grand
- 03:04 vim /etc/httpd/conf.d/grand.conf
- 04:04 systemctl restart httpd
- 04:51 cd /var/www/grand
- 04:59 cd upload/
- 05:14 mv config-dist.php config.php
- 05:23 cd admin
- 05:33 mv config-dist.php config.php
- 05:35 systemctl restart httpd
Installation Of Grand CMS On centos 7.6
Installation process
Check the centos version by using the following command
[root@linuxhelp ~]# rpm -q centos-release
centos-release-7-6.1810.2.el7.centos.x86_64
Create a database for known cms
[root@linuxhelp ~]# mysql -u root -p
Enter password:
Welcome to the MariaDB monitor. Commands end with ; or \g.
Your MariaDB connection id is 10
Server version: 5.5.64-MariaDB MariaDB Server
Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab, and others.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
MariaDB [(none)]> create database grandb;
Query OK, 1 row affected (0.00 sec)
MariaDB [(none)]> create user "granduser"@localhost identified by 'Linuxc#45';
Query OK, 0 rows affected (0.00 sec)
MariaDB [(none)]> grant all privileges on granddb.* to "granduser"@localhost;
Query OK, 0 rows affected (0.00 sec)
MariaDB [(none)]> flush privileges;
Query OK, 0 rows affected (0.00 sec)
MariaDB [(none)]> exit
Bye
Download the know cms installation package using wget command
[root@linuxhelp ~]# wget http://downloads.sourceforge.net/project/grandcms/grandcms_v0.2.0.1.1.zip
--2019-12-11 01:15:12-- http://downloads.sourceforge.net/project/grandcms/grandcms_v0.2.0.1.1.zip
Resolving downloads.sourceforge.net (downloads.sourceforge.net)... 216.105.38.13
Connecting to downloads.sourceforge.net (downloads.sourceforge.net)|216.105.38.13|:80... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://master.dl.sourceforge.net/project/grandcms/grandcms_v0.2.0.1.1.zip [following]
--2019-12-11 01:15:13-- https://master.dl.sourceforge.net/project/grandcms/grandcms_v0.2.0.1.1.zip
Resolving master.dl.sourceforge.net (master.dl.sourceforge.net)... 216.105.38.12
Connecting to master.dl.sourceforge.net (master.dl.sourceforge.net)|216.105.38.12|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 5606378 (5.3M) [application/octet-stream]
Saving to: ‘grandcms_v0.2.0.1.1.zip’
100%[====================================================>] 5,606,378 654KB/s in 13s
2019-12-11 01:15:30 (420 KB/s) - ‘grandcms_v0.2.0.1.1.zip’ saved [5606378/5606378]
Extract the downloaded package using unzip command
[root@linuxhelp ~]# unzip grandcms_v0.2.0.1.1.zip -d grand
Archive: grandcms_v0.2.0.1.1.zip
creating: grand/upload/
inflating: grand/upload/.htaccess.txt
creating: grand/upload/admin/
inflating: grand/upload/admin/config-dist.php
creating: grand/upload/admin/controller/
creating: grand/upload/admin/controller/catalog/
inflating: grand/upload/admin/controller/catalog/download.php
inflating: grand/upload/admin/controller/catalog/information.php
inflating: grand/upload/admin/controller/catalog/information_category.php
.
.
inflating: grand/install.txt
inflating: grand/license.txt
inflating: grand/README.txt
inflating: grand/upload/catalog/view/theme/default/template/common/header.tpl
Move the known cms directory to apache root directory
[root@linuxhelp ~]# mv grand /var/www/
Set the ownership and permission for known cms directory
[root@linuxhelp ~]# chown -R apache:apache /var/www/grand
[root@linuxhelp ~]# chmod -R 775 /var/www/grand
Configure the virtual host for known cms directory
[root@linuxhelp ~]# vim /etc/httpd/conf.d/grand.conf
<Virtualhost *:80>
Servername www.linuxhelp1.com
Documentroot /var/www/known
<directory /var/www/known>
allowoverride all
allow from all
</directory>
</virtualhost>
Restart the apache service
[root@linuxhelp ~]# systemctl restart httpd
Open the browser and enter your domain name This the welcome page of grand cms Go back to terminal and enter into apache root directory
[root@linuxhelp ~]# cd /var/www/grand
[root@linuxhelp grand]# ls -la
total 44
drwxrwxr-x 3 apache apache 76 Dec 11 01:15 .
drwxr-xr-x 5 root root 46 Dec 11 01:16 ..
-rwxrwxr-x 1 apache apache 2496 Feb 27 2015 install.txt
-rwxrwxr-x 1 apache apache 34752 Dec 6 2014 license.txt
-rwxrwxr-x 1 apache apache 374 May 6 2015 README.txt
drwxrwxr-x 8 apache apache 191 Mar 2 2015 upload
Enter into upload directory
[root@linuxhelp grand]# cd upload/
[root@linuxhelp upload]# ll
total 16
drwxrwxr-x 6 apache apache 120 Mar 2 2015 admin
drwxrwxr-x 6 apache apache 65 Mar 2 2015 catalog
-rwxrwxr-x 1 apache apache 0 Dec 6 2014 config-dist.php
-rwxrwxr-x 1 apache apache 197 Nov 13 2014 crossdomain.xml
drwxrwxr-x 2 apache apache 6 Feb 27 2015 download
drwxrwxr-x 7 apache apache 120 Feb 27 2015 image
-rwxrwxr-x 1 apache apache 7096 Mar 1 2015 index.php
drwxrwxr-x 6 apache apache 140 Mar 2 2015 install
-rwxrwxr-x 1 apache apache 383 Nov 13 2014 php.ini
drwxrwxr-x 11 apache apache 179 Mar 2 2015 system
Rename the config-dist.php to config.php
[root@linuxhelp upload]# mv config-dist.php config.php
Enter into admin directory
[root@linuxhelp upload]# cd admin
Rename the config-dist.php to config.php
[root@linuxhelp admin]# mv config-dist.php config.php
Restart the apache service
[root@linuxhelp admin]# systemctl restart httpd
Check the requirements Configure the database for grand cms Configure Admin credentials Installation completed For grand cms Login the admin page using the admin credentials This is the dash board of grand cms This is the method to install grand cms on centos 7.6 comes to end
Comments ( 0 )
No comments available