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

相关推荐
溜溜刘@♞2 小时前
数据库之mysql优化
数据库·mysql
帅云毅2 小时前
文件上传--解析漏洞和编辑器
笔记·学习·安全·web安全·编辑器·php
BXCQ_xuan2 小时前
基于Node.js的健身会员管理系统的后端开发实践
后端·mysql·node.js
uwvwko2 小时前
ctfhow——web入门214~218(时间盲注开始)
前端·数据库·mysql·ctf
wt_cs2 小时前
身份证实名认证接口数字时代的信任基石-node.js实名认证集成
开发语言·node.js·php
白总Server3 小时前
Nginx 中间件
大数据·linux·运维·服务器·nginx·bash·web
林夕11203 小时前
颠覆认知的MySQL全解析:安装、连接到SQL三大核心语句全掌握
后端·mysql
A charmer3 小时前
【MySQL】数据库基础
数据库·mysql
阿七想学习4 小时前
MySQL《事务》
数据库·mysql
Yang_yangyang4 小时前
mysql定时备份、打包、传输
数据库·mysql·自动化