Page 1 of 1

PHP installation problem

Posted: Thu Aug 06, 2009 2:45 pm
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 :)

Re: PHP installation problem

Posted: Thu Aug 06, 2009 3:08 pm
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?

Re: PHP installation problem

Posted: Fri Aug 07, 2009 3:39 am
by amer_sann
No...

Re: PHP installation problem

Posted: Fri Aug 07, 2009 5:22 am
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/

Re: PHP installation problem

Posted: Fri Aug 07, 2009 11:08 am
by amer_sann
I saved it in C:\inetpub\wwwroot-it's right place for IIS

Re: PHP installation problem

Posted: Fri Aug 07, 2009 11:33 am
by amer_sann
I installed XAMPP web server, and it works without any problem. Installations took 5 minutes.
IIS sucks :)

Re: PHP installation problem

Posted: Sun Aug 09, 2009 10:29 am
by jackpf
Indeed.