aherlambang
aherlambang

Reputation: 14418

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 instruction 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.....

Upvotes: 0

Views: 2037

Answers (1)

Sudantha
Sudantha

Reputation: 16184

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

Upvotes: 2

Related Questions