I'm running SuSE 10.0 on AMD Athlon 64 x 2 with Apache 2.0.x and PHP 5.0.4 with MySql 4.1.x Both Apache and PHP5 run fine in the sense that I can connect to localhost and get the Apache default page, and I can put a basic php page in the document root and Apache knows how to deal with it (e.g. I can run the standard <?php phpinfo(); ?> page). They were installed via YaST and updated via YOU. I haven't used anything else. I noticed I had a problem when I tried to write a script that connected to MySql. PHP reported an error saying it could not find the myql_*() functions. On investigation, I found that the apache2 error_log was full of warnings of the form: "PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/extensions/xxxx' - /usr/lib64/php/extensions/xxxx: cannot open shared object file: No such file or directory in Unknown on line 0" ... where 'xxxx' represents the module in question, for example, the warning for mysql read: "PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/extensions/mysql' - /usr/lib64/php/extensions/mysql: cannot open shared object file: No such file or directory in Unknown on line 0" In short, not one PHP extension is loading because the required file is not found. On investigation, I find that /usr/lib64/php/extensions contains shared object files (*.so). The files being reported as not found in the apache2 error_log appear to be executables that are located in /usr/lib64/php5/extensions. Does anyone know if I've diagnosed the problem correctly, and - more importantly, I guess - how I can solve it? Many thanks Peter -- Check the headers for your unsubscription address For additional commands send e-mail to suse-linux-e-help@suse.com Also check the archives at http://lists.suse.com Please read the FAQs: suse-linux-e-faq@suse.com
Sorry to reply to my own post, but I don't want to waste anyone's time. I've top posted as well for the same reason. I found the line in php.ini that I though would do the trick, but it doesn't. Looking back in the apache2 error_log, I see there is a more fundamental problem. It seems that the module versions are not correct, because there are very many errors of the form: "PHP Warning: PHP Startup: \x8cho\xae\xaa*: Unable to initialize module Module compiled with module API=20020429, debug=0, thread-safety=0 PHP compiled with module API=20041030, debug=0, thread-safety=0 These options need to match\n in Unknown on line 0" I really have no idea where to go from here, because the modules were installed with YaST (originally), and updated via YOU - which is supposed to avoid this sort of thing. Can anyone advise as to how I can synchronise these things? I looks as though that ought to be the first thing I do. Cheers Peter Peter Bradley wrote:
I'm running SuSE 10.0 on AMD Athlon 64 x 2 with Apache 2.0.x and PHP 5.0.4 with MySql 4.1.x
Both Apache and PHP5 run fine in the sense that I can connect to localhost and get the Apache default page, and I can put a basic php page in the document root and Apache knows how to deal with it (e.g. I can run the standard <?php phpinfo(); ?> page).
They were installed via YaST and updated via YOU. I haven't used anything else.
I noticed I had a problem when I tried to write a script that connected to MySql. PHP reported an error saying it could not find the myql_*() functions. On investigation, I found that the apache2 error_log was full of warnings of the form:
"PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/extensions/xxxx' - /usr/lib64/php/extensions/xxxx: cannot open shared object file: No such file or directory in Unknown on line 0"
... where 'xxxx' represents the module in question, for example, the warning for mysql read:
"PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/extensions/mysql' - /usr/lib64/php/extensions/mysql: cannot open shared object file: No such file or directory in Unknown on line 0"
In short, not one PHP extension is loading because the required file is not found.
On investigation, I find that /usr/lib64/php/extensions contains shared object files (*.so). The files being reported as not found in the apache2 error_log appear to be executables that are located in /usr/lib64/php5/extensions.
Does anyone know if I've diagnosed the problem correctly, and - more importantly, I guess - how I can solve it?
Many thanks
Peter
-- Check the headers for your unsubscription address For additional commands send e-mail to suse-linux-e-help@suse.com Also check the archives at http://lists.suse.com Please read the FAQs: suse-linux-e-faq@suse.com
On Monday 03 July 2006 21:17, Peter Bradley wrote:
I really have no idea where to go from here, because the modules were installed with YaST (originally), and updated via YOU - which is supposed to avoid this sort of thing.
Normally it does What is the output of rpm -qa --qf "%{NAME} %{VERSION} %{RELEASE} %{DISTRIBUTION}\n" \*php\* -- Check the headers for your unsubscription address For additional commands send e-mail to suse-linux-e-help@suse.com Also check the archives at http://lists.suse.com Please read the FAQs: suse-linux-e-faq@suse.com
Anders Johansson wrote:
What is the output of
rpm -qa --qf "%{NAME} %{VERSION} %{RELEASE} %{DISTRIBUTION}\n" \*php\*
Thanks for the quick response, Anders. Here is the output: php4-ctype 4.4.0 6 SUSE LINUX 10.0 (X86-64) php4-mcrypt 4.4.0 6 SUSE LINUX 10.0 (X86-64) php4-snmp 4.4.0 6 SUSE LINUX 10.0 (X86-64) php4-zlib 4.4.0 6 SUSE LINUX 10.0 (X86-64) php5-devel 5.0.4 9 SUSE LINUX 10.0 (X86-64) php5-mhash 5.0.4 9 SUSE LINUX 10.0 (X86-64) php5-posix 5.0.4 9 SUSE LINUX 10.0 (X86-64) php5-sysvsem 5.0.4 9 SUSE LINUX 10.0 (X86-64) php4-pear 4.4.0 6 SUSE LINUX 10.0 (X86-64) php5-mbstring 5.0.4 9.13 SUSE LINUX 10.0 (X86-64) php4-mbstring 4.4.0 6.15 SUSE LINUX 10.0 (X86-64) php4-dbx 4.4.0 6 SUSE LINUX 10.0 (X86-64) php4-iconv 4.4.0 6 SUSE LINUX 10.0 (X86-64) php4-mysql 4.4.0 6 SUSE LINUX 10.0 (X86-64) php4-sysvshm 4.4.0 6 SUSE LINUX 10.0 (X86-64) php5-calendar 5.0.4 9 SUSE LINUX 10.0 (X86-64) php5-iconv 5.0.4 9 SUSE LINUX 10.0 (X86-64) php5-ncurses 5.0.4 9 SUSE LINUX 10.0 (X86-64) php5-wddx 5.0.4 9 SUSE LINUX 10.0 (X86-64) phplib 7.4 79 SUSE LINUX 10.0 (i586) apache2-mod_php5 5.0.4 9.13 SUSE LINUX 10.0 (X86-64) php5-snmp 5.0.4 9.13 SUSE LINUX 10.0 (X86-64) php4 4.4.0 6.15 SUSE LINUX 10.0 (X86-64) selfphp 2.0 2 SUSE LINUX 10.0 (i586) php4-bz2 4.4.0 6 SUSE LINUX 10.0 (X86-64) php4-dbase 4.4.0 6 SUSE LINUX 10.0 (X86-64) php4-filepro 4.4.0 6 SUSE LINUX 10.0 (X86-64) php4-gmp 4.4.0 6 SUSE LINUX 10.0 (X86-64) php4-mime_magic 4.4.0 6 SUSE LINUX 10.0 (X86-64) php4-session 4.4.0 6 SUSE LINUX 10.0 (X86-64) php4-sysvsem 4.4.0 6 SUSE LINUX 10.0 (X86-64) php4-xslt 4.4.0 6 SUSE LINUX 10.0 (X86-64) php4-exif 4.4.0 6.15 SUSE LINUX 10.0 (X86-64) php5-bz2 5.0.4 9 SUSE LINUX 10.0 (X86-64) php5-dbase 5.0.4 9 SUSE LINUX 10.0 (X86-64) php5-dom 5.0.4 9 SUSE LINUX 10.0 (X86-64) php5-filepro 5.0.4 9 SUSE LINUX 10.0 (X86-64) php5-gmp 5.0.4 9 SUSE LINUX 10.0 (X86-64) php5-pcntl 5.0.4 9 SUSE LINUX 10.0 (X86-64) php5-shmop 5.0.4 9 SUSE LINUX 10.0 (X86-64) php5-sqlite 5.0.4 9 SUSE LINUX 10.0 (X86-64) php5-tokenizer 5.0.4 9 SUSE LINUX 10.0 (X86-64) php5-yp 5.0.4 9 SUSE LINUX 10.0 (X86-64) mod_php4-core 4.4.0 6 SUSE LINUX 10.0 (X86-64) php5-fastcgi 5.0.4 9.13 SUSE LINUX 10.0 (X86-64) php5-pear 5.0.4 9.13 SUSE LINUX 10.0 (X86-64) php-doc 5.0.3 4 SUSE LINUX 10.0 (i586) php4-bcmath 4.4.0 6 SUSE LINUX 10.0 (X86-64) php4-curl 4.4.0 6 SUSE LINUX 10.0 (X86-64) php4-gettext 4.4.0 6 SUSE LINUX 10.0 (X86-64) php4-ldap 4.4.0 6 SUSE LINUX 10.0 (X86-64) php4-mhash 4.4.0 6 SUSE LINUX 10.0 (X86-64) php4-qtdom 4.4.0 6 SUSE LINUX 10.0 (X86-64) php4-sockets 4.4.0 6 SUSE LINUX 10.0 (X86-64) php4-gd 4.4.0 6.15 SUSE LINUX 10.0 (X86-64) phpMyAdmin 2.7.0pl2 1.6 SUSE LINUX 10.0 (i586) php4-wddx 4.4.0 6 SUSE LINUX 10.0 (X86-64) php5-bcmath 5.0.4 9 SUSE LINUX 10.0 (X86-64) php5-curl 5.0.4 9 SUSE LINUX 10.0 (X86-64) php5-dio 5.0.4 9 SUSE LINUX 10.0 (X86-64) php5-gettext 5.0.4 9 SUSE LINUX 10.0 (X86-64) php5-ldap 5.0.4 9 SUSE LINUX 10.0 (X86-64) php5-mysql 5.0.4 9 SUSE LINUX 10.0 (X86-64) php5-openssl 5.0.4 9 SUSE LINUX 10.0 (X86-64) php5-pspell 5.0.4 9 SUSE LINUX 10.0 (X86-64) php5-sockets 5.0.4 9 SUSE LINUX 10.0 (X86-64) php5-sysvshm 5.0.4 9 SUSE LINUX 10.0 (X86-64) php5-xsl 5.0.4 9 SUSE LINUX 10.0 (X86-64) php5-exif 5.0.4 9.13 SUSE LINUX 10.0 (X86-64) php5-mysqli 5.0.4 9.13 SUSE LINUX 10.0 (X86-64) php4-domxml 4.4.0 6 SUSE LINUX 10.0 (X86-64) php4-imap 4.4.0 6 SUSE LINUX 10.0 (X86-64) php4-pgsql 4.4.0 6 SUSE LINUX 10.0 (X86-64) php5-ctype 5.0.4 9 SUSE LINUX 10.0 (X86-64) php5-fam 5.0.4 9 SUSE LINUX 10.0 (X86-64) php5-imap 5.0.4 9 SUSE LINUX 10.0 (X86-64) php5-odbc 5.0.4 9 SUSE LINUX 10.0 (X86-64) php5-soap 5.0.4 9 SUSE LINUX 10.0 (X86-64) php5-xmlrpc 5.0.4 9 SUSE LINUX 10.0 (X86-64) php5 5.0.4 9.13 SUSE LINUX 10.0 (X86-64) php4-calendar 4.4.0 6 SUSE LINUX 10.0 (X86-64) php4-ftp 4.4.0 6 SUSE LINUX 10.0 (X86-64) php4-mcal 4.4.0 6 SUSE LINUX 10.0 (X86-64) php4-shmop 4.4.0 6 SUSE LINUX 10.0 (X86-64) php4-yp 4.4.0 6 SUSE LINUX 10.0 (X86-64) php5-dbx 5.0.4 9 SUSE LINUX 10.0 (X86-64) php5-ftp 5.0.4 9 SUSE LINUX 10.0 (X86-64) php5-mcrypt 5.0.4 9 SUSE LINUX 10.0 (X86-64) php5-pgsql 5.0.4 9 SUSE LINUX 10.0 (X86-64) php5-sysvmsg 5.0.4 9 SUSE LINUX 10.0 (X86-64) php5-zlib 5.0.4 9 SUSE LINUX 10.0 (X86-64) php5-gd 5.0.4 9.13 SUSE LINUX 10.0 (X86-64) php4-unixODBC 4.4.0 6.15 SUSE LINUX 10.0 (X86-64) I'm sure you'll notice that both php4 and php5 are installed. YaST did not like it when I tried to install php5 only. Similarly, if I try to uninstall php4 via YaST it tells me that doing so will mean uninstalling php5 as well. I can probably get you more information on that if you need it. Thanks Peter -- Check the headers for your unsubscription address For additional commands send e-mail to suse-linux-e-help@suse.com Also check the archives at http://lists.suse.com Please read the FAQs: suse-linux-e-faq@suse.com
rpm -qa --qf "%{NAME} %{VERSION} %{RELEASE} %{DISTRIBUTION}\n" \*php\* I have the same issue with php4 and php5. Both seem to be installed, by
On Monday 03 July 2006 12:39, Peter Bradley wrote: phpmyadmin says php5 is running. -- Russ -- Check the headers for your unsubscription address For additional commands send e-mail to suse-linux-e-help@suse.com Also check the archives at http://lists.suse.com Please read the FAQs: suse-linux-e-faq@suse.com
Russbucket wrote:
I have the same issue with php4 and php5. Both seem to be installed, by phpmyadmin says php5 is running.
Unfortunately, when I try to run phpMyAdmin, it gives an error saying: "Cannot load /mysql/ <http://php.net/mysql> extension. Please check your PHP configuration." Peter -- Check the headers for your unsubscription address For additional commands send e-mail to suse-linux-e-help@suse.com Also check the archives at http://lists.suse.com Please read the FAQs: suse-linux-e-faq@suse.com
participants (3)
-
Anders Johansson
-
Peter Bradley
-
Russbucket