CentOS under nginx+mysql+bugfree+php Installation

Source: Internet
Author: User
Tags fpm mysql client php and centos

Bugfree is a bug management tool. Developed by Taobao and is open source tools. Taobao official has provided the installation method: Http://testing.etao.com/node/120. It is convenient to install by XAMPP. But Xmapp will install the Mysql/php/apache/bugfree all at once. But I have already installed nginx/mysql/on my current machine, so I decided to install it manually after thinking. So the nightmare came. 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 have been compiled by the source code before the installation.

There's a place for attention here. Because bugfree to connect to the database, PHP requires PDO_MYSQL support. So in the last step of the./configure

You need to follow up with two more options:

--with-mysql=/usr/local/mysql (this refers to the MySQL installation directory)

--with-pdo-mysql.

But even so, there is a tragedy. There was an error while compiling. The error message "is unable to find the MySQL header file."

Through Baidu found a friend of help, the following for reference

CentOS5 with Yum installed MySQL and mysql-server, when compiling the installation php-5.2.9 with the--with-mysql option appears

Configure:error:Cannot find MySQL header files under Yes.
The MySQL client library is not bundled anymore.

This is missing the Mysql-devel installation package, with

#yum install-y Mysql-devel

Through Yum

Install-y Mysql-devel and then recompile PHP. If the compilation succeeds, the interface will appear with the words "WELOCME to use PHP".

And then make

and make install.

After the steps above, finally the PHP to install the finished.

PHP is finished, next to the PHP and Nginx Association. Open nginx.conf (usually under the Conf folder under the Nginx installation directory)

Add the following configuration:

server{

Listen 80;

server_name 192.168.1.101 (based on the IP of your own nginx machine)

#charset Koi8-r;

#access_log Logs/host.access.log Main;

Location/{

if (!-e $request _filename) {

rewrite ^ ([_0-9a-za-z-]+)? (/wp-.*) $ last;

rewrite ^ ([_0-9a-za-z-]+)? (/.*.php) $ $ 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;

}

After the association restarts Nignx. and start PHP. (I'm/usr/local/sbin/php-fpm here)

Test Nginx Whether the PHP configuration was successful, based on the 6th provided method of the first connection.

Find out if there is MySQL information on the page by accessing the index.php. If not. Indicates that Pdo_mysql did not load successfully. This is the time to consider recompiling PHP. (It's best not to run into this kind of thing)

If all is OK, next you can download Bugfree. After decompression, upload the folder to the HTML directory under the Nginx directory.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.