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

How to install Textpattern CMS in Ubuntu 16.04

2006

To install Textpattern CMS in Ubuntu 16.04

In our preceeding article, we have been briefed about the installation process of Textpattern CMS on OpenSUSE 42.1. In this tutorial, we will be explained about the installation procedure of Textpattern CMS on Ubuntu 16.04. Textpattern is a free open source software for web developers, designers, and bloggers to publish their content with a 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 seperation of content from presentation.

Pre-Requisite

To start with the installation procedure of Textpattern, you need to have LAMP stack installed in your system. Along with the required PHP modules such as (php php-mysql php-curl php-gd php-json php-opcache php-xml php-mcrypt)

Installation procedure

First download the Textpattern CMS package from the following link https://textpattern.com/start/. Now extract the downloaded package using unzip command.

root@linuxhelp:/home/user# cd Downloads/
root@linuxhelp:/home/user/Downloads# ll
total 1628
drwxr-xr-x  2 user user    4096 Oct 12 19:50 ./
drwxr-xr-x 16 user user    4096 Oct 12 19:49 ../
-rw-rw-r--  1 user user 1657031 Oct 12 19:50 textpattern-4.6.2.zip
root@linuxhelp:/home/user/Downloads# 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  
&hellip 
&hellip 
&hellip 
  inflating: textpattern-4.6.2/textpattern/vendors/Textpattern/Validator/TrueConstraint.php  
  inflating: textpattern-4.6.2/textpattern/vendors/Textpattern/Validator/Validator.php  
  inflating: textpattern-4.6.2/textpattern/vendors/Txp.php

Move the extracted package to /var/www/html/ directory path.

root@linuxhelp:/home/user/Downloads# mv textpattern-4.6.2 /var/www/html/

Change the ownership for the recently moved directory by running the following command.

root@linuxhelp:/home/user/Downloads# chown -R www-data:www-data /var/www/html/

Next copy the textpattern-4.6.2 contents to /var/www/html/ directory.

root@linuxhelp:/home/user/Downloads# cd /var/www/html/textpattern-4.6.2/
root@linuxhelp:/var/www/html/textpattern-4.6.2# cp -a * ..

Configure the MySQL database for Textpattern CMS by logging it to MySQL service. Create a database and user with all privileges granted to the user.

root@linuxhelp:/var/www/html# mysql -u root -p
Enter password:
Welcome to the MySQL monitor.  Commands end with   or g.
Your MySQL connection id is 7
Server version: 5.7.19-0ubuntu0.16.04.1 (Ubuntu)
Copyright (c) 2000, 2017, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type ' help '  or ' h'  for help. Type ' c'  to clear the current input statement.

mysql>  CREATE DATABASE textpattern 
Query OK, 1 row affected (0.22 sec)

mysql>  CREATE USER ' textuser' @' localhost'  IDENTIFIED BY ' password'  
Query OK, 0 rows affected (0.90 sec)

mysql>  GRANT ALL PRIVILEGES ON `textpattern`.* TO ' textuser' @' localhost'  
Query OK, 0 rows affected (0.01 sec)

mysql>  flush privileges 
Query OK, 0 rows affected (0.47 sec)

mysql>  exit
Bye

Create the textpattern.conf in sites-available directory and create soft link for the file in sites-enabled directory

root@linuxhelp:/var/www/html# touch /etc/apache2/sites-available/textpattern.conf
root@linuxhelp:/var/www/html# ln -s /etc/apache2/sites-available/textpattern.conf /etc/apache2/sites-enabled/textpattern.conf

Next configure the Apache virtual host directory named textpattern.conf for Textpattern CMS using nano editor. Now add the following content in the file and save it.

root@linuxhelp:/var/www/html# nano /etc/apache2/sites-available/textpattern.conf

< VirtualHost *:80> 
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> 

Restart the Apache web server by executing the following command.

root@linuxhelp:/var/www/html# systemctl restart apache2

Switch over to the web browser and navigate to http://192.168.7.201/textpattern. The Textpattern CMS installer appears on the screen.

textpattern installer

Enter the required database details to the textpattern CMS and click next.
database details

A configuration file named config.php is prompted to the user to enter into the Textpattern directory.
PHP configuration

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

root@linuxhelp:/var/www/html/textpattern# nano 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'  
?> 

Enter the user details for the CMS and click next
user details

The installation is now complete. click log in now option to finish the installation.

login

The Textpattern login page appears on the screen. Enter the required admin details and click log in option.
login page

The admin page of Textpattern appears on the screen. Add the contents of the website in this page.
contents

After entering the contents in the file. Click Publish option to publish the contents in the website.
publish contents

Thus concludes the installation procedure of Textpattern CMS in Ubuntu 16.04.

Tags:
lawrence
Author: 

Comments ( 0 )

No comments available

Add a comment

Frequently asked questions ( 5 )

Q

the php-Version: 5-STABLE-STANDARD, 5.2.17 I see, this have a save preference. Maybe this is the problem? I can go to a higher php-Version, should i do it?

A

Yes, you need 5.3 at least, and the higher the better.

Q

is that the problem? no php.ini-file my other txp-websites are all works without the php.ini-file.

A

I think txp does not need php.ini, but php itself does. You should ask your provider how to switch php version.

Q

How to entry to the host file?

A

Follow the steps as below, # /etc /hosts

Q

I want to install textpattern cms on centos?please help me?

A

follow this link, https://www.linuxhelp.com/how-to-install-textpattern-cms-in-centos/

Q

What is the current stable version?

A

The current stable version is 1.0.4

Related Tutorials in How to install Textpattern CMS in Ubuntu 16.04

Related Tutorials in How to install Textpattern CMS in Ubuntu 16.04

How to install Meld tool in Ubuntu
How to install Meld tool in Ubuntu
Feb 25, 2017
How to install Dconf-Editor on Ubuntu 18.04
How to install Dconf-Editor on Ubuntu 18.04
Jul 14, 2018
How to install and update OpenSSL on Ubuntu 16.04
How to install and update OpenSSL on Ubuntu 16.04
Mar 9, 2017
How to install GLib 2.0 on Ubuntu 17.04
How to install GLib 2.0 on Ubuntu 17.04
May 22, 2017
How to Install Android Emulator on Ubuntu 20.4.1
How to Install Android Emulator on Ubuntu 20.4.1
Jul 13, 2021
How To Install AnyDesk on Ubuntu 16.04
How To Install AnyDesk on Ubuntu 16.04
Apr 4, 2018
How to install Genymotion 2.12.1 on Ubuntu 18.04
How to install Genymotion 2.12.1 on Ubuntu 18.04
Jul 9, 2018
How to install Timeshift 18.4 on Ubuntu 18.04
How to install Timeshift 18.4 on Ubuntu 18.04
Jul 6, 2018

Related Forums in How to install Textpattern CMS in Ubuntu 16.04

Related Forums in How to install Textpattern CMS in Ubuntu 16.04

Ubuntu
matthew class=
Failed to enable unit: Refusing to operate on linked unit file sshd.service
Apr 15, 2019
Ubuntu
mason class=
Passwd: You may not view or modify password information for root On Ubuntu 19.04
May 27, 2019
Ubuntu
isaac class=
/etc/apt/sources.list Permission denied
May 18, 2017
Ubuntu
yousuf class=
lsb_release command not working : Debian
Jan 18, 2018
ifconfig command
jackbrookes class=
what is the location of the ifconfig program on your machine?
Jan 4, 2018
Ubuntu
mason class=
"E: Package 'php-mcrypt' has no installation candidate" error on Ubuntu 20.4.1
Mar 15, 2021
NFS
luke class=
clnt_create: RPC: Program not registered
Apr 25, 2017
Apache
isaac class=
How to disable apache welcome page on Ubuntu
Dec 15, 2018

Related News in How to install Textpattern CMS in Ubuntu 16.04

Related News in How to install Textpattern CMS in Ubuntu 16.04

How To Install Mixxx on Ubuntu 16.04
How To Install Mixxx on Ubuntu 16.04
Oct 11, 2017
Ubuntu 17.04 released with greater expectations
Ubuntu 17.04 released with greater expectations
Apr 15, 2017
Ubuntu Core now available on i.MX6 based TS-4900 thanks to Technologic Systems Inc.
Ubuntu Core now available on i.MX6 based TS-4900 thanks to Technologic Systems Inc.
Mar 1, 2017
Ubuntu 17.10 Artful Aardvark Beta 1 is now here. Download Now
Ubuntu 17.10 Artful Aardvark Beta 1 is now here. Download Now
Sep 2, 2017
Ubuntu Unity is no more: One Linux dream has been axed
Ubuntu Unity is no more: One Linux dream has been axed
Apr 7, 2017
What’s next for Ubuntu Linux Desktop?
What’s next for Ubuntu Linux Desktop?
Apr 11, 2017
Say Hi to Ubuntu's new mascot
Say Hi to Ubuntu's new mascot
Mar 22, 2019
KDE Connect App was removed from Google Play Store and brought back in 24 hours
KDE Connect App was removed from Google Play Store and brought back in 24 hours
Mar 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 keel johnston ?
Unhide the folders on windows Explorer

Give any solutions to unhide folder using command prompt?

forum3

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.