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
- SEO Friendly Organization
- Plugins and Themes
- No Database Needed
- Available in Multiple Languages
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: Starting The Apache HTTP Server... Feb 08 14:46:03 ip-172-31-22-142 systemd: 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:
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
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:
Add following content to the configuration file and change server admin, server name with your own ones.
<VirtualHost *:80> ServerAdmin firstname.lastname@example.org 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
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: email@example.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.
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.
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.
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.