[PLUG] running php on Ubuntu Hardy

wes plug at the-wes.com
Tue Dec 16 05:02:09 UTC 2008


On Mon, Dec 15, 2008 at 5:00 PM, Richard C. Steffens <rsteff at comcast.net>wrote:

> ckonstanski at pippiandcarlos.com wrote:
> > You will definitely need the LoadModule and AddType lines.  The
> > DirectoryIndex makes it so that any directory you visit with an index.php
> > or index.phtml file will cause it to be automatically run.
> >
> > <IfDefine PHP5>
> >     # Load the module first
> >     <IfModule !mod_php5.c>
> >         LoadModule php5_module    modules/libphp5.so
> >     </IfModule>
> >
> >     # Set it to handle the files
> >     <IfModule mod_mime.c>
> >         AddType application/x-httpd-php .php
> >         AddType application/x-httpd-php .phtml
> >         AddType application/x-httpd-php .php3
> >         AddType application/x-httpd-php .php4
> >         AddType application/x-httpd-php .php5
> >         AddType application/x-httpd-php-source .phps
> >     </IfModule>
> >
> >     DirectoryIndex index.php index.phtml
> > </IfDefine>
> >
> I tried restarting apache2 with and without the above, after I actually
> installing php5. It works the same for me either way. I have directories
> linked from index.php with other php files. They open as expected. They
> don't necessarily run correctly, but I expect that's because of other
> configuration issues, as I mentioned in my last post, since these old
> files are php4 and some of them have not-strict coding in them copied
> from a book I used several years ago.
>
> Thanks for the info.
>

Sorry I came in late to the game.

In Synaptic, look for the package libapache2-mod-php5. Is that installed?

Do you get any error output when restarting apache with the above configs
included?

does modules/libphp5.so exist?

Anything interesting in the logs?

-wes



More information about the PLUG mailing list