kroleig Posted September 3, 2007 Share Posted September 3, 2007 Hi I have a local installation of php 5.2.1 and Apache 2.2.1 running on XP Pro. It works fine. I have developed some php pages and they work on my local server. When I try to upload it to my shared hosting package it does not work. The shared host uses php5 but they also have php4 running. I was told to change the extension of my files to read .php5 instead of just .php. Now the files dont run on my local server and I tried poiting the php.ini file to the folder where my dll files live. I also added the location of my php installation to my path environment variable in windows. After I made these changes I restarted Apache and tried to view the .php5 files. I get no errors but only my source code shows up. Can you please help me. I don't know which extensions I need to activate in order to let my local server see php and .php5 extensions. Regards Roger Link to comment https://forums.phpfreaks.com/topic/67712-solved-getting-apache-to-see-php5-extension-pages/ Share on other sites More sharing options...
trq Posted September 3, 2007 Share Posted September 3, 2007 You need to find the AddType directive within your httpd.conf file, add the .php5 extension and restart apache. AddType application/x-httpd-php .php .php5 Link to comment https://forums.phpfreaks.com/topic/67712-solved-getting-apache-to-see-php5-extension-pages/#findComment-340169 Share on other sites More sharing options...
kroleig Posted September 3, 2007 Author Share Posted September 3, 2007 Hi It still does not work. I added the code and restarted Apache. Is there something I forgot in my php.ini file? Thanks in advance Link to comment https://forums.phpfreaks.com/topic/67712-solved-getting-apache-to-see-php5-extension-pages/#findComment-340254 Share on other sites More sharing options...
kroleig Posted September 3, 2007 Author Share Posted September 3, 2007 I guess all I needed to do was to restart my computer. For some reason it worked after I did that. Thanks again for your help Link to comment https://forums.phpfreaks.com/topic/67712-solved-getting-apache-to-see-php5-extension-pages/#findComment-340288 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.