phpmyadmin requesting to download a php file...

Justin Gruenberg justin.gruenberg at gmail.com
Wed Oct 24 14:49:51 UTC 2007


On 10/24/07, Luca Ferrari <fluca1978 at infinito.it> wrote:
> Hi,
> I've followed the instructions on the ubuntu forums and mailing list to
> install a lamp based on mysql and phpmyadmin, but I'm not getting the latter
> working. I've installed apache2, libapache2-mod-php5, php5, phpmyadmin,
> mysql-server.
> I'm able to point my web browser to a test.php page that simply prints the php
> environment, and it works. After I installed the phpmyadmin package I see a
> link in the documentroot, that is the phpmyadmin/ directory. But when I try
> to point my browser to http://ip_address/phpmyadmin the browser asks me to
> download a application/x-httpd-php file.
>
> I've run the a2enmod php5 command, and my apache2.conf file has the following
> lines related to php:
>
> root at ftp:/etc/apache2# grep php /etc/apache2/apache2.conf
> Include /etc/phpmyadmin/apache.conf
> DirectoryIndex index.html index.cgi index.pl index.php index.xhtml
> #AddType application/x-httpd-php .php
> #AddType application/x-httpd-php-source .phps
> AddHandler application/x-httpd-php .php
>
>
> Now I don't know what to do to get phpmyadmin working. Any idea?
>
> Thanks,
> Luca
>
>

Uncomment the lines begining with AddType




More information about the ubuntu-users mailing list