PHP installation problem

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

Post Reply
amer_sann
Forum Newbie
Posts: 4
Joined: Thu Aug 06, 2009 2:31 pm

PHP installation problem

Post by amer_sann »

Hi,
I have a problem with a PHP. I install PHP on IIS 7 on Windows Vista. I unpacked archieve in C:\PHP folder. I configure IIS
Manager in Control Panel (configure path in Applications on C:\PHP). I also renamed php.ini-recominded to php.ini and changed that file (i set doc_root = c:\inetpub\wwwroot and other php directives, like it says in install.txt file for installation on IIS). I edit Path variable in Enviroment Variables as well. Then, I created php file with following code:
<?php
echo 'Hello';
?> and save it in wwwroot folder as "prvi.php". Then I tried to run that script by typing localhost/prvi.php, I get following error:
HTTP Error 404.3 - Not Found
The page you are requesting cannot be served because of the extension configuration. If the page is a script, add a handler. If the file should be downloaded, add a MIME map.
IIS is installed OK (when i type localhost in web browser, I get it's home page).
Has anybody idea what could be a problem?
Thanks in advance :)
User avatar
jackpf
DevNet Resident
Posts: 2119
Joined: Sun Feb 15, 2009 7:22 pm
Location: Ipswich, UK

Re: PHP installation problem

Post by jackpf »

Hmm....I don't know anything about IIS....just thought I'd warn you in advance.

If I understand correctly, you've installed PHP from source? Have you tried installing it with the binary files?
amer_sann
Forum Newbie
Posts: 4
Joined: Thu Aug 06, 2009 2:31 pm

Re: PHP installation problem

Post by amer_sann »

No...
User avatar
onion2k
Jedi Mod
Posts: 5263
Joined: Tue Dec 21, 2004 5:03 pm
Location: usrlab.com

Re: PHP installation problem

Post by onion2k »

If it's giving you a 404 error that means it's not finding the prvi.php file. I guess that means you've not saved it to the right place. No idea where the right place is with IIS.. with Apache it'd be c:/apache/htdocs/
amer_sann
Forum Newbie
Posts: 4
Joined: Thu Aug 06, 2009 2:31 pm

Re: PHP installation problem

Post by amer_sann »

I saved it in C:\inetpub\wwwroot-it's right place for IIS
amer_sann
Forum Newbie
Posts: 4
Joined: Thu Aug 06, 2009 2:31 pm

Re: PHP installation problem

Post by amer_sann »

I installed XAMPP web server, and it works without any problem. Installations took 5 minutes.
IIS sucks :)
User avatar
jackpf
DevNet Resident
Posts: 2119
Joined: Sun Feb 15, 2009 7:22 pm
Location: Ipswich, UK

Re: PHP installation problem

Post by jackpf »

Indeed.
Post Reply