• Categories
    Category
  • Categories
    Category
  • News
  • Tutorials
  • Forums
  • Tags
  • Users
Tutorial Comments FAQ Related Articles

How to install TextPattern CMS with Nginx on CentOS 6.9

1915

To install TextPattern CMS with Nginx on CentOS 6.9

Textpattern CMS is especially designed for web developers, designers and bloggers. It allows the users to publish their content with the easy interface. The textpattern tool is developed with advanced features to create, edit and publish content in the websites. It contains features like conversion of plain text to XHTML code, tag-based template system, built-in site statistics and seperation of content from presentation. This tutorial covers the installation procedure of Textpattern CMS with Nginx on CentOS 6.9.

Installation procedure

To proceed with the installation procedure, edit the php configuration file using vim editor and change the timezone in the file. Save and exit the file.

[root@linuxhelp1 ~]# vim /etc/php.ini
date.timezone = Asia/Kolkata

Edit the php-fpm configuration file using vim editor and enter the following changes. Save and exit the file.

[root@linuxhelp1 ~]# vim /etc/php-fpm.d/www.conf
listen = /var/run/php-fpm/php-fpm.sock
listen.owner = nginx
listen.group = nginx
user = nginx
group = nginx

Restart the php-fpm service by running the following command.

[root@linuxhelp1 ~]# service php-fpm restart
Stopping php-fpm:                                          [  OK  ]
Starting php-fpm:                                          [  OK  ]

Next download the textpattern package by executing the wget command followed by the download link.

[root@linuxhelp1 ~]#  wget https://textpattern.com/file_download/75/textpattern-4.6.2.zip
--2017-09-17 00:18:27--  https://textpattern.com/file_download/75/textpattern-4.6.2.zip
Resolving textpattern.com... 37.153.96.164
Connecting to textpattern.com|37.153.96.164|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1657031 (1.6M) [application/octet-stream]
Saving to: “ textpattern-4.6.2.zip” 

100%[======================================> ] 1,657,031    350K/s   in 4.6s    
2017-09-17 00:18:33 (350 KB/s) - “ textpattern-4.6.2.zip”  saved [1657031/1657031]

The package has been downloaded in the target system. Extract the downloaded file using unzip command.

[root@linuxhelp1 ~]# unzip textpattern-4.6.2.zip
Archive:  textpattern-4.6.2.zip
   creating: textpattern-4.6.2/
  inflating: textpattern-4.6.2/.htaccess  
  inflating: textpattern-4.6.2/css.php  
.
.
inflating: textpattern-4.6.2/textpattern/vendors/Textpattern/Validator/Validator.php  
  inflating: textpattern-4.6.2/textpattern/vendors/Txp.php  

Move the textpattern package into the HTML location.

[root@linuxhelp1 ~]# mv textpattern-4.6.2/textpattern/  /usr/share/nginx/html/

Change the ownership of file php-fpm file by running the following command.

[root@linuxhelp1 ~]# chown nginx:nginx /var/run/php-fpm/php-fpm.sock

Change the ownership of file HTML location.

[root@linuxhelp1 ~]# chown -R nginx:nginx /usr/share/nginx

Configure the Nginx configuration file using vim editor and edit the changes in the file. Save and exit the file.

[root@linuxhelp1 ~]# vim /etc/nginx/conf.d/default.conf
server {
    listen       80 default_server 
    listen       [::]:80 default_server 
    server_name  _ 
    root         /usr/share/nginx/html 
    # Load configuration files for the default server block.
    include /etc/nginx/default.d/*.conf 
    index index.html index.php 
    location ~ \.php {
    fastcgi_index index.php 
    fastcgi_split_path_info ^(.+\.php)(.*)$ 
    include /etc/nginx/fastcgi_params 
    fastcgi_pass unix:/var/run/php-fpm/php-fpm.sock 
    fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name 
    }
   error_page 404 /404.html 
        location = /40x.html {
    }
    error_page 500 502 503 504 /50x.html 
        location = /50x.html {
    }
}

Restart the Nginx service.

[root@linuxhelp1 ~]# service nginx restart
Stopping nginx:                                            [  OK  ]
Starting nginx:                                            [  OK  ]

Swtich over to the browser and give the URL as http://machineip/textpattern/setup. It will lead to the setup starts, choose the required language and click submit.
language

Enter the database tables details and click next.

MySQL details

A configuration file is prompted to the user to enter into the Textpattern directory.

configuration file

Open the terminal and add the above configuration file content in the file. Save and exit the file.

[root@linuxhelp1 textpattern]# vim config.php
< ?php
$txpcfg[' db' ] = ' textdb'  
$txpcfg[' user' ] = ' user'  
$txpcfg[' pass' ] = ' 1'  
$txpcfg[' host' ] = ' localhost'  
$txpcfg[' table_prefix' ] = ' '  
$txpcfg[' txpath' ] = ' /var/www/html/textpattern'  
$txpcfg[' dbcharset' ] = ' utf8'  
?> 

Switch over to the browser after adding the configuration file and click " I did it" option.
removed installation folder

Enter the database tables details and click next.
database tables

The installation is complete. Click login now option.
login option

The login page appears on the screen. Enter the admin credentials and login.
credentials

The admin page of Textpattern appears on the screen.
admin page

The installation procedure of Textpattern CMS with Nginx on CentOS 6.9 is done without any glitches.

Tags:
liam
Author: 

Comments ( 0 )

No comments available

Add a comment

Frequently asked questions ( 5 )

Q

can I use mysql instead of mariadb for TextPattern CMS?

A

yes. You can use any type of database as per your choice and preference.

Q

what PHP version should I use for TextPattern CMS?

A

you can make use of the latest php version for the best output.

Q

where to download the textpattern CMS in terminal?

A

download the textpattern package by executing the wget command followed by the download link
# wget https://textpattern.com/file_download/75/textpattern-4.6.2.zip

Q

how to switch to the textpattern setup in centos?

A

Swtich over to the browser and give the URL as http://machineip/textpattern/setup. It will lead to the setup starts, choose the required language and click submit.

Q

which command to start the Nginx web server in centos?

A

use the below command to start the nginx in centos
# service nginx start

Related Tutorials in How to install TextPattern CMS with Nginx on CentOS 6.9

Related Tutorials in How to install TextPattern CMS with Nginx on CentOS 6.9

How To Install AnyDesk on Centos 7
How To Install AnyDesk on Centos 7
Apr 2, 2018
How to install Tiki Wiki CMS Groupware on CentOS 7
How to install Tiki Wiki CMS Groupware on CentOS 7
May 31, 2018
How to install PHP ImageMagick on CentOS 7
How to install PHP ImageMagick on CentOS 7
Nov 4, 2017
How to Upgrade and Downgrade the PHP Versions on CentOS 7.6
How to Upgrade and Downgrade the PHP Versions on CentOS 7.6
Jun 4, 2019
How to install Apache from Source Code on CentOS 7
How to install Apache from Source Code on CentOS 7
Oct 21, 2017
How to enable or disable repositories in CentOS
How to enable or disable repositories in CentOS
Mar 28, 2018
How to install AWStats on CentOS 7
How to install AWStats on CentOS 7
Dec 8, 2017
How to install Apache JMeter in CentOS 7
How to install Apache JMeter in CentOS 7
Mar 24, 2017

Related Forums in How to install TextPattern CMS with Nginx on CentOS 6.9

Related Forums in How to install TextPattern CMS with Nginx on CentOS 6.9

CentOS
connor class=
How To Completely Remove Apache package On CentOS 7.6
May 14, 2019
CentOS
ceriaimmaculate class=
setfacl : command not found
Jan 3, 2018
CentOS
mason class=
Error getting authority: Error initializing authority: Could not connect: No such file or directory (g-io-error-quark, 1)
Nov 20, 2018
Nginx
gokulravichandran2 class=
Failed to start A high performance web server and a reverse proxy server
Dec 23, 2018
CentOS
landon class=
Command to find SNMP Version
May 28, 2018
CentOS
arjitharon class=
cannot start minio service help
Mar 10, 2018
Apache tomcat
AadrikaAnshu class=
Cannot find ./catalina.sh The file is absent or does not have execute permission This file is needed to run this program
Jun 17, 2019
gitlab
caden class=
Insufficient space in download directory /var/cache/yum/x86_64/6/base/packages
Jul 22, 2019
Back To Top!
Rank
User
Points

Top Contributers

userNamenaveelansari
135850

Top Contributers

userNameayanbhatti
92510

Top Contributers

userNamehamzaahmed
32150

Top Contributers

1
userNamelinuxhelp
31040

Top Contributers

userNamemuhammadali
24500
Can you help Isaac ?
How to run windows application in linux

I need to run the windows application in my Linux machine, instead of installing from yum repo or any other repos. How to do that..??

Networking
  • Routing
  • trunk
  • Netmask
  • Packet Capture
  • domain
  • HTTP Proxy
Server Setup
  • NFS
  • KVM
  • Memory
  • Sendmail
  • WebDAV
  • LXC
Shell Commands
  • Cloud commander
  • Command line archive tools
  • last command
  • Shell
  • terminal
  • Throttle
Desktop Application
  • Linux app
  • Pithos
  • Retrospect
  • Scribe
  • TortoiseHg
  • 4Images
Monitoring Tool
  • Monit
  • Apache Server Monitoring
  • EtherApe 
  • Arpwatch Tool
  • Auditd
  • Barman
Web Application
  • Nutch
  • Amazon VPC
  • FarmWarDeployer
  • Rukovoditel
  • Mirror site
  • Chef
Contact Us | Terms of Use| Privacy Policy| Disclaimer
© 2025 LinuxHelp.com All rights reserved. Linux™ is the registered trademark of Linus Torvalds. This site is not affiliated with linus torvalds in any way.