Install dotProject on CentOS

dotProject is a web-based, multi-user, multi-language project management application. It is free and open source software, and is maintained by an open community of volunteer programmers.

As a system administrator will always update the system to the latest stable status:
sudo yum update -y
sudo reboot
In order to serve dotProject, you need to deploy the LAMP stack on your machine. 
You need to install Apache, the only officially supported web server program, on your system:
sudo yum install httpd
sudo systemctl start httpd.service
sudo systemctl enable httpd.service
Remove Apache's default welcome page by commenting out the content of the file welcome.conf:
sudo vi /etc/httpd/conf.d/welcome.conf
Use # to comment out every line.
# This configuration file enables the default "Welcome" page if there
# is no default index page present for the root URL.  To disable the
# Welcome page, comment out all the lines below.
# NOTE: if this file is removed, it will be restored on upgrades.
#<LocationMatch "^/+$">
#    Options -Indexes
#    ErrorDocument 403 /.noindex.html
#<Directory /usr/share/httpd/noindex>
#    AllowOverride None
#    Require all granted
#Alias /.noindex.html /usr/share/httpd/noindex/index.html
#Alias /noindex/css/bootstrap.min.css /usr/share/httpd/noindex/css/bootstrap.min.css
#Alias /noindex/css/open-sans.css /usr/share/httpd/noindex/css/open-sans.css
#Alias /images/apache_pb.gif /usr/share/httpd/noindex/images/apache_pb.gif
#Alias /images/poweredby.png /usr/share/httpd/noindex/images/poweredby.png
Save and quit with :wq!

Prevent Apache from displaying files in directories:
sudo vi /etc/httpd/conf/httpd.conf
Options Indexes FollowSymLinks
Options FollowSymLinks
Save and quit with :wq!

Before you can visit your web site from the browser, you need to modify the firewall configuration:
sudo firewall-cmd --zone=public --permanent --add-service=http
sudo firewall-cmd --reload
Install and setup MySQL
You can install MariaDB, a popular branch of MySQL, on your server instance:
sudo yum install mariadb mariadb-server
sudo systemctl start mariadb.service
sudo systemctl enable mariadb.service
sudo /usr/bin/mysql_secure_installation
Finish the secure MySQL installation according to the instructions below:
Enter current password for root (enter for none): press the Enter key
Set root password? [Y/n]: Input Y, then press the Enter key
Set root password? [Y/n]: Input Y, then press the Enter key
Remove anonymous users? [Y/n]: Input Y, then press the Enter key
Disallow root login remotely? [Y/n]: Input Y, then press the Enter key
Remove test database and access to it? [Y/n]: Input Y, then press the Enter key
Reload privilege tables now? [Y/n]: Input Y, then press the Enter key
Log into the MySQL shell to setup a database for dotProject:
mysql -u root -p
Input the root password you had setup earlier to log in, then execute the following commands one by one. Remember to replace the database name dotproject, the database username dotprojectuser, and the database user password yourpassword with your own ones.
CREATE USER 'dotprojectuser'@'localhost' IDENTIFIED BY 'yourpassword';
GRANT ALL PRIVILEGES ON dotproject.* TO 'dotprojectuser'@'localhost';
GRANT ALL PRIVILEGES ON dotproject.* TO 'dotprojectuser'@'localhost' IDENTIFIED BY 'yourpassword' WITH GRANT OPTION;
Install and configure PHP
Install necessary PHP components using YUM:
sudo yum install php php-gd php-mbstring php-mysqli php-curl php-ldap php-xsl php-xml php-cli php-pear
Modify PHP settings in the php.ini file:
sudo vi /etc/php.ini
Replace the line:
;date.timezone =
date.timezone = Asia/Kolkata
Asia/Kolkata is the timezone value of my server, you can find a suitable timezone value from here.

Replace the line:
session.auto_start = 0
session.auto_start = 1
Other settings in the file php.ini are already qualified, you can use the default values:
session.use_trans_sid = 0
memory_limit = 128M
Then Restart the httpd and mariadb server.
sudo systemctl restart httpd mariadb
Download the dotProject installation package
Download dotProject Latest version for there official website.
wget Version 2.1.8/dotproject-2.1.8.tar.gz

tar -zxvf dotproject-2.1.8.tar.gz
In order to prevent permission issues, you need to change the owner and permissions for each involved file.
sudo chown -R apache: dotproject/
sudo mv dotproject/* /var/www/html/
Install dotProject from the browser
Now, visit your server from a web browser to finish the installation:
Review the check results, then click the button "Start Installation" on the top.

On the "Database Settings" screen, replace the default "Database User Name" and "Database User Password" with your own ones, then click the button "install db & write cfg" on the right-hand side..Example Bellow
On the next screen, click "Login and Configure the dotProject System Environment", then use the default credentials to log in:
Username: admin
Password: passwd
Security cleanup
For security purposes, you should change the password immediately as instructed below:
  • Find the menu on the web interface.
  • Click the menu item "User Admin => Login Name".
  • Under "admin", Click the link on the right hand side.
  • Under "change password", input a new password twice in the pop-up window.
  • Click the button "submit", then close the pop-up window.
Next, remove the install directory within the dotProject environment
sudo rm -rf /var/www/html/install/
That's all.

About Author:

I am a Linux Administrator and Security Expert with this site i can help lot's of people about linux knowladge and as per security expert i also intersted about hacking related news.TwitterFacebook

Newer Post
Older Post


Post a Comment