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