eazyefolife Posted January 23, 2010 Share Posted January 23, 2010 Before I was able to open a php file in my internet, but now when I try to open it. It forces me to download the php file. I use mozilla firefox, Why is this happening? Quote Link to comment https://forums.phpfreaks.com/topic/189502-php-files-wont-open-in-the-internet-anymore/ Share on other sites More sharing options...
wildteen88 Posted January 23, 2010 Share Posted January 23, 2010 Something must of changed with the configuration of your HTTP server. How have you configured your HTTP server with PHP? Quote Link to comment https://forums.phpfreaks.com/topic/189502-php-files-wont-open-in-the-internet-anymore/#findComment-1000369 Share on other sites More sharing options...
eazyefolife Posted January 23, 2010 Author Share Posted January 23, 2010 Sorry for the late reply, i went to sleep . Anyways, How do edit the configuration? Quote Link to comment https://forums.phpfreaks.com/topic/189502-php-files-wont-open-in-the-internet-anymore/#findComment-1000416 Share on other sites More sharing options...
cpace1983 Posted January 31, 2010 Share Posted January 31, 2010 Depends on your setup, but the Apache configuration should be in: /etc/httpd/conf/httpd.conf /etc/apache2/httpd.conf /etc/apache/httpd.conf /etc/apache2/mods-enabled/php5.conf Or, if you use a graphical server configuration tool like Plesk, there should be an option to manually edit the Apache configuration. One of those should be it. Specifically, you want to make sure that the PHP module is loaded, and that the "AddType" declaration is still present. This is, of course, assuming that you're even running Apache. You never specified your platform. Quote Link to comment https://forums.phpfreaks.com/topic/189502-php-files-wont-open-in-the-internet-anymore/#findComment-1004692 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.