Microsoft Server 2003 compatibility

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

User avatar
PopEye
Forum Newbie
Posts: 9
Joined: Thu Jun 19, 2003 8:10 am
Location: New York, NY

Microsoft Server 2003 compatibility

Post by PopEye »

Have you tried to use php 4.3.2 on 2003 server? I am having problems with Script Mapping. Any ide 8O as.
User avatar
cactus
Forum Regular
Posts: 343
Joined: Tue Jun 10, 2003 4:16 am
Location: UK

Post by cactus »

What kind of problems, does Win/IIS throw any errors ? What code have you tried ? Is this IIS6 ?

Regards,
User avatar
PopEye
Forum Newbie
Posts: 9
Joined: Thu Jun 19, 2003 8:10 am
Location: New York, NY

Post by PopEye »

It is IIS6 and Windows 2003 server. I have installed PHP and now I am trying to make php.exe run for .php scripts. I have followed instruction for 2000 and XP but no luck yet. I have Windows 2000 working fine by modifying the "Script map" key in W3SVC key but there is no such a value for this key for 2003 server. Appreciate all you send my way.
User avatar
cactus
Forum Regular
Posts: 343
Joined: Tue Jun 10, 2003 4:16 am
Location: UK

Post by cactus »

I found this thread:

http://forums.devshed.com/t61791/s.html
http://www.vbulletin.com/forum/showthre ... adid=63223

Which gives a detailed run down on how to install/config etc for your platform, I am not a Windows user BTW.

Also, as I asked before, are there any error messages thrown ? It may help the group find an answer for you.

Regards,
User avatar
PopEye
Forum Newbie
Posts: 9
Joined: Thu Jun 19, 2003 8:10 am
Location: New York, NY

Post by PopEye »

Thanks for the info. I will try it in a minute. To answer your question, I am not even getting to the point to try to run any substantial codes on this new system. Just trying to get PHP execute .php scripts by clicking on them as it is possible on 2000 server.
User avatar
cactus
Forum Regular
Posts: 343
Joined: Tue Jun 10, 2003 4:16 am
Location: UK

Post by cactus »

Sorry, you lost me in your last post:
PopEye wrote:Just trying to get PHP execute .php scripts by clicking on them as it is possible on 2000 server.
What scripts ?

Can you post the/some code for these scripts.

Regards,
User avatar
PopEye
Forum Newbie
Posts: 9
Joined: Thu Jun 19, 2003 8:10 am
Location: New York, NY

Post by PopEye »

Sorry. By "Scripts" I mean php codes saved as a text file with extension .php.
On older OS like 2000, I can browse my work folder and click on any .php file and have it run by php.exe.
One way to do this on 2000 server is to modify registry keys and add .php and php.exe as new values to "Scripts Map" key as it is instructed in php installation manual.
On 2003 server this key is missing and I can not configure the server to run php.exe whenever a file with .php is clicked.
I hope this sheds some light on the problem I am having. Which has noting to do with actual coding of php. Once again thanks for your time and interest.
User avatar
twigletmac
Her Royal Site Adminness
Posts: 5371
Joined: Tue Apr 23, 2002 2:21 am
Location: Essex, UK

Post by twigletmac »

Hi, does this thread (specifically the last post) help any?
viewtopic.php?t=9703&highlight=2003

Mac
User avatar
PopEye
Forum Newbie
Posts: 9
Joined: Thu Jun 19, 2003 8:10 am
Location: New York, NY

Post by PopEye »

No, none worked. Using the first two links, when I type "php.exe test.php" from the command line, I only get the text of the test.php. And your link does not offer any solution either. Thanks for your help anyway.
User avatar
cactus
Forum Regular
Posts: 343
Joined: Tue Jun 10, 2003 4:16 am
Location: UK

Post by cactus »

PopEye wrote:Sorry. By "Scripts" I mean php codes saved as a text file with extension .php.
On older OS like 2000, I can browse my work folder and click on any .php file and have it run by php.exe.
One way to do this on 2000 server is to modify registry keys and add .php and php.exe as new values to "Scripts Map" key as it is instructed in php installation manual.
On 2003 server this key is missing and I can not configure the server to run php.exe whenever a file with .php is clicked.
Give this a try:

A) Go to your "Folder Options" applet in the Control Panel.
B) Choose the "File Types" tab.
C) There should be a button labelled "New", click it.
D) Put in your file extension, php, and click "OK"
E) You should then see your "php" (maybe in caps) extension in the list, make sure it's highlighted and then click "Change"
F) You will then need to click the button labelled "Other", and then browse or where your "php.exe" is, and click "Open".
G) You will then see your association in the list (probably at the bottom) click "OK" and the window will close.
H) You will then be taken back to the "Folder Options" applet, with the "File Types" tab displayed, click close on this window.

That will associate your "blah.php" files with your "php.exe" executable.

BIG NOTE: I have never seen this type of config before and have no idea if it will work (me being *nix), I don't use Windows, esp. for PHP etc so not sure what this will do!

From when I used to use Windows, this is the only way I knew how to associate extensions with specific apps, without hacking the registry.

Hope it helps.

Regards,
User avatar
twigletmac
Her Royal Site Adminness
Posts: 5371
Joined: Tue Apr 23, 2002 2:21 am
Location: Essex, UK

Post by twigletmac »

So you have allowed unknown ISAPI applications?

Mac
User avatar
cactus
Forum Regular
Posts: 343
Joined: Tue Jun 10, 2003 4:16 am
Location: UK

Post by cactus »

Me Mac ? I'm a little lost on this thread, not exactly sure what the OP is trying to achieve :)

I was responding to:
PopEye wrote:On older OS like 2000, I can browse my work folder and click on any .php file and have it run by php.exe. .......... On 2003 server this key is missing and I can not configure the server to run php.exe whenever a file with .php is clicked.
Yep, I think I'm losing it 8O

Regards,
User avatar
twigletmac
Her Royal Site Adminness
Posts: 5371
Joined: Tue Apr 23, 2002 2:21 am
Location: Essex, UK

Post by twigletmac »

Sorry, I was replying to the OP. (Win2K3 sounds like fun...)

Mac
User avatar
cactus
Forum Regular
Posts: 343
Joined: Tue Jun 10, 2003 4:16 am
Location: UK

Post by cactus »

Ahh, is my post a valid config in Win2x ?

I guess it would be like running it from the CLI, is that the case ?

(Jeees, I sound like a Win n3wb!) ;)

Regards,
User avatar
PopEye
Forum Newbie
Posts: 9
Joined: Thu Jun 19, 2003 8:10 am
Location: New York, NY

Post by PopEye »

I am really glad that my misery is keeping you guys entertained. But really thanks for your interest. I am a long time Windows user and I know all ins and outs of windows environment up to 2003 server. The 2000 server works fine with PHP. I have tried all the above techniques and procedures already on 2003 server and none worked. I do not know if it is 2003 or the IIS6 that is goofing up. Maybe I just need another pair of eyes to look into the problem. As I said before, I can not even run php.exe from command line to execute a very simple php code. The main problem is that I have not heard of anyone successfully installing the PHP on the 2003 server. Maybe I should wait for the next service pack$$$$$.
Post Reply