Ok, so if you tuned in last time, I couldn't make the installation/upgrade of PHP5 from the Centos4 CentOS Plus repository work. Not one to be easilly dissuaded, I shapened my shovel and dug myself a hole. So using the exclude= lines in the repository config file backfired big time: even if I excluded the exclude= lines, yum continued to exclude the files on those lines, and only deigned to update three php files. Thus, my user complained that the mysql pieces were not there. So what I did was install CentOS 4 fresh into a VM, update it, then I just did a: # yum --enablerepo centosplus --exclude php-pecl-ssh2 --exclude php-eaccelerator --exclude php-pear-Image-GraphViz --exclude php-pear-PHPUnit2 install php php* (see the explanations for the --excludes on http://wiki.xdroop.com/space/CentOS/4/Updating+to+PHP+5) Please with my illusion of progress, I then copied the RPMs from the local cache to my target machine, and installed them with # rpm -Uvh --nodeps --replacefiles *rpm The --nodeps was because some other package not otherwise updated depended on the previous version of php-pear, and the --replacefiles was because rpm was complaining that some file owned by mysql-4 conflicted with the mysql-5 package even though it was going to be "upgraded". Now, my users are complaining about errors like: [28-Sep-2007 10:32:29] PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/modules/fileinfo.so' - /usr/lib/php/modules/fileinfo.so: cannot open shared object file: No such file or directory in Unknown on line 0 [28-Sep-2007 10:32:29] PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/modules/apc.so' - /usr/lib/php/modules/apc.so: cannot open shared object file: No such file or directory in Unknown on line 0 [...repeat for each file in /usr/lib/php/modules/...] However, those "files" are there: # ls -l /usr/lib/php/modules/fileinfo.so /usr/lib/php/modules/apc.so -rwxr-xr-x 1 root root 75652 Nov 24 2006 /usr/lib/php/modules/apc.so -rwxr-xr-x 1 root root 10580 Nov 24 2006 /usr/lib/php/modules/fileinfo.so I don't know anything about how to get php to show these errors, since the simple phpinfo.php file works (but admittedly it doesn't really do anything). Can anyone point me in the right direction, or perhaps offer me other directions in which to dig? -- /\oo/\ / /()\ \ David Mackintosh | dave at xdroop.com | http://www.xdroop.com -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available URL: <http://lists.centos.org/pipermail/centos/attachments/20070928/231322d1/attachment-0001.sig>
On Fri, 2007-09-28 at 11:15 -0400, David Mackintosh wrote:> Now, my users are complaining about errors like: > > [28-Sep-2007 10:32:29] PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/modules/fileinfo.so' - /usr/lib/php/modules/fileinfo.so: cannot open shared object file: No such file or directory in Unknown on line 0 > [28-Sep-2007 10:32:29] PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/modules/apc.so' - /usr/lib/php/modules/apc.so: cannot open shared object file: No such file or directory in Unknown on line 0 > [...repeat for each file in /usr/lib/php/modules/...] > > However, those "files" are there: > > # ls -l /usr/lib/php/modules/fileinfo.so /usr/lib/php/modules/apc.so > -rwxr-xr-x 1 root root 75652 Nov 24 2006 /usr/lib/php/modules/apc.so > -rwxr-xr-x 1 root root 10580 Nov 24 2006 /usr/lib/php/modules/fileinfo.soldd is your friend. -- Ignacio Vazquez-Abrams <ivazqueznet at gmail.com> PLEASE don't CC me; I'm already subscribed -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part URL: <http://lists.centos.org/pipermail/centos/attachments/20070928/d0b09e69/attachment-0001.sig>
On 9/28/07, David Mackintosh <David.Mackintosh at xdroop.com> wrote:> Can anyone point me in the right direction, or perhaps offer me other > directions in which to dig?Would this wiki help? http://wiki.centos.org/Repositories/CentOSPlus/CentOSWebStack Akemi
On Fri, Sep 28, 2007 at 11:15:44AM -0400, David Mackintosh wrote:> Ok, so if you tuned in last time, I couldn't make the installation/upgrade of > PHP5 from the Centos4 CentOS Plus repository work. Not one to be easilly > dissuaded, I shapened my shovel and dug myself a hole.[...]> Now, my users are complaining about errors like: > > [28-Sep-2007 10:32:29] PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/modules/fileinfo.so' - /usr/lib/php/modules/fileinfo.so: cannot open shared object file: No such file or directory in Unknown on line 0 > [28-Sep-2007 10:32:29] PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/modules/apc.so' - /usr/lib/php/modules/apc.so: cannot open shared object file: No such file or directory in Unknown on line 0 > [...repeat for each file in /usr/lib/php/modules/...] > > However, those "files" are there: > > # ls -l /usr/lib/php/modules/fileinfo.so /usr/lib/php/modules/apc.so > -rwxr-xr-x 1 root root 75652 Nov 24 2006 /usr/lib/php/modules/apc.so > -rwxr-xr-x 1 root root 10580 Nov 24 2006 /usr/lib/php/modules/fileinfo.so > > I don't know anything about how to get php to show these errors, since > the simple phpinfo.php file works (but admittedly it doesn't really do anything). > > Can anyone point me in the right direction, or perhaps offer me other > directions in which to dig?For those who end up here as the result of an internet search: my problem in this case was that I installed i386 rpms on a x86_64 system, which explains why php couldn't load the modules even though they were there. Two long hours with yum and rpm, removing and re-installing various parts, and I have a happy user community. So honestly this problem was of my own making. Nothing to see here. -- /\oo/\ / /()\ \ David Mackintosh | dave at xdroop.com | http://www.xdroop.com -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available URL: <http://lists.centos.org/pipermail/centos/attachments/20071002/c4d0350e/attachment-0005.sig>