How to Install and Configure typesetter CMS on CentOS 8.1
To install and configure Typesetter CMS on CentOS 8.1
Introduction:
Typesetter is an open source CMS written in PHP. It provides What-you-see-is-what-you-get editing and flat-file storage. It is a content management system that lets users to create flexible web sites with a simple interface. It supports jQuery, learner CSS, Sass and Bootstrap. The text-editor provides features like auto save to draft, edit multiple sections in single session, consistent edit experience and drafts for extra areas. It also provides a built in compiler and a Bootswatch theme. This video will cover the installation and configuration of typesetter CMS on CentOS 8.1.
Prerequisite:
Apache
MariaDB
Php and its module (php php-zip php-soap php-cli php-common php-gd php-mbstring php-Mcrypt php-MySQL php-XML
Installation process:
check the installed version of OS by triggering the following command:
[root@linuxhelp ~]# cat /etc/centos-release
CentOS Linux release 8.1.1911 (Core)
Now install apache web server
[root@linuxhelp ~]# yum install httpd -y
Last metadata expiration check: 1:23:11 ago on Tuesday 13 October 2020 12:10:30 PM IST.
Dependencies resolved.
httpd x86_64 2.4.37-21.module_el8.2.0+494+1df74eae AppStream 1.7 M
Installing dependencies:
apr-1.6.3-9.el8.x86_64 apr-util-1.6.1-6.el8.x86_64
httpd-filesystem-2.4.37-21.module_el8.2.0+494+1df74eae.noarch
httpd-tools-2.4.37-21.module_el8.2.0+494+1df74eae.x86_64 mod_http2-1.11.3-3.module_el8.2.0+486+c01050f0.1.x86_64 centos-logos-httpd-80.5-2.el8.noarch
Complete!
Now install MariaDB:
{root@linuxhelp ~]# yum install mariadb mariadb-server
[root@linuxhelp user]# yum install mariadb mariadb-server
Last metadata expiration check: 1:34:08 ago on Tuesday 13 October 2020 12:10:30 PM IST.
Dependencies resolved.
….
(5/10): mariadb-gssapi-server-10.3.17-1.module_el8.1.0+257+48736ea6.x86_64.rpm 256 kB/s | 49 kB 00:00
(6/10): mariadb-10.3.17-1.module_el8.1.0+257+48736ea6.x86_64.rpm 244 kB/s | 6.1 MB 00:25
(7/10): mariadb-backup-10.3.17-1.module_el8.1.0+257+48736ea6.x86_64.rpm 220 kB/s | 6.0 MB 00:28
(8/10): perl-DBD-MySQL-4.046-3.module_el8.1.0+203+e45423dc.x86_64.rpm 235 kB/s | 156 kB 00:00
(9/10): mariadb-server-utils-10.3.17-1.module_el8.1.0+257+48736ea6.x86_64.rpm 293 kB/s | 1.6 MB 00:05
(10/10): mariadb-server-10.3.17-1.module_el8.1.0+257+48736ea6.x86_64.rpm 397 kB/s | 16 MB 00:41
….
…
mariadb-connector-c-3.0.7-1.el8.x86_64 mariadb-connector-c-config3.0.71.el8.noarch
mariadb-errmsg-3:10.3.17-1.module_el8.1.0+257+48736ea6.x86_64 perl-DBD-MySQL-4.046-3.module_el8.1.0+203+e45423dc.x86_64
Complete!
Enable the secure installation to secure MySQL:
[root@linuxhelp ~]# mysql_secure_installation
Enter current password for root (enter for none):
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)
Enter current password for root (enter for none):
OK, successfully used password, moving on...
Setting the root password ensures that nobody can log into the MariaDB
root user without the proper authorisation.
You already have a root password set, so you can safely answer 'n'.
Change the root password? [Y/n] y
New password:
Re-enter new password:
Password updated successfully!
Reloading privilege tables..
... Success!
By default, a MariaDB installation has an anonymous user, allowing anyone
to log into MariaDB without having to have a user account created for
them. This is intended only for testing, and to make the installation
go a bit smoother. You should remove them before moving into a
production environment.
Remove anonymous users? [Y/n] y
Success!
Normally, root should only be allowed to connect from 'localhost'. This
ensures that someone cannot guess at the root password from the network.
Disallow root login remotely? [Y/n] y
Success!
By default, MariaDB comes with a database named 'test' that anyone can
access. This is also intended only for testing, and should be removed
before moving into a production environment.
Remove test database and access to it? [Y/n] y
- Dropping test database...
Success!
- Removing privileges on test database...
Success!
Reloading the privilege tables will ensure that all changes made so far
will take effect immediately.
Reload privilege tables now? [Y/n] y
Success!
Cleaning up..
All done! If you've completed all of the above steps, your MariaDB
installation should now be secure.
Thanks for using MariaDB!
Install the PHP and its required modules:
[root@linuxhelp yum install php php-zip php-soap php-cli php-common php-gd php-mbstring php-mcrypt php-mysqlnd
php-xml
Last metadata expiration check: 0:00:14 ago on Tuesday 13 October 2020 03:10:48 PM IST.
Package php-mbstring-7.2.24-1.module_el8.2.0+313+b04d0a66.x86_64 is already installed.
Package php-gd-7.2.24-1.module_el8.2.0+313+b04d0a66.x86_64 is already installed.
Package php-mysqlnd-7.2.24-1.module_el8.2.0+313+b04d0a66.x86_64 is already installed.
Package php-pecl-zip-1.15.3-1.module_el8.2.0+313+b04d0a66.x86_64 is already installed.
Package php-soap-7.2.24-1.module_el8.2.0+313+b04d0a66.x86_64 is already installed.
Package php-ldap-7.2.24-1.module_el8.2.0+313+b04d0a66.x86_64 is already installed.
Package php-common-7.2.24-1.module_el8.2.0+313+b04d0a66.x86_64 is already installed.
Installing:
php x86_64 7.2.24-1.module_el8.2.0+313+b04d0a66 AppStream 1.5 M
Installing dependencies:
nginx-filesystem noarch 1:1.14.1-9.module_el8.0.0+184+e34fea82 AppStream 24 k
php-cli x86_64 7.2.24-1.module_el8.2.0+313+b04d0a66 AppStream 3.1 M
Installing weak dependencies:
php-fpm x86_64 7.2.24-1.module_el8.2.0+313+b04d0a66 AppStream 1.6 M
……………….
………………….
(4/4): php-cli-7.2.24-1.module_el8.2.0+313+b04d0a66.x86_64.rpm 234 kB/s | 3.1 MB 00:13
Preparing : 1/1
Installing : php-cli-7.2.24-1.module_el8.2.0+313+b04d0a66.x86_64 ¼
……………..
……………
Verifying : php-fpm-7.2.24-1.module_el8.2.0+313+b04d0a66.x86_64 4/4
Installed:
php-7.2.24-1.module_el8.2.0+313+b04d0a66.x86_64 php-fpm-7.2.24-1.module_el8.2.0+313+b04d0a66.x86_64 nginx-filesystem-1:1.14.1-9.module_el8.0.0+184+e34fea82.noarch
php-cli-7.2.24-1.module_el8.2.0+313+b04d0a66.x86_64
Complete!
Configure info.php by using the following command:
[root@linuxhelp ~]# vim /var/www/html/info.php
<?
Phpinfo();
?>
Once the all step is completed restart the apache service
[root@linuxhelp ~]# systemctl restart httpd
Now, download typesetter CMS by triggering the below command:
[root@linuxhelp ~]# wget https://github.com/Typesetter/Typesetter/archive/v5.1.zip
--2020-11-05 00:33:55-- https://github.com/Typesetter/Typesetter/archive/v5.1.zip
Resolving github.com (github.com)... 192.30.253.112, 192.30.253.113
Connecting to github.com (github.com)|192.30.253.112|:443... connected.
HTTP request sent, awaiting response... 302 Found
HTTP request sent, awaiting response... 200 OK
Length: unspecified [application/zip]
Saving to: ‘v5.1.zip’
[ <=> ] 4,409,398 1.06MB/s in 5.2s
2020-11-05 00:34:03 (821 KB/s) - ‘v5.1.zip’ saved [4409398]
Then, unzip the downloaded master.zip file:
[root@linuxhelp ~]# unzip master.zip
Archive: master.zip
a6fddeffdcaace190baa41abb8854903a4b03fd6
creating: Typesetter-master/
creating: Typesetter-master/.easymin/
inflating: Typesetter-master/.easymin/ignore_prefixes
extracting: Typesetter-master/.easymin/ignore_types
inflating: Typesetter-master/.easymin/noshrink_paths
inflating: Typesetter-master/.editorconfig
inflating: Typesetter-master/.gitignore
inflating: Typesetter-master/.htaccess
inflating: Typesetter-master/.travis.yml
inflating: Typesetter-master/Addon.ini
inflating: Typesetter-master/README.md
……………….
……………………
inflating: Typesetter-master/themes/index.html
inflating: Typesetter-master/web.config
Move typesetter file to Apache root directory
[root@linuxhelp ~]# mv Typesetter-master /var/www/typesetter
Now, change ownership using the below command:
[root@linuxhelp ~]# chown -R apache:apache /var/www/typesetter
Change permission for typesetter by triggering the following command:
[root@linuxhelp ~]# chmod -R 755 /var/www/typesetter
Next step is very crucial. configure the Apache VirtualHost for Typesetter. Open the .conf file for Typesetter.
[root@linuxhelp ~]# vim /etc/httpd/conf.d/type.conf
<Virtualhost *:80>
Servername www.linuxhelp1.com
Documentroot /var/www/typesetter
<directory /var/www/typesetter>
Allowoverride all
Allow from all
</directory>
</Virtualhost>
Now restart Apache service to reflex changes that have been made:
[root@linuxhelp ~]# systemctl restart httpd
Now Open your browser and type domain name there.
This page shows the requirement for typesetter CMS
Supports faster creation of websites.
Has numerous plugins and Themes to browse and download.
Enables creation of Dynamic galleries
support multiple languages.
LAMP Setup
-apache
-Mariadb
-PHP 7+ and it modules php-cli php-common php-gd php-mbstring php-mcrypt php-mysqland php-xml.