By cfddream on 2010/04/04
起先本地安装的是php5.2.13 + fpm + FastCGI + nginx0.83, 现在想php5.3.2 + fpm 也搭载进去,折腾了一下午终于搞定。
#好像fpm要在5.4才真正纳入php core 当中,以下是一个php5.3.2-fmp dev版
> svn co http://svn.php.net/repository/php/php-src/branches/PHP_5_3_FPM
> ./buildconf –force
> ./configure –enable-fpm …your other configure options, etc…
> make && make install
#配置php-fpm.conf, 把端口改成127.0.0.1:9001(防止跟之前的php5.2.13 使用的9000端口冲突)
#开启 fpm
> cd php532/sbin
> sudo ./php-fpm
#配置nginx.conf, 之前你可以设置一个虚拟域名 php532.me,
server {
listen 80;
server_name php532.me;
root /www/php532;
[...]
Posted in nginx
By cfddream on 2010/03/21
codeigniter 安装目录 /home/cfddream/www/phproot/codeigniter
url: http://phproot.me/codeingniter
# codeigniter {{
location /codeigniter/ {
if (!-e $request_filename) {
rewrite ^/codeigniter/(.*)$ /codeigniter/index.php/$1 last;
}
}
location /codeigniter/index.php {
fastcgi_pass 127.0.0.1:9000;
include fcgi.conf;
fastcgi_param [...]
Posted in nginx | Tagged rewrite