Hi,
I'm a new born newbie and I'm trying to install PHP onto my webserver. My server is installed with W2K with IIS5.
I just downloaded the php installer.exe and when I ran the installer, I got an error message that said because I'm missing an OCX, the web server couldn't be configured.
Please help.
Installing PHP
Moderator: General Moderators
- twigletmac
- Her Royal Site Adminness
- Posts: 5371
- Joined: Tue Apr 23, 2002 2:21 am
- Location: Essex, UK
You need to do a little bit of configuration but the installer has already put things in the right place. If you look in the documentation:
http://www.php.net/manual/en/install.ii ... l.iis.iis4
Once you've done the first bit where it tells you where to go in IIS's Internet Service Manager, follow the instructions under the bit where it says 'If you want to use the CGI binary, do the following:' and ignore the bit that says 'To use the ISAPI module, do the following:'.
I had the same problem with the missing OCX when I was trying to do a quick (for me read lazy) install on a development box running Win 2K and IIS5, I think it has something to do with IIS5.
Mac
http://www.php.net/manual/en/install.ii ... l.iis.iis4
Once you've done the first bit where it tells you where to go in IIS's Internet Service Manager, follow the instructions under the bit where it says 'If you want to use the CGI binary, do the following:' and ignore the bit that says 'To use the ISAPI module, do the following:'.
I had the same problem with the missing OCX when I was trying to do a quick (for me read lazy) install on a development box running Win 2K and IIS5, I think it has something to do with IIS5.
Mac
Hi Mac,
Thanks for the swift reply. I've done what was recommended in the manual but I still can't seem to get the php to run. I tried to create the phpinfo statement and execute it via a browser using both .php & .htm file types. The .htm just gives me a blank page while the .php shows me the statement I typed in.
Am I missing something?
Thanks for the swift reply. I've done what was recommended in the manual but I still can't seem to get the php to run. I tried to create the phpinfo statement and execute it via a browser using both .php & .htm file types. The .htm just gives me a blank page while the .php shows me the statement I typed in.
Am I missing something?
- twigletmac
- Her Royal Site Adminness
- Posts: 5371
- Joined: Tue Apr 23, 2002 2:21 am
- Location: Essex, UK
Are you running the PHP file via localhost?
http://localhost/phpinfo.php for example
and you did apply the change to the 'default web server'?
Mac
http://localhost/phpinfo.php for example
and you did apply the change to the 'default web server'?
Mac
- twigletmac
- Her Royal Site Adminness
- Posts: 5371
- Joined: Tue Apr 23, 2002 2:21 am
- Location: Essex, UK
You need to use localhost because when you run the file through the C:\ drive IIS doesn't get in on the act at all and although HTML can be understood by your browser, PHP can't. When you run it through localhost all the configuration stuff you set up actually gets used because IIS is being used. Happy coding...
Mac
Mac