jeisma Posted March 6, 2007 Share Posted March 6, 2007 hi! trying to setup lamp setup my pc. when i try to http://localhost/test.php, the browser (ff) instead prompts to download the script. i already have the following in my /etc/apache2/apache2.conf file: AddType application/x-httpd-php .php .phtml .php5 .php4 AddType application/x-httpd-php-source .phps what else am i missing? thanks! joey xubuntu 6.10 apache2 php4 Quote Link to comment https://forums.phpfreaks.com/topic/41395-php-script-gets-downloaded/ Share on other sites More sharing options...
steviewdr Posted March 6, 2007 Share Posted March 6, 2007 apt-get install libapache2-mod-php5 -steve Quote Link to comment https://forums.phpfreaks.com/topic/41395-php-script-gets-downloaded/#findComment-200590 Share on other sites More sharing options...
jeisma Posted March 6, 2007 Author Share Posted March 6, 2007 hi! thank you.. but libapache2-mod-php5? i only need to use php4 and i already have libapache2-mod-php4. i will try as you suggested though... thanks! joey Quote Link to comment https://forums.phpfreaks.com/topic/41395-php-script-gets-downloaded/#findComment-200620 Share on other sites More sharing options...
steviewdr Posted March 6, 2007 Share Posted March 6, 2007 Sorry - when I saw "php5" in your first post - I assumed you were using php5. Try: dpkg-reconfigure libapache2-mod-php4 or: apt-get remove libapache2-mod-php4 apt-get install libapache2-mod-php4 Also try: a2enmod which is the front end to looking at the loaded modules in: /etc/apache2/mods-enabled -steve Quote Link to comment https://forums.phpfreaks.com/topic/41395-php-script-gets-downloaded/#findComment-200790 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.