cygwin安装nginx php mysql redis mysql mongodb memcache postgresql

cd ..

wget http://cn2.php.net/get/php-5.3.17.tar.gz/from/this/mirror php-5.3.17.tar.gz

yum install gd libpng curl freetype zlib libjpeg 

wget ftp://mcrypt.hellug.gr/pub/crypto/mcrypt/libmcrypt/libmcrypt-2.5.7.tar.gz

tar -zxvf libmcrypt-2.5.7.tar.gz 

cd libmcrypt-2.5.7

./configure --prefix=/usr/local/libmcrypt  --disable-posix-threads

make && make install

yum install bison gcc gcc-c++ autoconf automake zlib* libxml* ncurses-devel libtool-ltdl-devel*

cd ..

tar -zxvf php-5.3.17.tar.gz 

cd php-5.3.17

yum install bzip2*

yum install libcurl-devel libcurl

yum install libjpeg-devel

yum install libpng-devel gd-devel

---------------------------------------------

使用安装文件安装gcc g++, pcre

 wget http://nginx.org/download/nginx-1.9.9.tar.gz

 wget http://cn2.php.net/get/php-5.6.17.tar.gz/from/this/mirror -O php-5.6.17.tar.gz

./configure --prefix=/home/Administrator/lib/nginx-1.9.9 --with-pcre && make && make install

Nginx (一)Windows下编译Nginx源码以及安装 nginx for windows方法步骤-CSDN博客

2008/01/12 16:34:56 [emerg] 2496#0: the maximum number of files supported by select() is 64的错误提示,这表示FD_SETSIZE的值比nginx配置文件中worker_connections指令所指定的值,你可以把nginx.conf里的worker_connections选项改小一些,比如44,加了--with-cc-opt=”-D FD_SETSIZE=4096”后就不会碰到这问题

启动nginx

 ./sbin/nginx.exe

php

安装libxml2 BZip2 jpeg

./configure --prefix=/home/Administrator/lib/php-5.6.17 --enable-fpm --enable-bcmath --with-gd --enable-gd-native-ttf --with-mysql=mysqlnd --with-gd --with-png-dir --with-curl --with-bz2 --with-freetype-dir --with-iconv-dir --with-zlib-dir --enable-soap --with-pear=PREFIX/pear --enable-gd-native-ttf --enable-mbstring --enable-exif --disable-cgi --enable-cli --with-jpeg-dir --enable-bcmath --enable-sockets --disable-ipv6  --with-mcrypt --enable-mysqlnd --with-mysqli=mysqlnd  --enable-embedded-mysqli  --enable-embedded-mysqli  --disable-mysqlnd-compression-support --with-pdo-mysql=mysqlnd

php 安装http 扩展_ext-http-CSDN博客

Administrator@My-THINK ~/lib/php/etc

$ php -i | grep 'php.ini'

Configuration File (php.ini) Path => /home/Administrator/lib/php-5.6.17/lib

Administrator@My-THINK ~/src/php-5.6.17

$ cp php.ini-development /home/Administrator/lib/php-5.6.17/ php.ini

Administrator@My-THINK ~/src/php-5.6.17

$ vi /home/Administrator/lib/php-5.6.17/ php.ini

date.timezone = PRC

php -r "echo date('Y-m-d H:i');"

nginx配置, 支持kohana

    server {

        listen       80;

        server_name  kohana;

        root /cygdrive/d/github/kohana;

        location / {

            index  index.php;

            try_files $uri $uri/ /index.php?$uri&$args;

        }

        location ~ \.php$ {

            fastcgi_pass   127.0.0.1:9000;

            fastcgi_index  index.php;

            include        fastcgi.conf;

        }

    }

nginx 下使用Kohana PHP的配置

http://www.oschina.net/code/snippet_54100_2711

Nginx+FastCGI 环境搭建 Kohana | icyleaf

  安装http扩展(失败)

Administrator@My-THINK ~/src

$ wget http://pecl.php.net/get/raphf-1.1.0.tgz

Administrator@My-THINK ~/src

$ tar -zxvf raphf-1.1.0.tgz

Administrator@My-THINK ~/src/raphf-1.1.0

$ /home/Administrator/lib/php/bin/phpize

Administrator@My-THINK ~/src/raphf-1.1.0

$ ./configure --with-php-config=/home/Administrator/lib/php/bin/php-config

Administrator@My-THINK ~/src/raphf-1.1.0

$ vi /home/Administrator/lib/php/lib/php.ini

extension=raphf.so

wget http://pecl.php.net/get/pecl_http-2.5.3.tgz

$ cd extname

Administrator@My-THINK ~/src/pecl_http-2.5.3

$ ./configure --prefix=/home/Administrator/lib/pecl_http-2.5.3--with-php-config=/home/Administrator/lib/php/bin/php-config

$ make

# make install

你可能感兴趣的:(nginx,php,mysql,cygwin)