How to install textpattern 4.7.3 on centos 7.5
- 01:03 rpm -q centos-release
- 01:21 mysql -u root -p
- 02:56 wget https://textpattern.com/File+download/91/textpattern-4.7.3.zip
- 03:11 unzip textpattern-4.7.3.zip
- 03:23 mv textpattern-4.7.3 /var/www/textpattern
- 03:40 chown -R apache:apache /var/www/textpattern
- 03:56 chmod -R 755 /var/www/textpattern
- 04:16 vim /etc/httpd/conf.d/textpattern.conf
- 05:17 systemctl restart httpd
- 06:27 cd /var/www/textpattern
- 06:38 cd textpattern
- 06:56 vim config.php
- 07:17 systemctl restart httpd
Installation of textpattern cms 4.7.3 on centos 7.5
Requirements for textpattern cms:
Apache Mariadb php 5.6 and its module (yum install -y php php-xml php-gd php-curl php-common php-mysql php-soap php-mysql php-mcrypt)
You need to configure the LAMP setup For the Installation of Textpattern CMS If you dont have the Lamp setup Refer Here
Installation proccedure
Check the centos version by using the following command
[root@linuxhelp ~]# rpm -q centos-release
centos-release-7-5.1804.el7.centos.x86_64
configure the MySQL database. Log into MySQL as a root user and make the necessary settings.
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.60-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 textdb;
Query OK, 1 row affected (0.00 sec)
MariaDB [(none)]> create user 'textuser'@localhost identified by '123456';
Query OK, 0 rows affected (0.00 sec)
MariaDB [(none)]> grant all privileges on textdb.* to 'textuser'@localhost;
Query OK, 0 rows affected (0.00 sec)
MariaDB [(none)]> flush privileges;
Query OK, 0 rows affected (0.00 sec)
MariaDB [(none)]> Ctrl-C -- exit!
Aborted
Once the database configuration is done, you shall download the Textpattern cms with the help of the following command.
[root@linuxhelp ~]# wget https://textpattern.com/File+download/91/textpattern-4.7.3.zip
--2019-04-20 23:45:30-- https://textpattern.com/File+download/91/textpattern-4.7.3.zip
Resolving textpattern.com (textpattern.com)... 46.101.158.114, 2a03:b0c0:3:d0::db2:5001
Connecting to textpattern.com (textpattern.com)|46.101.158.114|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1822787 (1.7M) [application/octet-stream]
Saving to: ‘textpattern-4.7.3.zip’
100%[==========================================================>] 1,822,787 722KB/s in 2.5s
2019-04-20 23:45:33 (722 KB/s) - ‘textpattern-4.7.3.zip’ saved [1822787/1822787]
Once the download is completed extract the download package using unzip command
[root@linuxhelp ~]# unzip textpattern-4.7.3.zip
Archive: textpattern-4.7.3.zip
creating: textpattern-4.7.3/
inflating: textpattern-4.7.3/.htaccess
inflating: textpattern-4.7.3/css.php
creating: textpattern-4.7.3/files/
inflating: textpattern-4.7.3/files/.htaccess-dist
.
.
.
inflating: textpattern-4.7.3/textpattern/vendors/Textpattern/Validator/FormConstraint.php
inflating: textpattern-4.7.3/textpattern/vendors/Textpattern/Validator/SectionConstraint.php
inflating: textpattern-4.7.3/textpattern/vendors/Textpattern/Validator/TrueConstraint.php
inflating: textpattern-4.7.3/textpattern/vendors/Textpattern/Validator/Validator.php
inflating: textpattern-4.7.3/textpattern/vendors/Txp.php
creating: textpattern-4.7.3/themes/
inflating: textpattern-4.7.3/themes/.htaccess
Move the textpattern cms directory to apache root directory
[root@linuxhelp ~]# mv textpattern-4.7.3 /var/www/textpattern
Set the ownership and permission for textpattern cms by using the following command
[root@linuxhelp ~]# chown -R apache:apache /var/www/textpattern
[root@linuxhelp ~]# chmod -R 755 /var/www/textpattern
Configure the virtualhost for accesing the textpattern cms
[root@linuxhelp ~]# vim /etc/httpd/conf.d/textpattern.conf
<Virtualhost *:80>
servername www.linuxhelp1.com
documentroot /var/www/textpattern
</Virtualhost>
Restart the apache service by using the following command
[root@linuxhelp ~]# systemctl restart httpd
Switch to your browser and enter your domain name
Select the required language
Enter the required database details and click next.
A configuration file is prompted to the user to enter into the Textpattern directory.

[root@linuxhelp ~]#cd /var/www/textpattern
[root@linuxhelp textpattern]# ls
css.php files HISTORY.txt images index.php LICENSE.txt README.txt rpc textpattern themes
[root@linuxhelp textpattern]# cd textpattern
[root@linuxhelp textpattern]# vim config.php
<?php
$txpcfg['db'] = 'textdb';
$txpcfg['user'] = 'textuser';
$txpcfg['pass'] = '123456';
$txpcfg['host'] = 'localhost';
$txpcfg['table_prefix'] = '';
$txpcfg['txpath'] = '/var/www/textpattern/textpattern';
$txpcfg['dbcharset'] = 'utf8mb4';
?>
[root@linuxhelp textpattern]# systemctl restart httpd
after adding the configuration file and click " I did it" option.
Enter the database tables details and click next.
The installation is complete. Click login now option.
The login page appears on the screen. Enter the admin credentials and login.
The admin page of Textpattern appears on the screen.

The installation procedure of Textpattern CMS 4.7.3 on CentOS 7.5 comes to end
Comments ( 0 )
No comments available