May
7
下载Apache for windows
httpd-2.2.17-win32-x86-no_ssl.msi: http://httpd.apache.org/download.cgi
下载PHP
php-5.2.17-Win32-VC6-x86.zip: http://windows.php.net/download/
系统约定:
安装Apache.
解压PHP到Apache安装目录下.
添加系统环境变量:
打开httpd.conf
httpd-2.2.17-win32-x86-no_ssl.msi: http://httpd.apache.org/download.cgi
下载PHP
php-5.2.17-Win32-VC6-x86.zip: http://windows.php.net/download/
系统约定:
Apache安装目录: E:/Apache
php目录: E:/Apache/php
网站根目录: E:/wwwroot
php目录: E:/Apache/php
网站根目录: E:/wwwroot
安装Apache.
解压PHP到Apache安装目录下.
添加系统环境变量:
E:/Apache/php;E:/Apache/php/ext
打开httpd.conf
Apr
13
最近公司服务器由windows+iis转换成了linux+nginx,在程序移植到linux上的时候发现有些地方需要修改一下才正常,本地用的是windows2003,为了保证做的程序在服务器上能正常运行,所以我在本地做了一个nginx+php的环境.
软件版本: nginx -> 0.8.54 php -> 5.2.14
下载地址: http://soft.befen.net/test/nginx.zip
安装方法:
解压nginx.zip到C盘,注意这里一定要C盘,不然无法运行,当然了,如果你懂的话可以修改路径.
环境的启动关闭和重启操作可以运行nginx目录下的Server.bat,我已经做好了批处理.
配置文件在nginx/conf/vhost/目录下,增加网站只要新建一个***.conf就行了.
nginx目录下还有memcached目录,这个是memcached缓存系统,如果需要就打开cmd执行
附上nginx的配置文件:
软件版本: nginx -> 0.8.54 php -> 5.2.14
下载地址: http://soft.befen.net/test/nginx.zip
安装方法:
解压nginx.zip到C盘,注意这里一定要C盘,不然无法运行,当然了,如果你懂的话可以修改路径.
环境的启动关闭和重启操作可以运行nginx目录下的Server.bat,我已经做好了批处理.
配置文件在nginx/conf/vhost/目录下,增加网站只要新建一个***.conf就行了.
nginx目录下还有memcached目录,这个是memcached缓存系统,如果需要就打开cmd执行
C:\nginx\memcached\memcached.exe -d install
C:\nginx\memcached\memcached.exe -d start
C:\nginx\memcached\memcached.exe -d start
附上nginx的配置文件:




