First, install Apache server
1. Check if the Apache server is installed
2. If the unrecognized service is indicated, the component is not installed and needs to be manually installed
Yum Install httpd
3. Start the process after installation is complete
4. Verify that the Apache server is operating properly
Under the premise of guaranteeing the normal operation of the httpd process, under the httpd root directory/var/www/html, create a new static Web page, such as index.html, and then enter the browser as 192.168.128.144/ Index.html can see the contents of the Web page. If the access is not successful then shut down the firewall (service iptables stop) and then refresh it. Here, the Web server is configured to complete.
Second, install MySQL
If MySQL is connected to another server, ignore this step
Third, install the PHP server
About Php,centos systems are usually installed by default and can be checked for normal operation. In the var/www/html directory, create a new PHP file, such as index.php, and then enter 192.168.128.144/index.php in the browser, if you can open the PHP file normally, it means that the service is working properly.
Iv. Setting the httpd and mysqld processes to boot
Chkconfig httpd onchkconfig mysqld on
V. Installation of Bugfree server
Upload Bugfree_v3.0.4.zip
Unzip to/var/www/html directory, modify directory named Bugfree
Six, yum install PDO MySQL
Access Http://ip/bugfree/install display such as missing MySQL PDO module
If not installed execute the following command
Yum Install Php-pdo_mysql
Vii. Modify the permissions of the corresponding directory
To modify write permissions for the project directory by using the chmod command
Viii. Modifying the database configuration
vi/var/www/html/bugfree/protected/config/main.php
Find ConnectionString
Modify the database connection to
Nine, allow httpd remote access
Visit Bugfree again, if not the above database configuration error, also reported the following error
CDBException
Cdbconnection Connection to database failed
Execute command, view to prohibit httpd remote connection
getsebool-a | grep httpd
Execute command allows access
Setsebool-p Httpd_can_network_connect 1
Bugfree3.0.4 Linux Environment Installation Guide