{"id":17256,"date":"2015-05-26T15:17:27","date_gmt":"2015-05-26T20:17:27","guid":{"rendered":"https:\/\/secure.rosehosting.com\/blog\/?p=17256"},"modified":"2022-12-12T08:51:55","modified_gmt":"2022-12-12T14:51:55","slug":"how-to-install-projectpier-on-a-centos-7-vps","status":"publish","type":"post","link":"https:\/\/www.rosehosting.com\/blog\/how-to-install-projectpier-on-a-centos-7-vps\/","title":{"rendered":"How to Install ProjectPier on a CentOS 7 VPS"},"content":{"rendered":"
In this tutorial we will show you how to install ProjectPier on a CentOS VPS<\/a> with Apache, PHP and MariaDB. Make sure that all services are up to date by executing the following command:<\/p>\n Install the required packages:<\/p>\n Start the Apache web server and MariaDB database server and enable them to start on boot:<\/p>\n Download the latest stable version of ProjectPier at http:\/\/www.projectpier.org\/download to the ‘\/opt’ directory on the server. Then, extract it and move the ProjectPier files and directories to the ‘\/var\/www\/html\/projectpier’ directory. At the time of writing this tutorial, the latest stable version of ProjectPier is 0.8.8.<\/p>\n Configure your server to support InnoDB, if it is not set by default. To do so, edit the ‘\/etc\/my.cnf’ MySQL configuration file and the comment the skip-innodb line by adding # in front of it (i.e. #skip-innodb). Then, increase the max_allowed_packet variable to 128MB by adding this line to ‘\/etc\/my.cnf’ file:<\/p>\n Restart MariaDB for the changes to take effect:<\/p>\n Create a new database and a new username and password for the ProjectPier database:<\/p>\n Edit the Apache configuration file (\/etc\/httpd\/conf\/httpd.conf) and create a new virtual host in Apache:<\/p>\n Restart the Apache service for the changes to take effect:<\/p>\n The webserver user (Apache) needs to be able to write to ‘cache\/autoloader.php’ and ‘cache\/log.php’ files and ‘cache’, ‘upload’, ‘config’ and ‘tmp’ directories so you can easily accomplish that by executing the following command:<\/p>\n Open http:\/\/yourdomain.com\/public\/install in your favorite web browser to run the ProjectPier installer, then follow the installer’s instructions: check if all ProjectPier requirements are met, enter the database username and password, create an administrator account and click ‘submit’ to complete the installation. <\/p>\n 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 ProjectPier<\/strong> project management and online group collaboration software for you. They are available 24×7 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":" In this tutorial we will show you how to install ProjectPier on a CentOS VPS with Apache, PHP and MariaDB. … <\/p>\n
\nProjectPier is an open source project management and group collaboration software which allows developers and users to create and manage multiple projects online using a web browser.
\nIn order to install ProjectPier on your server, you need to make sure it meets the following requirements:<\/p>\n\n
yum -y update<\/pre>\n
yum install mariadb mariadb-server httpd php php-common php-gd php-ldap php-xml<\/pre>\n
systemctl start httpd\r\nsystemctl start mariadb\r\n\r\nsystemctl enable httpd\r\nsystemctl enable mariadb<\/pre>\n
cd \/opt\/\r\nwget http:\/\/www.projectpier.org\/files\/pp088wSP2_2014-08-14.zip\r\nmkdir -p \/var\/www\/html\/projectpier\r\nunzip -d \/var\/www\/html\/projectpier pp088wSP2*.zip\r\n<\/pre>\n
max_allowed_packet = 128M<\/pre>\n
systemctl restart mariadb<\/pre>\n
mysql -uroot -p\r\nMariaDB [(none)]> CREATE DATABASE projectpier CHARACTER SET utf8;\r\nMariaDB [(none)]> GRANT ALL PRIVILEGES ON projectpier.* TO 'projectpier'@'localhost' IDENTIFIED BY 'your_projectpier_passwd';\r\nMariaDB [(none)]> FLUSH PRIVILEGES;\r\nMariaDB [(none)]> \\q<\/pre>\n
vi \/etc\/httpd\/conf\/httpd.conf<\/pre>\n
<VirtualHost YOUR_SERVER_IP:80>\r\nServerAdmin webmaster@your-domain.com\r\nDocumentRoot \"\/var\/www\/html\/projectpier\"\r\nServerName your-domain.com\r\nServerAlias www.your-domain.com\r\nErrorLog \"\/var\/log\/httpd\/your-domain.com-error_log\"\r\nCustomLog \"\/var\/log\/httpd\/your-domain.com-access_log\" combined\r\n<Directory \"\/var\/www\/html\/your-domain.com\/\">\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
chown apache:apache -R \/var\/www\/html\/projectpier<\/pre>\n
\nThat is it. The ProjectPier installation is now complete. Log in to the administrator back-end using the newly created administrator account and create new projects via ProjectPier.<\/p>\n