Ubuntu users in Ontario, Canada?

Andrew Mathenge mathenge at gmail.com
Thu Jun 26 03:18:44 UTC 2008


Can you check synaptic.

Launch synaptic.

System --> Administration --> Synaptic Package Manager

Click on "Search"

Type "apache2"

Scroll through the results list to see if the following packages are installed:

apache2
apache2.2-common
apache2-mpm-prefork
apache2-utils
libapache2-mod-php5             (very important)

Click on "Search" again

Type "php module"

Scroll through the result list to see if the following packages are installed:

libapache2-php-module         (same as above, very important)
php5-gd
php5-mysql
php5-ldap
php5-odbc

In your case, for Joomla! you'd only need php5-mysql.

Then, click on "Search" again.

Type "mysql"

libdbd-mysql-perl                   (not so important)
libmysqlclient15off
mysql-client
mysql-client-5.0
mysql-common
mysql-server
mysql-server-5.0
php-mysql

You may have been told to check these before in earlier posts, but
check them yourself.

If they are already installed, perhaps what you can do is remove them
and then re-install them.

That may re-create the folders that are missing from your installation.

It's clear that PHP configuration in apache is missing.

Good luck!

Andrew.

On Wed, Jun 25, 2008 at 10:09 PM, geo <yaktur at yahoo.com> wrote:
> I was trying to implement your advice. I was creating the files "php5.conf"
> and "php5.load" and their respective contents and permissions by
> hand.....then I realized I don't have a modules directory!
>
> This is the contents of my /etc/apache2/ directory:
>
> (Directories)
> conf.d
> mods-available
> mods-enabled
> sites-available
> sites-enabled
>
> (Individual files)
> apache2.conf
> enwars
> httpd.conf
> ports.conf
>
> And that's all that's in /etc/apache2/ !!!
>
> There is no /etc/apache2/modules/ path!
>
> YIKES! What has happened? Why isn't there one there?
>
> geo
>
> --- On Wed, 6/25/08, Andrew Mathenge <mathenge at gmail.com> wrote:
>
> From: Andrew Mathenge <mathenge at gmail.com>
> Subject: Re: Ubuntu users in Ontario, Canada?
> To: yaktur at yahoo.com, "The Canadian Ubuntu Users Community"
> <ubuntu-ca at lists.ubuntu.com>
> Date: Wednesday, June 25, 2008, 9:46 PM
>
> The problem you have is that PHP modules aren't being loaded by
> apache. You mentioned that when you wrote:
>
>>> I don't have any such files named php5.conf and php5.load in
> /etc/apache2/mods-enabled/. Nothing there even starts with php.
>
> I have PHP working on my system. My /etc/apache2/mods-enabled/dir.conf
> file looks like this:
>
> <IfModule mod_dir.c>
>           DirectoryIndex index.html index.cgi index.pl index.php
> index.xhtml index.htm
> </IfModule>
>
> Inside the folder /etc/apache2/mods-enabled folder, I also have the
> following links:
>
> lrwxrwxrwx 1 root root   27 2008-04-26 22:26 php5.conf ->
> ../mods-available/php5.conf
> lrwxrwxrwx 1 root root   27
>  2008-04-26 22:26 php5.load ->
> ../mods-available/php5.load
>
> Notice that these are links (or shortcuts) pointing to the following
> files in /etc/apache2/mods-available
>
> -rw-r--r-- 1 root root 133 2008-02-27 15:49 php5.conf
> -rw-r--r-- 1 root root  59 2008-02-27 15:49 php5.load
>
> Those files have the following contents:
>
> php5.conf looks like this:
>
> <IfModule mod_php5.c>
>   AddType application/x-httpd-php .php .phtml .php3
>   AddType application/x-httpd-php-source .phps
> </IfModule>
>
>
> And php5.load looks like this:
>
> LoadModule php5_module /usr/lib/apache2/modules/libphp5.so
>
> Which means that the file in /usr/lib/apache2/modules/libphp5.so MUST
> exist or PHP will not work.
>
> One final comment. Removing "index.php" from
> /etc/apache2/mods-enabled/dir.conf means that the file index.php won't
> be loaded by default. PHP files will still be processed because of
>  the
> /etc/apache2/mods-enabled/php.conf file.
>
> Hope this moves you a step closer!
>
> Andrew.
>




More information about the ubuntu-ca mailing list