Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem Running PHP Script on 2000 Server

Status
Not open for further replies.

Spycat

MIS
Apr 21, 2006
6
US
Hello,
I am a web designer, and to process a form I placed a PHP script in it. The script sends input to an e-mail and writes it to a comma-delimited file as well.
Well, I tested it on a Linux server and it works fine. However, when the IT guys placed it on a Windows 2000 server, the form does not process. I got this message from IT:

"I tried installing Apache Webserver for windows and it displays the script on the screen when submitted but does not run the form. Rick, Is there anyway you can convert PHP -> ASP?"

I was under the impression that PHP was OS-neutral.
Further, I do not know ASP and I can't imagine there is a "converter" out there. I also know very very little about Win Servers.
As far as permissions, it is 666 in Linux -- does Windows have a similar function (tho I am unsure if that is indeed the problem).

Earlier, I sent them these 2 links that I thought might prove to be helpful:



But I am not sure if they are.
Does anyone know if there are any special things that need to be done/installed in order for Windows Server to run PHP?

Because of their length, I didn't want to copy/paste the entire code here, so
here is a link to the form:

Here is a link to the PHP script:

Can anyone help, I sure would appreciate it :)

Rick
 
PHP is not installed by default on the Windows OS. You have to install it. You'll need the Windows binaries.

Keep in mind that PHP on a Windows platform is much different than on a *nix platform.

Pat Richard, MCSE(2) MCSA:Messaging, CNA(2)
 
Hi Sniper,

Thanks for the reply.
So, the initial link I gave the IT guys was a valid one then?:

I feel like it shoud be the IT guys doing this leg-work, but here I am doing it.

Another person recommended they add:
LoadModule php5_module "C:/php/php5apache2.dll"
(Or something similar, depending on the versions. Check the docs.)
AddType application/x-httpd-php .php

to the "httpd.conf".
Does that sound valid?

Again, thanks :)

Rick
 
I'm not aware of an httpd.conf on a Windows box. Installing the binaries from the link you provided should be enough to get you going.

Pat Richard, MCSE(2) MCSA:Messaging, CNA(2)
 
Once again, thank you -- I sincerely appreciate your help :)

Rick
 
I have 2003 sp1 running php 5.05 as isapi, it works very well.
You can take a look here how to install it here Configure IIS to use PHP part, you can also have a mod_rewrite replacement in IIS.

________
George, M
Searches(faq333-4906),Carts(faq333-4911)
 
Forgot to add that you wont need any httpd.conf nor apache 2, you only need a valid IIS instalation. It will run under IUSR_MachineName security privileges

________
George, M
Searches(faq333-4906),Carts(faq333-4911)
 
Thank you Shadow, you have been a big help.
I will forward the info to the IT guys (why do I get the feeling I am doing their leg work for them? lol!)

Again, thanks,
Rick
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top