Jump to content

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.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.