• Get In Touch
March 19, 2017

How to Install Typesetter CMS on CentOS 7

Want your very own server? Get our 1GB memory, Xeon V4, 25GB SSD VPS for £10.00 / month.
Get a Cloud Server

Typesetter is a free and open source CMS which is written in PHP. Typesetter has many qualities but three of the most valuable qualities which describes typesetter is that it is free, fast and very easy to work with. It is efficient and organized and it is not only quick to process data, but also designed intuitively so users can find features quickly. Typesetter is easy and intuitive for users with little to no experience with web technology and it is used by small or medium companies. Sites you build using Typesetter will benefit from a number of advanced optimization techniques that reduce the amount of bandwidth used and the number of HTTP round-trips. Some of the features of Typesetter are listed below:

  • True WYSIWYG (What You See Is What You Get)
  • Fast Websites
  • Image Galleries
  • Easy Installation
  • Secure
  • SEO Friendly Organization
  • Plugins and Themes
  • No Database Needed
  • Available in Multiple Languages

Requirements

Typesetter does not require any special hardware to install on your server but we recommend you to install Typesetter on a fresh and updated CentOS 7 server. You’need to logged in as root user on server to follow this tutorial.

Update the System

Before going through the installation process it is highly recommended that you update your system and upgrade all available packages run below given command it’ll do the job for you.

yum -y update

Install Apache Web Server

Once the system is updated, you can install the dependencies required. To install Typesetter you will need to install the Apache web server along with PHP with a few extensions.

Run the following command to install the Apache web server.

yum -y install httpd

Now you can start Apache and enable it to start at boot time, using the following commands:

systemctl start httpd.service systemctl enable httpd.service

You can check the status of Apache web server using the following command:

systemctl status httpd

You should see following output:

[root@Sajid ~]# systemctl status httpd
● httpd.service - The Apache HTTP Server
   Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled)
   Active: active (running) since Wed 2017-02-08 14:46:03 UTC; 22s ago
     Docs: man:httpd(8)
           man:apachectl(8)
 Main PID: 10743 (httpd)
   Status: "Total requests: 0; Current requests/sec: 0; Current traffic:   0 B/sec"
   CGroup: /system.slice/httpd.service
           ├─10743 /usr/sbin/httpd -DFOREGROUND
           ├─10744 /usr/sbin/httpd -DFOREGROUND
           ├─10745 /usr/sbin/httpd -DFOREGROUND
           ├─10746 /usr/sbin/httpd -DFOREGROUND
           ├─10747 /usr/sbin/httpd -DFOREGROUND
           └─10748 /usr/sbin/httpd -DFOREGROUND

Feb 08 14:46:03 ip-172-31-22-142 systemd[1]: Starting The Apache HTTP Server...
Feb 08 14:46:03 ip-172-31-22-142 systemd[1]: Started The Apache HTTP Server.


We will have to install PHP 5.3 or greater. To do so run following commands as shown below.

yum -y install epel-release
rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm

Now use this command to install PHP 7.1 and required extensions:

yum install mod_php71w php71w-common php71w-mbstring php71w-xmlrpc php71w-gd php71w-xml php71w-intl php71w-cli php71w-mcrypt -y

Next you’ll have to edit some PHP settings to fulfill Typesetter requirements in order to do so run this command:

nano /etc/php.ini

Now update following lines as shown below:

memory_limit = 128M         # 128M or Higher according to the memory available
upload_max_filesize = 2M    # 32M or Higher
post_max_size = 8M          # 32M or Higher
;upload_tmp_dir =           # Uncomment and change it to upload_tmp_dir = /tmp

Next you’ll have to restart your apache web server to load new components that we just configured and use following command to restart apache web server.

systemctl restart httpd.service

Installing Typesetter

We have now installed all the required dependencies to install Typesetter and now we are ready to download and install Typesetter. So first of all download latest stable release of Typesetter from its official website or you can simply run below given command it’ll do the job for you.

wget https://www.typesettercms.com/Special_gpEasy?cmd=download -O Typesetter-5.0.3.zip

If in case you don’t have wget and unzip package already installed on your server then first install them using yum -y install wget unzip

Next, extract the archive file to the web root directory and set proper ownership permissions using following commands:

unzip Typesetter-5.0.3.zip -d /var/www/html

chown -R apache:apache /var/www/html/Typesetter/data

Now you’ll have to create a virtual host for Typesetter and we can do so using any text editor here we are using nano text editor you can also install it using yum -y install nano.

Create a virtual host configuration file using this command:

nano /etc/httpd/conf.d/typesetter.conf

Add following content to the configuration file and change server admin, server name with your own ones.

<VirtualHost *:80>
ServerAdmin admin@example.com
DocumentRoot /var/www/html/Typesetter/
ServerName typesetter.example.com
ServerAlias www.typesetter.example.com
<Directory /var/www/html/Typesetter/>
Options FollowSymLinks
AllowOverride All
Order allow,deny
allow from all
</Directory>
ErrorLog /var/log/httpd/typesetter.example.com-error_log
CustomLog /var/log/httpd/typesetter.example.com-access_log common
</VirtualHost>

Save the configuration file and restart apache web server to apply changes using the command below:

systemctl restart httpd.service

Next you’ll have to modify firewall rules and if in case you don’t have firewalld services installed on your server then you can install it using yum -y install firewalld and you can start it using systemctl start firewalld

Next run these below given command to modify the firewalld rules.

firewall-cmd --zone=public --permanent --add-service=http
firewall-cmd --reload

Web Access

Open up your favorite your web browser and please visit http://yourserverIP and you’ll see a Typesetter installation wizard in checking server section. In the configuration page provide your admin credentials like shown below:

Website Title: Your Site Title
Email Address: admin@yourdomain.com
Admin Username: your admin name
Admin Password: your admin password
Repeat Password: your admin password

Finally click on Install button to finish this installation wizard and click on View your web site link to start your working with Typesetter.

Once the installation process is finished we recommend you to delete install.php file for security reasons. So run below given command it’ll do the job for you.

rm /var/www/html/Typesetter/include/install/install.php

Page Editing

Page editing in Typesetter uses true WYSIWYG, that means the colors, sizing and positioning of the elements on your page will be the same while you’re editing as when visitors view your site. There are some basic steps given below you’ll need to follow these steps to edit a page.

Basic editing steps:

  • Make sure you’re logged in to your site
  • Navigate to the page you want to edit. For example: http://example.com/page_you_want_to_edit
  • Move your mouse over the main content area and click the left mouse button
  • A menu will display with the following items: “Edit”, “Manage Sections”, “Rename / Details”, “Revision History” and “Page Manager”
  • Click on “Edit” and the content area will transition into an editable area.
  • Make your desired changes
  • Click “Publish Draft” to finalize your changes.

Creating Pages

Once you’ve installed Typesetter CMS now you can create your own pages and to do so you need to follow these three below given steps:

  • In your administrator’s toolbar, expand the section under the “Content” heading.
  • Click on the + Create New Page link to open the new page dialog
  • Enter the “Label” for the page, select the content type and click the Create New Page button.

Conclusion

In this tutorial you’ve learned how to install Typesetter CMS on your centos 7 server. You’ve also learned how to creating pages and editing pages, so now we hope you enough knowledge to work with Typesetter CMS.

Want your very own server? Get our 1GB memory, Xeon V4, 25GB SSD VPS for £10.00 / month.
Get a Cloud Server

Share this Article!

Related Posts

Node.js Authentication – A Complete Guide with Passport and JWT

Node.js Authentication – A Complete Guide with Passport and JWT

Truth be told, it’s difficult for a web application that doesn’t have some kind of identification, even if you don’t see it as a security measure in and of itself. The Internet is a kind of lawless land, and even on free services like Google’s, authentication ensures that abuses will be avoided or at least […]

Node.js and MongoDB: How to Connect MongoDB With Node

Node.js and MongoDB: How to Connect MongoDB With Node

MongoDB is a document-oriented NoSQL database, which was born in 2007 in California as a service to be used within a larger project, but which soon became an independent and open-source product. It stores documents in JSON, a format based on JavaScript and simpler than XML, but still with good expressiveness. It is the dominant […]

Using MySQL with Node.js: A Complete Tutorial

Using MySQL with Node.js: A Complete Tutorial

Although data persistence is almost always a fundamental element of applications, Node.js has no native integration with databases. Everything is delegated to third-party libraries to be included manually, in addition to the standard APIs. Although MongoDB and other non-relational databases are the most common choice with Node because if you need to scale an application, […]

Node.Js Vs Django: Which Is the Best for Your Project

Node.Js Vs Django: Which Is the Best for Your Project

Django and NodeJs are two powerful technologies for web development, both have great functionality, versatile applications, and a great user interface. Both are open source and can be used for free. But which one fits your project best? NodeJs is based on JavaScript, while Django is written in Python. These are two equally popular technologies […]

Nodejs Vs PHP:  Which Works Best?

Nodejs Vs PHP: Which Works Best?

Before getting into the “battle” between Node.js and PHP we need to understand why the issue is still ongoing. It all started with the increased demand for smartphone applications, their success forcing developers to adapt to new back-end technologies that could handle a multitude of simultaneous requests. JavaScript has always been identified as a client-side […]