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
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

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

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