[hblug] configuring apache mysql phpmyadmin

Jim Tittsler jtittsler at gmail.com
Sun Jul 22 20:16:19 NZST 2007


On 7/22/07, chris morris <racepics at paradise.net.nz> wrote:
>
> I've used adept to install apache, mysql and phpmyadmin.


Did you install PHP?  For Apache, the most common way to include PHP is
with  mod_php which Ubuntu calls libapache2-mod-php5.  This will configure
Apache to have an:
  AddHandler php5-script .php
so that Apache knows to have mod_php interpret files with the .php
extension.  (Don't forget to restart or at least reload Apache after
changing its configuration.)

When I go to http://localhost/phpmyadmin/main.php the browser wants to
> download the main.php instead of displaying it..
> So I figure Apache isn't running - but according to system services it
> is running.


If something is returning a page to your web browser... then you have some
web server running.  :-)

I thought maybe it was a permissions issue, so ran the browser as root -
> but same result.


If it were a permissions issue (which it doesn't sound like it is...), then
it would be the permissions of the *server* not the browser.

The documentation says something about PHP running in "safe mode" - - my
> system-services does not even list anything php, running or not.


If PHP is running as an Apache module you will not see it as a separate
task.  (There are other ways to use PHP with web servers a couple of which
involve long running processes, but they are not typical in the Apache
world.  I use lighttpd as my web server, and there PHP is kept separate from
the web server process.)

Jim
-- 
Jim Tittsler     http://www.OnNZ.net/      GPG: 0x01159DB6
Python Starship  http://Starship.Python.net/crew/jwt/
Mailman IRC      irc://irc.freenode.net/#mailman
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.linux.net.nz/pipermail/hblug/attachments/20070722/6631476b/attachment.htm


More information about the HBLUG mailing list