Jump to content

Help request for install of PHP/Apache on Windows 2003 server?


Recommended Posts

Hi I am tryng to get PHP/Apache  working on a windows 2003 server (standard edition 32 bit). I currently have this setup working on my XP machine and i have used the same installers/locations/config files. However Apache is not parsing the PHP files, i simply get the raw text outputted.

 

The specifics of my install are:

 

- Windows 2003 server 32bit standard edition

- Apache - httpd-2.2.16-win32-x86-no_ssl.msi

- PHP - php-5.2.14-win32-installer.msi

 

- Apache install dir: c:\apache

- PHP install dir: c:\php

 

I have also attached my php.ini file and httpd.conf file as this must be where the issue lies but i cannot see it :(

 

I have renamed the atatched files .txt so i can post them on here

 

Any help advice is greatly appreciated, I dont understand my this wont work as its pretty much a direct port of a working config on my XP machine.

 

[attachment deleted by admin]

You (generally) need a AddType application/x-httpd-php .php statement in your httpd.conf file. Stop and start your web server to get any changes made to the httpd.conf to take effect.

 

Also, any chance you are using short open tags in your code?

Thanks thats fixed it :)

 

I added 'AddType application/x-httpd-php .php'  to the following section:

 

<IfModule mime_module>

    AddType application/x-httpd-php .php

</IfModule>

 

I do use short tags occassionly yes but i should probably go away and change them to the full version.

 

Thank you again very much for you prompt assistance.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.