在WIndows XP,Apache 2.0.54上安装PHP 5.05 - 请帮忙 [英] Installing PHP 5.05 on WIndows XP, Apache 2.0.54 - please help
问题描述
您好我试图在运行Apache 2.0.54的Windows XP上安装PHP 5.05
Apache正常运行并且我对pnp.ini文件进行了所有更改
和Apache配置文件,重新启动Apache,但是我在尝试
时调用我的test.php文件是404错误?
http .config文件:
LoadModule php5_module" C:/php/php5apache2.dll"
PHPIniDir" C:/ php"
AddType application / x-httpd-php .php
AddType application / x-httpd-php-source .phps
设置我的php.ini doc-root文件to:
doc_root =" C:\Program Files \Apache Group\Apache2 \htdocs"
我已经关注了php上的所有常见问题解答.net,将c:/ php添加到Path等
任何想法?
谢谢
Hi Im trying to install PHP 5.05 on Windows XP running Apache 2.0.54
Apache is running fine and ive made all the changes to the pnp.ini file
and Apache config file, restarted Apache but all I get when trying to
call my test.php file is a 404 error?
http.config file:
LoadModule php5_module "C:/php/php5apache2.dll"
PHPIniDir "C:/php"
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
set my php.ini doc-root file to :
doc_root = "C:\Program Files\Apache Group\Apache2\htdocs"
Ive followed all the FAQs on php.net , added c:/php to the Path etc
any ideas?
thanks
推荐答案
2005年9月19日15:24:12 -0700,gregsands写道:
On 19 Sep 2005 15:24:12 -0700, gregsands wrote:
你好我试着去在运行Apache 2.0.54的Windows XP上安装PHP 5.05
Apache运行良好,我已经对pnp.ini文件和Apache配置文件进行了所有更改,重新启动了Apache,但我得到的只是当试图调用我的test.php文件是404错误?
http.config文件:
LoadModule php5_module" C:/php/php5apache2.dll"
PHPIniDir" C:/ php"
AddType application / x-httpd-php .php
AddType application / x-httpd-php-source .phps
设置我的php.ini doc-root文件:
doc_root =" C:\Program Files \Apache Group\Apache2 \htdocs"
我已经关注了php上的所有常见问题解答。网,添加c:/ php到路径等
任何想法?
感谢
Hi Im trying to install PHP 5.05 on Windows XP running Apache 2.0.54
Apache is running fine and ive made all the changes to the pnp.ini file
and Apache config file, restarted Apache but all I get when trying to
call my test.php file is a 404 error?
http.config file:
LoadModule php5_module "C:/php/php5apache2.dll"
PHPIniDir "C:/php"
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
set my php.ini doc-root file to :
doc_root = "C:\Program Files\Apache Group\Apache2\htdocs"
Ive followed all the FAQs on php.net , added c:/php to the Path etc
any ideas?
thanks
如果你得到一个404的错误,这意味着它不在服务器上,而不是那个
PHP无法正常工作!
If your getting a 404 error it means it''s not there on the server, not that
PHP isn''t working!
多数民众赞成在我的网站上想了想,所以我创建了一个helloworld.html文件并将其放入
与我的test.php文件相同的文件夹(包含<? phpinfo()?> )。
我的helloworld.html文件工作正常,但php文件获取的文件不是
发现了错误消息?
localhost /helloworld.html
localhost / test.php
位置:Apache / htdocs /
Thats what I thought, so I created a helloworld.html file and put it in
the same folder as my test.php file (which contains <? phpinfo() ?> ).
My helloworld.html file works fine but the php file gets the file not
found eror message?
localhost/helloworld.html
localhost/test.php
location : Apache/htdocs/
>
gregsands写道:
gregsands wrote:
这就是我的想法,所以我创建了一个helloworld.html文件并将其放在与我的test.php文件相同的文件夹中(其中包含< ?phpinfo()?>)。
我的helloworld.html文件工作正常但是php文件得到的文件没有找到错误消息?
localhost / helloworld.html
localhost / test.php
位置:Apache / htdocs /
Thats what I thought, so I created a helloworld.html file and put it in
the same folder as my test.php file (which contains <? phpinfo() ?> ).
My helloworld.html file works fine but the php file gets the file not
found eror message?
localhost/helloworld.html
localhost/test.php
location : Apache/htdocs/
这可能完全是光顾但每当我设置Apache / PHP时创建
a php文件使用记事本进行测试,几乎总是设法称之为
index.php.txt意外.........:D
This may be entirely patronising but wheneverI setup Apache/PHP I create
a php file using notepad to test and almost always manage to call it
index.php.txt by accident ......... :D
这篇关于在WIndows XP,Apache 2.0.54上安装PHP 5.05 - 请帮忙的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!