Lighttpd + PHP (FAST-CGI) + + MySQL specific steps _ MySQL

Source: Internet
Author: User
Lighttpd + PHP (FAST-CGI) + + MySQL specific steps have long heard of lighttpd and PHP FAST-CGI mode performance is good, smoke time installed, just completed the installation of the environment, performance is not detailed yet!

The following is my installation of lighttpd + PHP (FAST-CGI) + mysql, if you have any questions, please comment on me.

1. install MySQL first

Install mysql. you can install the source code package or compile it! Directly decompress and copy the file. I used to directly copy and compile the file!

1. compile the source code package

./Configure -- prefix =/data2/ali -- enable-validator -- enable-thread-safe-client -- without-debug
Make
Make install

2. use the compiled compressed package! Directly decompress and copy

Tar zxf mysql-standard-5.0.27-linux-i686-glibc23.tar.gz
Cd mysql-standard-5.0.27-linux-i686-glibc23
Cps-rf mysql-standard-5.0.27-linux-i686-glibc23/usr/local/mysql

// The following is to start multiple ports

Mkdir-p/data2/ali/mysql3308
Mkdir-p/data2/ali/mysql3309
./Scripts/mysql_install_db -- ldata =/data2/ali/mysql3308
Cpsupport-files/my-medium.cnf/data2/ali/mysql3308/my. cnf
Vi/data2/ali/mysql3308/my. cnf

The modification content is as follows:

#
[Mysqld]
Datadir =/data2/ali/mysql3308/
Port = 3308
Socket =/tmp/mysql-3308.sock
#
Cp/data2/ali/mysql3308 // data2/ali/mysql3309/
Vi/data2/ali/mysql3309/my. cnf

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.