01 Jan 2011

在ubuntu上配置 nginx和php+fastcgi

(1)安装php5
apt-get install php5 php-pear php5-cli php5-common php5-xcache php5-cgi php5-mysql php5-curl  php5-gd  php5-imagick  php5-xmlrpc  php5-dev php5-memcache
(2)安装nginx
apt-get install nginx
(3)安装spawn-fcgi
 apt-get install spawn-fcgi
(4)设置,也是最头疼滴地方哦

在/etc/nginx/fastcgi_params 文件最后,加入一行,可以用sudo gedit /etc/nginx/fastcgi_params打开文件
fastcgi_param SCRIPT_FILENAME     $document_root$fastcgi_script_name;
设置php.ini的 cgi.fix_pathinfo=1;doc_root=
拷贝/etc/nginx/sites-availab修改本机hosts文件,指定一个域名
修改server_name
在server_name同级增加root 设置为网站根目录
location里 加上 index.php
php的fast-cgi配置

    location ~ \.php$ {
        fastcgi_pass   127.0.0.1:9000;
        fastcgi_index  index.php;
        include fastcgi_params;     
    }

$ sudo killall -HUP php5-cgi
$ sudo /usr/bin/spawn-fcgi -a 127.0.0.1 -p 9000 -C 5 -u www-data -g www-data -f /usr/bin/php5-cgi -P /var/run/fastcgi-php.pid
$ /etc/init.d# sudo /etc/init.d/nginx restart 
在网站内放个phpinfo测试一下,ok了。

18 Jul 2009

如何判断一个网站是不是php做的?

可以当作简易判断站点是否用PHP架设。

PHP_LOGO_GUID
http://www.php.net/?=PHPE9568F34-D428-11d2-A769-00AA001ACF42

PHP_EGG_LOGO_GUID
http://www.php.net/?=PHPE9568F36-D428-11d2-A769-00AA001ACF42

ZEND_LOGO_GUID
http://www.php.net/?=PHPE9568F35-D428-11d2-A769-00AA001ACF42

PHP_CREDITS_GUID
http://www.php.net/?=PHPB8B5F2A0-3C92-11d3-A3A9-4C7B08C10000

喜欢看愚人节的那个Logo就是第二个链接罗
http://www.php.net/ 这个网址只是范例,只要是任一PHP的站点即可。

来源:http://www.google.cn/search?client=aff-os-worldbrowser&forid=1&ie=utf-8&oe=UTF-8&hl=zh-CN&q=%E4%B8%80%E4%BA%9B%E5%86%85%E5%AE%9A%E7%9A%84PHP%E7%89%B9%E6%AE%8AGUID

 

01 Jun 2004

一个很全的教程站

很少见教程大全,不知道我是不是很落伍,今天才逛到这里

HTML Tutorials
Learn HTML
Learn XHTML
Learn CSS
Learn TCP/IP

XML Tutorials
Learn XML
Learn XSL
Learn XSLT
Learn XSL-FO
Learn XPath
Learn XQuery
Learn DTD
Learn Schema
Learn DOM
Learn XForms
Learn SOAP
Learn WSDL
Learn RDF
Learn WAP

Browser Scripting
Learn JavaScript
Learn DHTML
Learn VBScript
Learn WMLScript

Server Scripting
Learn SQL
Learn ASP
Learn ADO
Learn PHP

.NET (dotnet)
.NET Microsoft
.NET ASP
.NET Mobile

Multimedia
Learn Media
Learn SMIL
Learn SVG
Learn Flash

Web Building
Web Building
Web W3C
Web Browsers
Web Quality
Web Graphics
Web Careers
Web Hosting
Web Certification