Unable to view .PHP files on web server - "The Parameter is incorrect" error

Hello
I have a Server 2003 with SP2 and I have PHP 5.2.6 installed and MySQL version 5.0 installed.
When I try and view any .PHP file I get the following error in the browser:
"The parameter is incorrect"
This is the contents of my .PHP file:

<?php
echo "test";
?>

Please help :-)
<?php
echo "test";
?>

Open in new window

PURIM-EAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

BJacogCommented:
try this and see what happens:

<?php
phpinfo();
?>
0
PURIM-EAuthor Commented:
Same thing happens :-)
0
BJacogCommented:
0
CompTIA Security+

Learn the essential functions of CompTIA Security+, which establishes the core knowledge required of any cybersecurity role and leads professionals into intermediate-level cybersecurity jobs.

PURIM-EAuthor Commented:
Thanks.  We do not have nQplatform installed so I could not follow all the instructions but tried Solution 2 and it did not make any difference... sorry.
0
ciprian_dimofteCommented:
Ok...You're obviously running IIS.
Make sure of the following things, NOT exactly in this order:
1) The page really exis
2) Somewhere in the IIS configuration (in Computer Management->Internet Services->WebSites->Default WebSites) you need to right-click on the website that you HAVE created (hopefully) and click Properties, than in that window that shows up you will see the "in french is Point de depart" which means the default website root directory, something like that, and you'll also see a button: Configure next to that (or Configuration) when you click that, you need to make sure that in the next window, you see the php5isapi.dll file, otherwise you need to add it. That'll be your interpreter for IIS.
3) In case number 2 is OK, you need to make sure you're creating your php file inside the document root, which is being set same as described at number 2 only that after clicking properties, you need to set the document root in the Local Access Directory (French: Chemin d'access local) field by clicking Browse (french: "Parcourir") and selecting the directory where your php files reside.
4) You can than try to restart IIS by running Start->Run->cmd->iisreset

Now you can test see if it works. Please keep me posted on the progress.

CDI
0
efg-uaeCommented:
I think this is problem with your IIS configuration or PHP installation.
Please send me following information.
1. PHP Config Version installed.
 If you have some urgent issues then please install XAMPP from following website. it will install Apache, PHP, Mysql, MyPHPAdmin and will work very fine for all.
http://www.apachefriends.org/en/xampp.html 
 
Regards,
ASIF
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
PURIM-EAuthor Commented:
I checked my installtion and installed PHP IIS Isapi version insted of the CGi version which seems to work.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
PHP

From novice to tech pro — start learning today.