DevHeads.net

upgrading to 14.04 - again - no libphp5.so

Apache complains that it can not load libphp5.so for the very
good reason that it is not present in /usr/lib/apache2/modules.

I tried upgrading php, but no joy.

suggestions ?

Comments

Re: upgrading to 14.04 - again - no libphp5.so

By Nils Kassube at 10/10/2014 - 14:10

william drescher wrote:
~/ > apt-file search libphp5.so
libapache2-mod-php5: /usr/lib/apache2/modules/libphp5.so
[...]

Obviously you don't have libapache2-mod-php5 installed ...

Nils

Re: upgrading to 14.04 - again - no libphp5.so

By bill at 10/10/2014 - 15:46

On 10/10/2014 2:10 PM, Nils Kassube wrote:
bill

Re: upgrading to 14.04 - again - no libphp5.so

By Colin Watson at 10/10/2014 - 17:21

On Fri, Oct 10, 2014 at 03:46:34PM -0400, william drescher wrote:
sudo a2enmod php5

Re: upgrading to 14.04 - again - no libphp5.so

By bill at 10/11/2014 - 07:12

On 10/10/2014 5:21 PM, Colin Watson wrote:
Thanks Colin

william@ubuntu2:$ sudo a2enmod php5
[sudo] password for william:
ERROR: Module php5 does not exist!

something is munged at a higher level

Ok, I try
william@ubuntu2:$ sudo apt-get install php5
Reading package lists... Done
Building dependency tree
Reading state information... Done
php5 is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

php5.conf and php5.load are not in mods-available either.

So I manually installed /usr/lib/apache2/modules/libphp5.so and
/etc/apache2/mods-available/php5.conf and php5.load (all from a
recent upgrade to 14.04 - 32 bit) and restarted apache:
william@ubuntu2:/etc/apache2$ sudo service apache2 restart
* Restarting web server apache2 [fail]
* The apache2 configtest failed.
Output of config test was:
[Sat Oct 11 07:05:57.479472 2014] [:crit] [pid 13559:tid
3077843584] Apache is running a threaded MP, but your PHP Module
is not compiled to be threadsafe. You need to recompile PHP.
AH00013: Pre-configuration failed
Action 'configtest' failed.

I don't know if the target machine is 32bit or 64 bit. I am
remote.

Further suggestions ??

Something seems munged during the upgrade.

-bill

Re: upgrading to 14.04 - again - no libphp5.so

By Colin Watson at 10/12/2014 - 03:19

On Sat, Oct 11, 2014 at 07:12:18AM -0400, william drescher wrote:
As a previous reply indicated, you need to:

sudo apt-get install libapache2-mod-php5

... first.

Never do that - these files are packaged, so you should just use the
package instead.

Re: upgrading to 14.04 - again - no libphp5.so

By bill at 10/12/2014 - 07:29

On 10/12/2014 3:19 AM, Colin Watson wrote:
Thank you - I missed that.
Now php works, but phpmyadmin does not

william@ubuntu2:$ sudo apt-get install phpmyadmin
Reading package lists... Done
Building dependency tree
Reading state information... Done
phpmyadmin is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

I would be quite appreciative if you have one more suggestion.
-bill

Re: upgrading to 14.04 - again - no libphp5.so

By Marius Gedminas at 10/13/2014 - 02:27

On Sun, Oct 12, 2014 at 07:29:02AM -0400, william drescher wrote:
I've never used phpmyadmin, but Ubuntu packages usually have a file named
something like /usr/share/doc/phpmyadmin/README.Debian.gz that documents
how to configure and enable it after installing.

You may want to look for one.

Marius Gedminas

Re: upgrading to 14.04 - again - no libphp5.so

By bill at 10/13/2014 - 09:24

On 10/13/2014 2:27 AM, Marius Gedminas wrote:
There is not one. With Ubuntu it is usually a magic install,
when you install php you get phpmyadmin. I have the package, but
apache can not find it. Unlike usual web applications, there is
(normally) nothing in the document root.

bill

Re: upgrading to 14.04 - again - no libphp5.so

By bill at 10/13/2014 - 10:35

On 10/13/2014 9:24 AM, william drescher wrote:

Re: upgrading to 14.04 - again - no libphp5.so

By Nils Kassube at 10/10/2014 - 16:19

william drescher wrote:
Both files can be found in "/etc/apache2/mods-available/" according to
apt-file. I can't really tell you more about it - I'm not familiar with
apache and / or php. But my wild guess is that you can use those files
as a template for your setup.

Nils

Re: upgrading to 14.04 - again - no libphp5.so

By bill at 10/10/2014 - 15:39

On 10/10/2014 2:10 PM, Nils Kassube wrote: