public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] Something in PHP has killed Apache2
@ 2010-10-15  5:05 Rod
  2010-10-15  6:03 ` Jason Carson
  0 siblings, 1 reply; 4+ messages in thread
From: Rod @ 2010-10-15  5:05 UTC (permalink / raw
  To: gentoo-user

     Hi

     I just did a emerge -vnuD system and I think a build was done on 
mysql (seems this is the origin of the problems) I'm getting a PHP 
Warning as follows, and Apache2 doesn't start up :(


PHP Warning:  PHP Startup: Unable to load dynamic library 
'/usr/lib/php5/lib/extensions/no-debug-zts-20060613/mysql.so' - 
/usr/lib/php5/lib/extensions/no-debug-zts-20060613/mysql.so: cannot open 
shared object file: No such file or directory in Unknown on line 0

     no matter what I do, i have been trying to go thru the php.ini 
files to comment out or remove the linking to extensions, but nothing is 
fixing the problem

     I ran revdep-rebuild -library=mysql.so  but this returned with no 
problems :(

     if I run /etc/init.d/apache2 restart I get the following

  * Stopping apache2 ...
httpd (no pid file) not 
running                                           [ ok ]
  * Starting apache2 
...                                                   [ ok ]

     but tailing /var/log/apache2/error_log I get the above PHP warning

     If I ls -la the file it is finding  error, I have a missing mysql.so

jumpgate ~ # ls -la /usr/lib/php5/lib/extensions/no-debug-zts-20060613/
total 16
drwxr-xr-x 2 root root    80 Oct  4 15:00 .
drwxr-xr-x 3 root root    88 Oct  4 12:44 ..
-rwxr-xr-x 1 root root 13828 Oct  4 14:59 phpcups.so

     relinking the file with the following into the problem directory,

no-debug-zts-20060613 # ln -s 
/usr/lib/perl5/vendor_perl/5.12.2/i686-linux/auto/DBD/mysql/mysql.so 
mysql.so

     I get the following when I try and restart apache2, the error_log 
file is now

PHP Warning:  PHP Startup: Unable to load dynamic library 
'/usr/lib/php5/lib/extensions/no-debug-zts-20060613/mysql.so' - 
/usr/lib/php5/lib/extensions/no-debug-zts-20060613/mysql.so: undefined 
symbol: PL_unitcheckav in Unknown on line 0


     I have "emerged" everything mysql, and everything php as in find 
what packages are installed, and anything with PHP in their name or 
mysql in their name, I have re-merged.

     But yet, I still have a problem :(



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [gentoo-user] Something in PHP has killed Apache2
  2010-10-15  5:05 [gentoo-user] Something in PHP has killed Apache2 Rod
@ 2010-10-15  6:03 ` Jason Carson
  2010-10-15  7:46   ` Neil Bothwick
  0 siblings, 1 reply; 4+ messages in thread
From: Jason Carson @ 2010-10-15  6:03 UTC (permalink / raw
  To: gentoo-user

>      I ran revdep-rebuild -library=mysql.so  but this returned with no
> problems :(

Try running revdep-rebuild without -library=mysql.so

I had problem a few weeks ago when I updated PHP and running
revdep-rebuild without any options fixed it.




^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [gentoo-user] Something in PHP has killed Apache2
  2010-10-15  6:03 ` Jason Carson
@ 2010-10-15  7:46   ` Neil Bothwick
  2010-10-15 17:21     ` Florian Philipp
  0 siblings, 1 reply; 4+ messages in thread
From: Neil Bothwick @ 2010-10-15  7:46 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 357 bytes --]

On Fri, 15 Oct 2010 02:03:05 -0400, Jason Carson wrote:

> >      I ran revdep-rebuild -library=mysql.so  but this returned with no
> > problems :(  
> 
> Try running revdep-rebuild without -library=mysql.so

Before revdep-rebuild, run "lafilefixer --justfixit".


-- 
Neil Bothwick

Found my .sig, it was in behind the cushion on the settee.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [gentoo-user] Something in PHP has killed Apache2
  2010-10-15  7:46   ` Neil Bothwick
@ 2010-10-15 17:21     ` Florian Philipp
  0 siblings, 0 replies; 4+ messages in thread
From: Florian Philipp @ 2010-10-15 17:21 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 524 bytes --]

Am 15.10.2010 09:46, schrieb Neil Bothwick:
> On Fri, 15 Oct 2010 02:03:05 -0400, Jason Carson wrote:
> 
>>>      I ran revdep-rebuild -library=mysql.so  but this returned with no
>>> problems :(  
>>
>> Try running revdep-rebuild without -library=mysql.so
> 
> Before revdep-rebuild, run "lafilefixer --justfixit".
> 
> 

And add the following lines to /etc/portage/bashrc

post_src_install() {
    lafilefixer "${D}"
}

It helps to prevent odd failures in the future and it doesn't slow
things down.


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 262 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-10-15 17:22 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-10-15  5:05 [gentoo-user] Something in PHP has killed Apache2 Rod
2010-10-15  6:03 ` Jason Carson
2010-10-15  7:46   ` Neil Bothwick
2010-10-15 17:21     ` Florian Philipp

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox