How to install Textpattern CMS on OpenSUSE 42.1
To install Textpattern CMS on OpenSUSE 42.1
We have been covering the installation method for a lot of CMS tools for quite some time now. So, along the lines of this pattern, today we are going to see the installation of another CMS tool - Textpattern.
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
Requirements
- Apache
- Mariadb
- Php 5.3 and above
zypper in php php5 php5-mysql apache2-mod_php5
Installing Text Pattern
Downloading the Package
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-10-05 15:22:23-- 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 244KB/s in 8.3s
2017-10-05 15:22:32 (194 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
creating: /srv/www/htdocs/textpattern-4.6.2/images/
inflating: /srv/www/htdocs/textpattern-4.6.2/index.php
inflating: /srv/www/htdocs/textpattern-4.6.2/LICENSE-BSD-3.txt
.
.
.
inflating: /srv/www/htdocs/textpattern-4.6.2/textpattern/vendors/Textpattern/Validator/Constraint.php
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
linuxhelp:~ # cd /srv/www/htdocs/
linuxhelp:/srv/www/htdocs # ll
total 4
drwxr-xr-x 6 root root 4096 Oct 21 2016 textpattern-4.6.2
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/textpattern-4.6.2/
linuxhelp:/srv/www/htdocs # chmod -R 777 /srv/www/htdocs/textpattern-4.6.2/
MySQL configuration
It is very essential to configure the database. So, log into your MariaDB database via ‘ root’ user for creating a new database and grant all user privileges for Textpattern CMS.
linuxhelp:/srv/www/htdocs # mysql -u root -p Enter password: Welcome to the MariaDB monitor. Commands end with or g. Your MariaDB connection id is 15 Server version: 10.0.29-MariaDB SLE 12 SP1 package Copyright (c) 2000, 2016, Oracle, MariaDB Corporation Ab and others. Type ' help ' or ' h' for help. Type ' c' to clear the current input statement. MariaDB [(none)]> create database textpattern Query OK, 1 row affected (0.02 sec) MariaDB [(none)]> grant all privileges on textpattern.* to ' root' @' localhost' identified by ' 123' Query OK, 0 rows affected (0.00 sec) MariaDB [(none)]> flush privileges Query OK, 0 rows affected (0.00 sec) MariaDB [(none)]> exit Bye
Once all the necessary configuration is made, you need to restart your MySQL service with the help of the following command.
linuxhelp:/srv/www/htdocs # systemctl restart mysql.service
After that, make sure that your Apache webserver is up and running by executing the following command.
linuxhelp:/srv/www/htdocs # systemctl status apache2
apache2.service - The Apache Webserver
Loaded: loaded (/usr/lib/systemd/system/apache2.service enabled)
Active: active (running) since Thu 2017-10-05 13:50:59 IST 1h 40min ago
Process: 13224 ExecStop=/usr/sbin/start_apache2 -DSYSTEMD -DFOREGROUND -k graceful-stop (code=exited, status=0/SUCCESS)
Main PID: 13234 (httpd-prefork)
Status: " Total requests: 0 Current requests/sec: 0 Current traffic: 0 B/sec"
CGroup: /system.slice/apache2.service
??13234 /usr/sbin/httpd-prefork -f /etc/apache2/httpd.conf -DSYSCONFIG -C PidFile /var/run/httpd.pid -C Include /etc/apache2/...
??13241 /usr/sbin/httpd-prefork -f /etc/apache2/httpd.conf -DSYSCONFIG -C PidFile /var/run/httpd.pid -C Include /etc/apache2/...
??13242 /usr/sbin/httpd-prefork -f /etc/apache2/httpd.conf -DSYSCONFIG -C PidFile /var/run/httpd.pid -C Include /etc/apache2/...
??13243 /usr/sbin/httpd-prefork -f /etc/apache2/httpd.conf -DSYSCONFIG -C PidFile /var/run/httpd.pid -C Include /etc/apache2/...
??13244 /usr/sbin/httpd-prefork -f /etc/apache2/httpd.conf -DSYSCONFIG -C PidFile /var/run/httpd.pid -C Include /etc/apache2/...
??13245 /usr/sbin/httpd-prefork -f /etc/apache2/httpd.conf -DSYSCONFIG -C PidFile /var/run/httpd.pid -C Include /etc/apache2/...
??13249 /usr/sbin/httpd-prefork -f /etc/apache2/httpd.conf -DSYSCONFIG -C PidFile /var/run/httpd.pid -C Include /etc/apache2/...
??13308 /usr/sbin/httpd-prefork -f /etc/apache2/httpd.conf -DSYSCONFIG -C PidFile /var/run/httpd.pid -C Include /etc/apache2/...
??13309 /usr/sbin/httpd-prefork -f /etc/apache2/httpd.conf -DSYSCONFIG -C PidFile /var/run/httpd.pid -C Include /etc/apache2/...
??13310 /usr/sbin/httpd-prefork -f /etc/apache2/httpd.conf -DSYSCONFIG -C PidFile /var/run/httpd.pid -C Include /etc/apache2/...
??13311 /usr/sbin/httpd-prefork -f /etc/apache2/httpd.conf -DSYSCONFIG -C PidFile /var/run/httpd.pid -C Include /etc/apache2/...
Oct 05 13:50:58 www.linuxhelp2.com systemd[1]: Starting The Apache Webserver...
Oct 05 13:50:58 www.linuxhelp2.com start_apache2[13234]: AH00557: httpd-prefork: apr_sockaddr_info_get() failed for www.linuxhelp2.com
Oct 05 13:50:58 www.linuxhelp2.com start_apache2[13234]: AH00558: httpd-prefork: Could not reliably determine the server' s fully q...essage
Oct 05 13:50:59 www.linuxhelp2.com systemd[1]: Started The Apache Webserver.
Hint: Some lines were ellipsized, use -l to show in full.
Your Apace service is intact.
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 http://< IP_address> / textpattern-4.6.2, a window which resembles the following image appears on your screen. Select the language of your choice and click on Submit.
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.
Move to your terminal and get inside the Textpattern directory as follows.
linuxhelp:/srv/www/htdocs/textpattern-4.6.2 # cd textpattern/
Over here you need to create the said config file. Run the following command and do the essential things.
linuxhelp:/srv/www/htdocs/textpattern-4.6.2/textpattern # vim config.php
After it is done, ensure that you restart your Apache service by running the following command.
linuxhelp:/srv/www/htdocs/textpattern-4.6.2/textpattern # systemctl restart apache2j n
Now, once again switch over to your browser and resume the installation process by creating database tables. Click on Next once done.
Finally, everything is completely set and your Textpattern application is ready to be used.
Log into Textpattern with your credentials.
You will be taken to the dashboard. Here you can create a web page in a very easy manner. All the essential options are available in the tabs and menus.
You can also check on the reviews and feedback on your web content by clicking on the Comments tab.
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.
Our tutorial for CMS today doesn' t end with Textpattern alone. Check out the installation procedure for Pligg which is also on OpenSUSE Leap 42.1 here: https://www.linuxhelp.com/how-to-install-pligg-on-opensuse-leap-42-1/