Under centos nginx+mysql+bugfree+php install

  

bugfree is a bug management tool. Developed by Taobao and is an open source tool. Taobao officially provides installation methods: http://testing.etao.com/node/120. It is very convenient to install via XAMPP. But XMAPP will install mysql/php/apache/bugfree all at once. However, I have installed nginx/mysql/on my current machine, so I decided to install it manually after thinking. So the nightmare is coming. I spent two and a half days doing this.

Software:

mysql5.5.28

php-5.2.13.tar.gz

php-5.2.13-fpm-0.5.13. Diff.gz

nginx1.2.3

bugfree3.0.3

mysql and nginx are compiled and installed by source code.

Next, refer to http://www.45it.com/net/201401/36599.htm for php installation. (Before you look at the following, don't rush to do it according to his practice)

There is a place to pay attention here. Because bugfree is connected to the database, php must have pdo_mysql support. So in the previous step of ./configure you need to keep up with two options:

--with-mysql=/usr/local/mysql (here refers to the mysql installation directory) --with-pdo-mysql .

But even then, there is still a tragedy. An error occurred while compiling. The error message " is not able to find the mysql header file ".

After Baidu found a friend's help, the following is a reference

CentOS5 installed mysql and mysql-server with yum, when compiling and installing php-5.2.9 -- The with-mysql option appears configure: error: Cannot find MySQL header files under yes. Note that the MySQL client library is not bundled anymore.

This is the missing mysql-devel installation package, #yum install -y Mysql-devel

Recompile php after yum install -y mysql-devel. If the compilation is successful, the words "quote "welocme to use php" will appear on the interface.

Then make and make install.

After the above steps, I finally installed PHP.

After PHP is installed, the next step is to associate PHP with nginx. Open nginx.conf (usually under the conf folder in the nginx installation directory)

Add the following configuration:

server{

listen 80;

Server_name 192.168.1.101; (fill in the IP of the machine where your own nginx is located)

#charset koi8-r;

#access_log logs/host.access.log main;

location /{

if (!-e $request_filename) {

rewrite ^([_0-9a-zA-Z-]+)?(/wp-.*) $2 last ;

rewrite ^([_0-9a-zA-Z-]+)?(/.*\\.php)$ $2 last;

rewrite ^ /bugfree/index.php last ;

}

index index.html index.htm index.php;

}

location ~ \\.php$ {

root html;

fastcgi_pass 127.0.0.1:9000;

fastcgi_index index.php;

fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; include fastcgi_params;

}

Restart nignx after the association and start php. (I am /usr/local/sbin/php-fpm)

Test whether nginx is configured successfully for PHP based on the method provided in the sixth point of the first connection.

Find out if there is mysql information on the page by visiting index.php. if there is not. Explain that pdo_mysql is not loaded successfully. At this time, you can consider recompiling PHP. (It's best not to touch this kind of thing)

If everything is OK, then you can download bugfree (http://www.bugfree.org.cn/). After unzipping, upload the folder to the html directory under the nginx directory. Then follow the official installation method at http://testing.etao.com/node/120.

After all the configuration of the database is generated, when you click "to enter bugfree", you may encounter the problem that the site/login address cannot be accessed. At this time, you can use http://hi.baidu.com/mestars/item/3e16110dfa5c0a7fbfe97e88. Filter out the url specified by the urlManager in the bugfree main.php file.

Ok. Basically it is like this. good luck!

Copyright © Windows knowledge All Rights Reserved