How To Install Textpattern CMS on Popos
To Install Textpattern CMS on Popos
Textpattern is a free open source software for web developers, designers, and bloggers to publish their content with an easy web interface.you can easily create, edit and publish contents on your site. Textpattern CMS is also lightweight as it will only consume very little space in memory and disk. It contains features like conversion of plain text to XHTML code, tag-based template system, built-in site statistics and separation of content from presentation.
Pre-requirements
Install LAMP( Apache, mariadb, PHP )
In MariaDB (create database and user and give privileges to the user)
PHP modules
(apt-get install php-mysql php-curl php-json php-cgi php libapache2-mod-php php-mcrypt php-xmlrpc php-gd php-mbstring php php-common php-xmlrpc php-soap php-xml php-intl php-cli php-ldap php-zip php-readline
php-imap php-tidy php-recode php-sqlite3 php-xdebug php-gettext php-dev php-pear php-memcache php-memcached php-bz2)
Please refer this link for the LAMP installation on Pop Os
https://www.linuxhelp.com/how-to-install-lamp-on-popos/
Installation
Download Textpattern cms package using the following command
root@linuxhelp:~# wget https://textpattern.com/file_download/85/textpattern-4.7.0.zip
--2018-05-17 10:37:39-- https://textpattern.com/file_download/85/textpattern-4.7.0.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: 1694242 (1.6M) [application/octet-stream]
Saving to: ‘ textpattern-4.7.0.zip’
textpattern-4.7.0.z 100%[===================> ] 1.62M 451KB/s in 3.7s
2018-05-17 10:37:43 (451 KB/s) - ‘ textpattern-4.7.0.zip’ saved [1694242/1694242]
Extract the downloaded package
root@linuxhelp:~# unzip textpattern-4.7.0.zip
Archive: textpattern-4.7.0.zip
creating: textpattern-4.7.0/
inflating: textpattern-4.7.0/.htaccess
inflating: textpattern-4.7.0/css.php
creating: textpattern-4.7.0/files/
inflating: textpattern-4.7.0/files/.htaccess-dist
inflating: textpattern-4.7.0/HISTORY.txt
creating: textpattern-4.7.0/images/
inflating: textpattern-4.7.0/index.php
inflating: textpattern-4.7.0/LICENSE.txt
inflating: textpattern-4.7.0/README.txt
.
.
.
.
inflating: textpattern-4.7.0/textpattern/vendors/Textpattern/Validator/Validator.php
inflating: textpattern-4.7.0/textpattern/vendors/Txp.php
creating: textpattern-4.7.0/themes/
inflating: textpattern-4.7.0/themes/.htaccess
Move the extracted directory to HTML location
root@linuxhelp:~# mv textpattern-4.7.0 /var/www/html/textpattern
Change the ownership of directory in HTML location
root@linuxhelp:~# chown -R www-data.www-data /var/www/html
create a virtual host in ' sites-available' location and add the following lines
root@linuxhelp:~# vim /etc/apache2/sites-available/textpattern.conf
< VirtualHost *:80>
servername linuxhelp1.com
DocumentRoot " /var/www/html/textpattern"
< Directory " /var/www/html/" >
Options FollowSymLinks
AllowOverride All
Order allow,deny
allow from all
< /Directory>
ErrorLog /var/log/apache2/linuxhelp1-error_log
CustomLog /var/log/apache2/linuxhelp1-access_log common
< /VirtualHost>
Enable newly created conf file
root@linuxhelp:~# a2ensite textpattern.conf
Enabling site Textpattern.
To activate the new configuration, you need to run:
systemctl reload apache2
Disable the default conf file
root@linuxhelp:~# a2dissite 000-default.conf
Site 000-default disabled.
To activate the new configuration, you need to run:
systemctl reload apache2
Restart the apache service
root@linuxhelp:~# systemctl restart apache2
Make an entry in the host file as follows
root@linuxhelp:~# vim /etc/hosts
< machine ip > < domain name>
Now you can proceed the further installation and configuration from the browser by navigating to the following URL http://< ipaddress or domain name
Click the following link that is displayed on the Webpage

Installation setup starts, select language and click next

Fill database detail, and click next

It asks you to save the content in the config.php file, so copy the content

Go to terminal, create a new file named config.php in Textpattern location and paste the copied content
root@linuxhelp:~# vim /var/www/html/textpattern/textpattern/config.php
< ?php
$txpcfg[' db' ] = ' textpattern'
$txpcfg[' user' ] = ' textuser'
$txpcfg[' pass' ] = ' 123'
$txpcfg[' host' ] = ' localhost'
$txpcfg[' table_prefix' ] = ' '
$txpcfg[' txpath' ] = ' /var/www/html/textpattern/textpattern'
$txpcfg[' dbcharset' ] = ' utf8mb4'
?>
Go to the browser and click next

Fill admin user details and click next

After the successful installation, you will see the following page

Use the admin user credentials for login

The following image shows the admin page of Textpattern CMS

with this, the method to Install Textpattern CMS on Popos comes to an end.
Comments ( 0 )
No comments available