DCM Posted October 15, 2010 Share Posted October 15, 2010 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] Quote Link to comment https://forums.phpfreaks.com/topic/215939-help-request-for-install-of-phpapache-on-windows-2003-server/ Share on other sites More sharing options...
PFMaBiSmAd Posted October 15, 2010 Share Posted October 15, 2010 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? Quote Link to comment https://forums.phpfreaks.com/topic/215939-help-request-for-install-of-phpapache-on-windows-2003-server/#findComment-1122455 Share on other sites More sharing options...
DCM Posted October 15, 2010 Author Share Posted October 15, 2010 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. Quote Link to comment https://forums.phpfreaks.com/topic/215939-help-request-for-install-of-phpapache-on-windows-2003-server/#findComment-1122458 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.