要换手机了,鬼子的m330是不错,不过拒...
宁可加点钱买T720
- 娱乐乐园,
作者 hezhengok 发布于 2003-08-02 分类:php基础编程
我初学PHP,想用用APACHE2+PHP5+MYSQL4搭建一个平台,三个软件安装都正常,
APACHE2已经开始运行,通过http://127.0.0.1
已经可以看到apache的说明页。
然而,我按照网上说的方法进行了如下操作之后,
打开包含<?phpinfo();?>语句的info.php文件(在APACHE2HTDOCS目录中,
使用的地址是“http://127.0.0.1/info.php")后,
显示的是HTTP 404 未找到!请高人指点。
我都操作如下:
1:将“APACHE2CONFHTTPD.CONF”去掉ServerName前的“#”号,后面跟本机的IP地址
2:将PHP5解压缩到“D:PHP5”,将D:PHP5PHP.INI-dist 拷贝到 c:windows 目录下(我用的是XP),并改名为 php3.ini
3. 修改 D:apache2confHTTPF.conf,加入如下几行:
ScriptAlias /php/ "d:/php5/"
Addtype application/x-httpd-php5 .php5
Action application/x-httpd-php5 "/php5/php.exe"
AddType application/x-httpd-php4 .php
AddType application/x-httpd-php4 .php3
AddType application/x-httpd-php4 .php4
Action application/x-httpd-php4 "/php4/php.exe"
DirectoryIndex index.html
DirectoryIndex index.htm
DirectoryIndex index.php
DirectoryIndex index.php3
DirectoryIndex index.php4
现在由于连基本的php程序都跑不起来,心急如焚。
望高手能指点迷津
逛论坛交流:为什么我的php不能用?
0 条回复
回复