Jump to content

PhP Script gets downloaded


jeisma

Recommended Posts

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

Link to comment
https://forums.phpfreaks.com/topic/41395-php-script-gets-downloaded/
Share on other sites

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

Archived

This topic is now archived and is closed to further replies.

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