How to install Textpattern CMS on OpenSUSE Leap 42.3

To install Textpattern CMS on OpenSUSE Leap 42.3

Textpattern is a free, open-source, and flexible content management system (CMS) built based on PHP and MySQL. Known for its simple interface and security options, Textpattern CMS is also lightweight as it will only consume very little space in memory and disk. Although, Textpattern CMS is mostly sought among the web-blogging tools, it is indeed a powerful general-purpose content management system suitable for the creation of several kinds of web resources. Installing Textpattern is as simple as its interface and in this article, you will be exposed to the installation process of Textpattern CMS on OpenSUSE 42.1

Installing Text Pattern

In order to install Text Pattern CMS, you need to download its installation package. You can do that by going to its official website and copy the download link available there, later go back to your terminal and use the link along with the wget command as follows.

linuxhelp:~ # wget https://textpattern.com/file_download/75/textpattern-4.6.2.zip
--2017-11-18 11:03:28--  https://textpattern.com/file_download/75/textpattern-4.6.2.zip
Resolving textpattern.com (textpattern.com)... 37.153.96.164
Connecting to textpattern.com (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   67.0KB/s   in 16s   

2017-11-18 11:03:46 (98.2 KB/s) - ‘ textpattern-4.6.2.zip’  saved [1657031/1657031]


Once it is downloaded, extract it in Apache root directory as follows.

linuxhelp:~ # unzip textpattern-4.6.2.zip -d /srv/www/htdocs/
Archive:  textpattern-4.6.2.zip
   creating: /srv/www/htdocs/textpattern-4.6.2/
  inflating: /srv/www/htdocs/textpattern-4.6.2/.htaccess 
  inflating: /srv/www/htdocs/textpattern-4.6.2/css.php 
   creating: /srv/www/htdocs/textpattern-4.6.2/files/
  inflating: /srv/www/htdocs/textpattern-4.6.2/files/.htaccess-dist 
  inflating: /srv/www/htdocs/textpattern-4.6.2/HISTORY.txt 
.
.
.
inflating: /srv/www/htdocs/textpattern-4.6.2/textpattern/vendors/Textpattern/Validator/FalseConstraint.php 
  inflating: /srv/www/htdocs/textpattern-4.6.2/textpattern/vendors/Textpattern/Validator/FormConstraint.php 
  inflating: /srv/www/htdocs/textpattern-4.6.2/textpattern/vendors/Textpattern/Validator/SectionConstraint.php 
  inflating: /srv/www/htdocs/textpattern-4.6.2/textpattern/vendors/Textpattern/Validator/TrueConstraint.php 
  inflating: /srv/www/htdocs/textpattern-4.6.2/textpattern/vendors/Textpattern/Validator/Validator.php 
  inflating: /srv/www/htdocs/textpattern-4.6.2/textpattern/vendors/Txp.php 

And then move inside your Apache document root directory.

linuxhelp:~ # cd /srv/www/htdocs/
www:/srv/www/htdocs # ls -l
total 20
drwxrwxr-x 10 wwwrun www  4096 Jun 12  2015 flatpress
drwxrwxr-x  2 wwwrun www  4096 Oct  9 23:15 gif
-rwxrwxr-x  1 wwwrun www  2356 Mar 18  2017 info2html.css
drwxr-xr-x  6 root   root 4096 Oct 21  2016 textpattern-4.6.2

Rename your textpattern directory as per your wish.

linuxhelp:~ # /srv/www/htdocs # mv textpattern-4.6.2 textpattern

After that, you ought to assign the owner and file execution permission. You shall run the following command for the same purpose.

linuxhelp:~ # /srv/www/htdocs # chown -R wwwrun:www /srv/www/htdocs/
linuxhelp:~ # /srv/www/htdocs # chmod -R 775 /srv/www/htdocs/


After that, you need to configure Apache VirtualHost for the Textpattern CMS. So, create a conf file as follows.

linuxhelp:~ # /srv/www/htdocs # vim /etc/apache2/conf.d/textpattren.conf

And enter your configuration inside it.

< VirtualHost *:80> 
DocumentRoot " /srv/www/htdocs" 
ServerName www.linuxhelp1.com
< Directory " /srv/www/htdocs/" > 
DirectoryIndex index.php
Options FollowSymLinks
AllowOverride All
Require all granted
< /Directory> 
< /VirtualHost> 

And then, you need to restart your Apache service by making use of the following command.

linuxhelp:~ # /srv/www/htdocs # systemctl restart apache

Graphical installation of Text Pattern CMS
All that is essential for the installation of Text Pattern has been set, now all we need to do is to switch over to the web browser, and navigate to < yourdomainname> , in the page that appears, you need to choose the textpattern directory.

The installer of Textpattern CMS appears here. You will be asked to configure your database. So, enter all the essential details and click on Next.

As mentioned in the installation setup, you need to create a config.php file in your system and paste the code displayed there.

In the next stage, you need to copy the code from the box.

And in your terminal, run the following command to create config.php file inside textpattern directory.

linuxhelp:~ # /srv/www/htdocs/textpattern/textpattern # vim config.php

Copy the pasted the code in it. Save the file once it is done.

< ?php
$txpcfg[' db' ] = ' textpattern'  
$txpcfg[' user' ] = ' root'  
$txpcfg[' pass' ] = ' 123'  
$txpcfg[' host' ] = ' localhost'  
$txpcfg[' table_prefix' ] = ' '  
$txpcfg[' txpath' ] = ' /srv/www/htdocs/textpattern/textpattern'  
$txpcfg[' dbcharset' ] = ' utf8mb4'  
?> 

Back to your browser, you proceed with the 3rd stage. Configure your database and click on the Next button to proceed further.

By the end of the 4th step, your Textpattern CMS gets installed. Click on the Log in now button.

In the Login page, enter your credentials and proceed with the login.

You wull be taken into Textpattern CMS. Start creating your first content with its editor.

With this, the installation of Textpattern CMS gets completed. You can now easily create your web content even if you do not posses advanced web coding knowledge.

FAQ
Q
How to restart the apache server on Textpattern CMS on OpenSUSE?
A
Run the following command:
# systemctl restart apache
Q
How to install Textpattern CMS on OpenSUSE Leap?
A
Use the following command:
# wget https://textpattern.com/file_download/75/textpattern-4.6.2.zip
Q
What is Textpattern CMS on OpenSUSE Leap?
A
Textpattern is a free, open-source, and flexible content management system (CMS) built based on PHP and MySQL. Known for its simple interface and security options, Textpattern CMS is also lightweight as it will only consume very little space in memory and disk. Although Textpattern CMS is mostly sought among the web-blogging tools, it is indeed a powerful general-purpose content management system suitable for the creation of several kinds of web resources.
Q
How to extract it in Apache root directory?
A
Extract it in Apache root directory as follows:
# unzip textpattern-4.6.2.zip -d /srv/www/htdocs/
Q
How to configure Apache VirtualHost for the Textpattern CMS?
A
create a conf file as follows:
# vim /etc/apache2/conf.d/textpattren.conf