That may be happening because apache has specific directives on how to handle .php files. For phpmyadmin that .conf file you included most likely has that where as you need something similar for gallery.<div><br></div><div>
Have you done something like the steps that are listed here: <a href="http://www.debianhelp.co.uk/apachephp5.htm">http://www.debianhelp.co.uk/apachephp5.htm</a></div><div><br></div><div><span class="Apple-style-span" style="font-family: Verdana; "><font color="#CC0066"><b>Install PHP5 support for Apache2<br>
</b></font><br>If you want to install PHP5 from debian packages you need to enter the one of the source list in your /etc/apt/sources.list file<br><br><font color="#CC0066">deb <a href="http://packages.dotdeb.org">http://packages.dotdeb.org</a> stable all<br>
deb-src <a href="http://packages.dotdeb.org">http://packages.dotdeb.org</a> stable all<br></font><br>or<br><br><font color="#CC0066">deb <a href="http://people.debian.org/~dexter">http://people.debian.org/~dexter</a> php5 sarge<br>
deb-src <a href="http://people.debian.org/~dexter">http://people.debian.org/~dexter</a> php5 sarge<br></font><br>Now you need to save your file and run the following command to take our new changes effect<br><br>#apt-get update<br>
<br>Now you need to install PHP5 required packages for apache<br><br>#apt-get install php5 libapache2-mod-php5 php5-curl php5-gd<br><br>that's it PHP5 for apache2 installed now you need to do the following <br><br>#cd /etc/apache2/mods-enabled/ <br>
<br>#ln -s /etc/apache2/mods-available/php5.load <br><br>#ln -s /etc/apache2/mods-available/php5.conf <br><br>Now you need to restart your apache <a href="http://www.debianhelp.co.uk/apachephp5.htm#" class="kLink" target="undefined" id="KonaLink5" style="position: static; color: rgb(0, 153, 0) !important; text-decoration: underline; cursor: pointer; font-family: verdana; border-top-width: 0px !important; border-right-width: 0px !important; border-bottom-width: 0px !important; border-left-width: 0px !important; border-top-style: none !important; border-right-style: none !important; border-bottom-style: none !important; border-left-style: none !important; border-top-color: transparent !important; border-right-color: transparent !important; border-bottom-color: transparent !important; border-left-color: transparent !important; background-image: none !important; background-repeat: initial !important; background-attachment: initial !important; -webkit-background-clip: initial !important; -webkit-background-origin: initial !important; background-color: transparent !important; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px !important; padding-right: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; text-transform: none !important; display: inline !important; font-variant: normal; top: 0px; right: 0px; bottom: 0px; left: 0px; background-position: initial initial !important; "><font color="#009900" style="color: rgb(0, 153, 0) !important; font-family: Verdana; font-weight: normal; font-size: 13px; position: static; "><span class="kLink" style="font-family: Verdana; font-weight: normal; font-size: 13px; position: static; border-top-width: 0px !important; border-top-style: none !important; border-top-color: initial !important; border-left-width: 0px !important; border-left-style: none !important; border-left-color: initial !important; border-right-width: 0px !important; border-right-style: none !important; border-right-color: initial !important; border-bottom-width: 1px; border-bottom-style: solid; border-bottom-color: initial; padding-top: 0px !important; padding-right: 0px !important; padding-bottom: 1px !important; padding-left: 0px !important; color: rgb(0, 153, 0); background-image: none; background-repeat: initial; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; background-color: transparent; width: auto !important; float: none !important; display: inline !important; background-position: initial initial; ">server</span></font></a> using the following command<br>
<br>#/etc/init.d/apache2 restart<br><br>Now you apache server is ready with PHP5 support</span><br></div><div><br></div><div><br><br><div class="gmail_quote">On Sun, Mar 8, 2009 at 5:59 PM, Paul Cartwright <span dir="ltr"><<a href="mailto:ale@pcartwright.com">ale@pcartwright.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="im">On Sun March 8 2009, Jerald Sheets wrote:<br>
</div><div class="im">> Do you have any goodies in your config sort of like so? :<br>
><br>
> LoadModule php5_module libexec/apache22/libphp5.so<br>
</div>I added that to httpd.conf, restarted apache and got this:<br>
/etc/init.d/apache2 restart<br>
Restarting web server: apache2[Sun Mar 08 17:55:46 2009] [warn] module<br>
php5_module is already loaded, skipping<br>
... waiting [Sun Mar 08 17:55:47 2009] [warn] module php5_module is already<br>
loaded, skipping<br>
<div class="im">.<br>
<br>
<br>
><br>
> AddType application/x-httpd-php .php<br>
> AddType application/x-httpd-php-source .phps<br>
><br>
> DirectoryIndex index.php index.html<br>
</div>yet, when I try to open the gallery2 index.php I get these lines:<br>
<?php<br>
/*<br>
* Gallery - a web based photo album viewer and editor<br>
* Copyright (C) 2000-2008 Bharat Mediratta<br>
<br>
<br>
yet phpmyadmin works..<br>
<div class="im">><br>
><br>
> The first one loads the actual PHP server code.<br>
><br>
> THe second group sets mimetypes for some php stuff.<br>
><br>
> The last one tells Apache when it sees index.php, that's ok to load and<br>
> process.<br>
<br>
</div>thanks!<br>
<div><div></div><div class="h5"><br>
<br>
--<br>
Paul Cartwright<br>
Registered Linux user # 367800<br>
Registered Ubuntu User #12459<br>
<br>
_______________________________________________<br>
Ale mailing list<br>
<a href="mailto:Ale@ale.org">Ale@ale.org</a><br>
<a href="http://mail.ale.org/mailman/listinfo/ale" target="_blank">http://mail.ale.org/mailman/listinfo/ale</a><br>
</div></div></blockquote></div><br></div>