{"id":18001,"date":"2015-11-21T13:54:06","date_gmt":"2015-11-21T19:54:06","guid":{"rendered":"https:\/\/www.rosehosting.com\/blog\/?p=18001"},"modified":"2022-12-16T05:31:51","modified_gmt":"2022-12-16T11:31:51","slug":"install-textpattern-on-a-centos-7-vps","status":"publish","type":"post","link":"https:\/\/www.rosehosting.com\/blog\/install-textpattern-on-a-centos-7-vps\/","title":{"rendered":"Install Textpattern on CentOS 7"},"content":{"rendered":"
Textpattern is flexible and easy to use open source content management system (CMS) written in the PHP programming language. Texpattern comes with full range of features and it allows you to easily create, edit and publish content on your website. In this guide we will install Textpattern on a CentOS 7 VPS<\/a> with Apache, MariaDB and PHP.<\/p>\n First of all log in to your server as user root<\/p>\n and make sure that all packages are up to date by executing the following command<\/p>\n Textpattern uses a MySQL database to store the information so run the following command to install MariaDB database server<\/p>\n Once it is installed, start the MariaDB database server and enable it to start at the boot time<\/p>\n Run the Log in to MariaDB using the \u2018root\u2019 user and create new database and the associated user and password for Textpattern.<\/p>\n Replace \u2018PASSWORD\u2019 with an actual strong password.<\/p>\n Install Apache web server<\/p>\n After the installation is completed, start the web server and add it to automatically start on the system start-up<\/p>\n Textpattern is written in the PHP programming language, so we need to install PHP among with few PHP modules<\/p>\n Go to Textpattern’s official website and download the latest stable release of the application to your server<\/p>\n Unpack the downloaded zip archive to the document root directory on your server. In CentOS usually it is the ‘\/var\/www\/html\/’ directory.<\/p>\n To be sure that it is the correct directory you can use the following command<\/p>\n Change the ownership of the Textpattern’s files<\/p>\n Next, we will create Apache virtual host for your Textpattern website. Create \u2018\/etc\/httpd\/conf.d\/vhosts.conf\u2019 file with the following content<\/p>\n and create the virtual host<\/p>\n Restart the Apache web server for the changes to take effect.<\/p>\n Navigate your favorite web browser to Of course you don\u2019t have to do any of this if you use one of our Linux VPS Hosting<\/a> services, in which case you can simply ask our expert Linux admins to install Textpattern for you. They are available 24\u00d77 and will take care of your request immediately.<\/p>\n PS<\/strong><\/span>. If you liked this post please share it with your friends on the social networks using the buttons on the left or simply leave a reply below. Thanks.<\/p>\n","protected":false},"excerpt":{"rendered":" Textpattern is flexible and easy to use open source content management system (CMS) written in the PHP programming language. Texpattern … <\/p>\nssh root@IP<\/pre>\n
yum -y update<\/pre>\n
yum install mariadb mariadb-server<\/pre>\n
systemctl start mariadb\r\nsystemctl enable mariadb<\/pre>\n
mysql_secure_installation<\/code> script to secure the database server and set your MariaDB root password<\/p>\n
mysql -u root -p\r\n\r\nCREATE DATABASE textpattern;\r\nCREATE USER 'Ttextpatternuser'@'localhost' IDENTIFIED BY 'PASSWORD';\r\nGRANT ALL PRIVILEGES ON `textpattern`.* TO 'textpatternuser'@'localhost';\r\nFLUSH PRIVILEGES;<\/pre>\n
yum install httpd<\/pre>\n
systemctl start httpd\r\nsystemctl enable httpd<\/pre>\n
yum install php php-pdo php-common php-mbstring php-mcrypt<\/pre>\n
wget http:\/\/textpattern.com\/latest.zip<\/pre>\n
unzip Textpattern-2.4.2670.zip -d \/var\/www\/html<\/pre>\n
grep -i '^documentroot' \/etc\/httpd\/conf\/httpd.conf\r\nDocumentRoot \"\/var\/www\/html\"<\/pre>\n
cd \/var\/www\/html\/\r\nchown -R apache:apache textpattern\/<\/pre>\n
vim \/etc\/httpd\/conf.d\/vhosts.conf\r\n\r\nIncludeOptional vhosts.d\/*.conf<\/pre>\n
mkdir \/etc\/httpd\/vhosts.d\/\r\nvim \/etc\/httpd\/vhosts.d\/yourdomain.com.conf\r\n\r\n<VirtualHost YOUR_SERVER_IP:80>\r\nServerAdmin webmaster@yourdomain.com\r\nDocumentRoot \"\/var\/www\/html\/textpattern\/\"\r\nServerName yourdomain.com\r\nServerAlias www.yourdomain.com\r\nErrorLog \"\/var\/log\/httpd\/yourdomain.com-error_log\"\r\nCustomLog \"\/var\/log\/httpd\/yourdomain.com-access_log\" combined\r\n\r\n<Directory \"\/var\/www\/html\/textpattern\/\">\r\nDirectoryIndex index.html index.php\r\nOptions FollowSymLinks\r\nAllowOverride All\r\nRequire all granted\r\n<\/Directory>\r\n<\/VirtualHost><\/pre>\n
systemctl restart httpd<\/pre>\n
http:\/\/yourdomain.com\/setup\/index.php<\/code> and follow the on-screen instructions to finish the installation and setup Textpattern.<\/p>\n