All articles| All Pictures| All Softwares| All Video| Go home page| Write articles| Upload pictures

Reading number is top 10 articles
SQL Server 2000 分布式事务错误解决_[SQL Server教程]
如何在web.config中建立公用的的数据库连接_[Asp.Net教程]
下载:Visual,Studio,2008,Beta,2_[Asp.Net教程]
不用GD库生成当前时间的PNG格式图象的程序_[PHP教程]
PHP连接MYSQL的两种方法_[PHP教程]
ASP.NET2.0数据操作之创建数据访问层(2)_[Asp.Net教程]
sql,server,2005中新增的bulk功能_[SQL,Server教程]
技巧:用PHP程序计算时间差的几种方法_php资料_编程技术
ASP.NET之上传文件管理策略_.net资料_编程技术
SQL初学者教程:掌握学会WHERE子句_[SQL Server教程]
Reading number is top 10 pictures
Average female college students1
西游日记2
10 powerless things in life
陪睡门马睿菈自曝写真 称首拍大尺度照片2
The money of more than 100 countries and regions20
The money of more than 100 countries and regions18
The little girl with long hair3
Take you to walk into the most true north Korea rural4
NeedWallpaper4
运动的范冰冰2
Download software ranking
网页特效实例大全
Tram sex maniac 2 (H) rar bag5
终极变速大师Speeder3.26
Unix video tutorial20
Unix video tutorial5
SP3 for SQL2000
Sora aoi, the maid, students' uniforms
XML+Web+Service开发教程
网络管理员第三版
Unix video tutorial9
归海一刀 published in(发表于) 2014/2/10 6:50:16 Edit(编辑)
php论坛服务器架构_[PHP教程]

php论坛服务器架构_[PHP教程]

php论坛服务器架构_[PHP教程]


1、#cp httpd-2.0.47.tar.gz 到/usr/local/
2、#tar zxvf php-4.3.3.tar.gz
3、#cd php-4.3.3
4、#./configure --with-mysql --with-apxs2=/usr/local/apache/bin/apxs
#./configure -with-apache=/path/to/apache/dir -with-mysql=/usr/local/mysql
5、#make
6、#make install (一边等待一边保佑吧)
7 、#cp php.ini-dist /usr/local/lib/php.ini
8 、#vi /usr/local/apache2/conf/httpd.conf
9 、在AddType application/x-tar.tgz下面,添加以下内容:
AddType application/x-httpd-php .php
LoadModule php4_module /var/www/modules/libphp4.so (如果没有的话加上)
10 、#vi /usr/local/apache2/htdocs/test.php
echo phpinfo();
?>
11 、浏览http://ip/test.php。出现php信息。恭喜这一步成功了。

PHP和Apache安装后的基本配置
1.Apache的配置
Apache的配置文件是/usr/local/apache2/conf/httpd.conf,编辑httpd.conf 文件,在文件结尾加上以下两行:
LoadModule php4_module modules/libphp4.so
AddType application/x-httpd-php .php .php3
同时修改DirectoryIndex为:

DirectoryIndex index.htm
DirectoryIndex index.html
DirectoryIndex index.php
DirectoryIndex index.php3
DirectoryIndex index.php4

Apache的配置内容比较丰富,其它Apache相关配置请参考Apache的相关文档。
2.PHP的配置
Apache的配置文件是/usr/local/lib/php.ini,编辑php.ini文件来配置PHP的选项。特别注意的是,安装完成后register_globals变量默认设置为Off,需要将它改成On。否则会出现PHP读不到post的数据的现象。
zlib.output_compression=On
register_globals=On
其它PHP的选项请参考相关文档。
3.测试
可以写一个简单的PHP文件来测试安装,文件包含下列一行:
将其保存为/usr/local/apache2/htdocs/info.php,启动Apache,然后在浏览器中浏览。
来源:http://blog.csdn.net/lixiaolong_blog/archive/2007/01/31/1498698.aspx





添加到del.icio.us 添加到新浪ViVi 添加到百度搜藏 添加到POCO网摘 添加到天天网摘365Key 添加到和讯网摘 添加到天极网摘 添加到黑米书签 添加到QQ书签 添加到雅虎收藏 添加到奇客发现 diigo it 添加到饭否 添加到飞豆订阅 添加到抓虾收藏 添加到鲜果订阅 digg it 貼到funP 添加到有道阅读 Live Favorites 添加到Newsvine 打印本页 用Email发送本页 在Facebook上分享


Disclaimer Privacy Policy About us Site Map

If you have any requirements, please contact webmaster。(如果有什么要求,请联系站长)
Copyright ©2011-
uuhomepage.com, Inc. All rights reserved.