开发者

installing PHP on Apache 2.2 on Windows 7

I had my Apache 2.2 installed on windows. Now I just finished installing PHP on the Apache server. As the inst开发者_如何学Cruction says, I need to edit the httpd.conf of my Apache and add:

# 
LoadModule php5_module "G:\Program Files\PHP\php5apache2_2.dll"
AddHandler application/x-httpd-php .php

PHPIniDir "G:\Program Files\PHP"

I made sure the directory is correct. Then I restart my server again. I have a hello.php file in my htdocs. And I navigate to localhost:8080/hello.php and it says server not found, however when I do index.html. It display's the html correctly on the htdocs folder.

What am I doing wrong here? I tried to debug this by trying to execute hello.php from the command line by executing G:\Program Files\PHP\php-cgi hello.php, but then it says:

'G:\Program is not recognized as internal or external command.....


You can use some this like XAMPP its easy to configuration.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜