Partner and Community Forums
Need Help with IIS/PHP problem
Last post Jul 08, 2015 05:29 PM by SLovey
Jul 07, 2015 07:19 PM|SLovey|LINK
PHP is not working right. My html file asks for a name and then calls
the PHP will display a "Hello" message.
What is happening is on the htm page I am putting in my name and hit go
then the browser shows website/Drop2.php and I get 404 error saying
page not found.
It is like the htm page is not really getting to the PHP file.
Software loaded and verified
Win Server 2003
Visual C++ Redistributable files for X86
PHP has been tested and works from command prompt
All FastCGI changes have been made per documentation
My configuration looks like this
c:\Inetpub\wwwroot htm and php file
c:\Inetpub\wwwroot\PHP PHP software
I have installed all the above software, set up the following:
1. Extension .php c:\Intepub\wwwroot\PHP\ext\php5isapi.dll
2. Added index.php to my doucments in IIS
3. Added to php.ini both and extension_dir=c:\Inetpub\wwwroot\PHP\ext
4. Added Web service Extension for PHP ISAPI
5. Added to Path - c:\Inetpub\wwwroot\PHP
Here is htm code for Drop2.htm:
<h1>Enter your name</h1>
<form method="post" action="C:\Inetpub\wwwroot\Drop2.php">
<input type="text" name="me">
here is PHP code for Drop2.php:
echo "<h1>Hello " . $_POST["me"] . "</h1>";
If you want to run live on my server try.
www.sloventhal.com and click on 3 to execute this code
Jul 08, 2015 01:25 AM|HostingASPNet|LINK
Your action path is wrong - C:\Inetpub\wwwroot\Drop2.php. You should use
http://localhost/Drop2.php. or you could use some IP address, or domain name (if you set such).
Jul 08, 2015 05:29 PM|SLovey|LINK
Okay I changed to Localhost in the htm file. but still get 404 error. I tried putting in the ip of the server but no different. My server runs on the DMZ of my firewall. the IP that I mentioned
www.sloventhal.com is translated at go daddy to loventhal.homeip.net. Could any of that be my problem?