views:

601

answers:

3

when i point my browser to http://localhost/phpmyadmin, instead of showing me its front page, it comes up with save as dialog. I'm running: Apache/2.2.3 (Debian) PHP/5.2.0-8+etch13 Server

I've reinstalled both apache2 and php5. After re-install i don't have httpd.conf file, how can i get it back? Is there a standard file which i can just copy into /etc/apache2?

I did a locate httpd.conf and the only file i got was the empty file i have under /etc/apache2/ which i made.

+4  A: 

Did you configure the php extension to send an http header?

In httpd.conf: AddType application/x-httpd-php .php

EDIT
The file is not necessarily named httpd.conf, that's just the default name. Try searching for other configuration files in the Apache directory -- the extension probably is .conf but it might be something else... If you used apt-get on debian to install apache2, try /etc/apache2/apche2.conf
/EDIT

Vincent Van Den Berghe
That should do the trick.
boutta
+1  A: 

I think you just do not know where that config file is. I don't think apache can run without httpd.conf. Here is how you can find your config:
$>locate httpd.conf
/etc/httpd/conf/httpd.conf
$>vim /etc/httpd/conf/httpd.conf

Once you located it, find where other AddType reside and add
AddType application/x-httpd-php .php

Last thing you need to do is restart your httpd, it depends on install, but doing apachectl restart does the trick. You might have to locate it just like you did with httpd.conf file and type in the entire path to the file.

Afterwords, your phpmyadmin should come up.

smazurov
A: 

I dont know anything about this but... does someone knows a way in javascript to download selected files, for example I select through checkboxes 2 files, and then I click on a button in order to download these 2 files choosing the route where i will save the archives