Koozali.org: home of the SME Server

HTTPS app's don't work since update PHP5 + MySQL5

Offline Snoopyski

  • *
  • 141
  • +0/-0
    • http://www.serviceinfosg.com
HTTPS app's don't work since update PHP5 + MySQL5
« on: January 27, 2007, 03:50:31 AM »
Hello Everyone,

Since I upgrade My PHP and MySQL to Versio 5.x.x I got those error messages in my log:

Quote

Jan 26 21:35:06 server httpd: PHP Warning:  require_once(config.php) [<a href='function.require-once'>function.require-once</a>]: failed to open stream: No such file or directory in /opt/addressbook/constants.inc on line 60
Jan 26 21:35:06 server httpd: PHP Fatal error:  require_once() [<a href='function.require'>function.require</a>]: Failed opening required 'config.php' (include_path='.:/usr/share/pear-addons:/usr/share/pear') in /opt/addressbook/constants.inc on line 60
Jan 26 21:35:06 server su(pam_unix)[29047]: session closed for user qmailr
Jan 26 21:37:28 server php: PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/modules/bcmath.so' - /usr/lib/php/modules/bcmath.so: cannot open shared object file: No such file or directory in Unknown on line 0
Jan 26 21:37:28 server php: PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/modules/dom.so' - /usr/lib/php/modules/dom.so: cannot open shared object file: No such file or directory in Unknown on line 0
Jan 26 21:37:28 server php: PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/modules/pgsql.so' - /usr/lib/php/modules/pgsql.so: cannot open shared object file: No such file or directory in Unknown on line 0
Jan 26 21:37:28 server php: PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/modules/curl.so' - /usr/lib/php/modules/curl.so: cannot open shared object file: No such file or directory in Unknown on line 0
Jan 26 21:37:28 server php: PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/modules/domxml.so' - /usr/lib/php/modules/domxml.so: cannot open shared object file: No such file or directory in Unknown on line 0
Jan 26 21:37:28 server php: 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
Jan 26 21:37:28 server php: PHP Warning:  Module 'mcrypt' already loaded in Unknown on line 0
Jan 26 21:37:28 server php: PHP Warning:  Module 'mhash' already loaded in Unknown on line 0
Jan 26 21:37:28 server php: PHP Warning:  Module 'xmlrpc' already loaded in Unknown on line 0
Jan 26 21:37:39 server php: PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/modules/bcmath.so' - /usr/lib/php/modules/bcmath.so: cannot open shared object file: No such file or directory in Unknown on line 0
Jan 26 21:37:39 server php: PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/modules/dom.so' - /usr/lib/php/modules/dom.so: cannot open shared object file: No such file or directory in Unknown on line 0
Jan 26 21:37:39 server php: PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/modules/pgsql.so' - /usr/lib/php/modules/pgsql.so: cannot open shared object file: No such file or directory in Unknown on line 0
Jan 26 21:37:39 server php: PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/modules/curl.so' - /usr/lib/php/modules/curl.so: cannot open shared object file: No such file or directory in Unknown on line 0
Jan 26 21:37:39 server php: PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/modules/domxml.so' - /usr/lib/php/modules/domxml.so: cannot open shared object file: No such file or directory in Unknown on line 0
Jan 26 21:37:39 server php: 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
Jan 26 21:37:39 server php: PHP Warning:  Module 'mcrypt' already loaded in Unknown on line 0
Jan 26 21:37:39 server php: PHP Warning:  Module 'mhash' already loaded in Unknown on line 0
Jan 26 21:37:39 server php: PHP Warning:  Module 'xmlrpc' already loaded in Unknown on line 0
Jan 26 21:37:56 server php: PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/modules/bcmath.so' - /usr/lib/php/modules/bcmath.so: cannot open shared object file: No such file or directory in Unknown on line 0
Jan 26 21:37:56 server php: PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/modules/dom.so' - /usr/lib/php/modules/dom.so: cannot open shared object file: No such file or directory in Unknown on line 0
Jan 26 21:37:56 server php: PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/modules/pgsql.so' - /usr/lib/php/modules/pgsql.so: cannot open shared object file: No such file or directory in Unknown on line 0
Jan 26 21:37:56 server php: PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/modules/curl.so' - /usr/lib/php/modules/curl.so: cannot open shared object file: No such file or directory in Unknown on line 0
Jan 26 21:37:56 server php: PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/modules/domxml.so' - /usr/lib/php/modules/domxml.so: cannot open shared object file: No such file or directory in Unknown on line 0
Jan 26 21:37:56 server php: 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
Jan 26 21:37:56 server php: PHP Warning:  Module 'mcrypt' already loaded in Unknown on line 0
Jan 26 21:37:56 server php: PHP Warning:  Module 'mhash' already loaded in Unknown on line 0
Jan 26 21:37:56 server php: PHP Warning:  Module 'xmlrpc' already loaded in Unknown on line 0
Jan 26 21:39:13 server httpd: PHP Warning:  mcrypt_decrypt() [<a href='function.mcrypt-decrypt'>function.mcrypt-decrypt</a>]: Size of key is too large for this algorithm in /opt/administration/phpmyadminmulti/libraries/mcrypt.lib.php on line 90
Jan 26 21:39:13 server httpd: PHP Fatal error:  mcrypt_decrypt() [<a href='function.mcrypt-decrypt'>function.mcrypt-decrypt</a>]: Mcrypt initialisation failed in /opt/administration/phpmyadminmulti/libraries/mcrypt.lib.php on line 90
Jan 26 21:39:16 server httpd: PHP Warning:  require_once(config.php) [<a href='function.require-once'>function.require-once</a>]: failed to open stream: No such file or directory in /opt/addressbook/constants.inc on line 60
Jan 26 21:39:16 server httpd: PHP Fatal error:  require_once() [<a href='function.require'>function.require</a>]: Failed opening required 'config.php' (include_path='.:/usr/share/pear-addons:/usr/share/pear') in /opt/addressbook/constants.inc on line 60
Jan 26 21:39:17 server httpd: PHP Warning:  require_once(config.php) [<a href='function.require-once'>function.require-once</a>]: failed to open stream: No such file or directory in /opt/addressbook/constants.inc on line 60
Jan 26 21:39:17 server httpd: PHP Fatal error:  require_once() [<a href='function.require'>function.require</a>]: Failed opening required 'config.php' (include_path='.:/usr/share/pear-addons:/usr/share/pear') in /opt/addressbook/constants.inc on line 60
Jan 26 21:39:17 server httpd: PHP Warning:  require_once(config.php) [<a href='function.require-once'>function.require-once</a>]: failed to open stream: No such file or directory in /opt/addressbook/constants.inc on line 60
Jan 26 21:39:17 server httpd: PHP Fatal error:  require_once() [<a href='function.require'>function.require</a>]: Failed opening required 'config.php' (include_path='.:/usr/share/pear-addons:/usr/share/pear') in /opt/addressbook/constants.inc on line 60
Jan 26 21:39:18 server httpd: PHP Warning:  require_once(config.php) [<a href='function.require-once'>function.require-once</a>]: failed to open stream: No such file or directory in /opt/addressbook/constants.inc on line 60
Jan 26 21:39:18 server httpd: PHP Fatal error:  require_once() [<a href='function.require'>function.require</a>]: Failed opening required 'config.php' (include_path='.:/usr/share/pear-addons:/usr/share/pear') in /opt/addressbook/constants.inc on line 60
Jan 26 21:39:18 server httpd: PHP Warning:  require_once(config.php) [<a href='function.require-once'>function.require-once</a>]: failed to open stream: No such file or directory in /opt/addressbook/constants.inc on line 60
Jan 26 21:39:18 server httpd: PHP Fatal error:  require_once() [<a href='function.require'>function.require</a>]: Failed opening required 'config.php' (include_path='.:/usr/share/pear-addons:/usr/share/pear') in /opt/addressbook/constants.inc on line 60


PS. TheAdressBook, PHPMyAdmin, etc don't work in HTTPS... And I use the Howto for upgrading from PHP4 to PHP5/MySQL5 fron the contribs web site...

Thanks for help,

Snoopyski

Offline byte

  • *
  • 2,183
  • +2/-0
HTTPS app's don't work since update PHP5 + MySQL5
« Reply #1 on: January 27, 2007, 12:59:34 PM »
Moving this topic to the SME 7.x contribs forum, it is more appropriate there. Thanks!
--[byte]--

Have you filled in a Bug Report over @ http://bugs.contribs.org ? Please don't wait to be told this way you help us to help you/others - Thanks!

Offline william_syd

  • ****
  • 1,608
  • +0/-0
  • Nothing to see here.
    • http://www.magicwilly.info
HTTPS app's don't work since update PHP5 + MySQL5
« Reply #2 on: January 27, 2007, 02:13:34 PM »
The how to is read only and cannot be changed, deleted or corrected.

It did work on a stock SME 7.0.

Do not use it with SME 7.1.

Which version did you update and when did you update?  I will look into some way of backing out of it if possible.
Regards,
William

IF I give advise.. It's only if it was me....

Offline Snoopyski

  • *
  • 141
  • +0/-0
    • http://www.serviceinfosg.com
HTTPS app's don't work since update PHP5 + MySQL5
« Reply #3 on: January 27, 2007, 02:17:47 PM »
Hello,

I'm in version 7.1... It's a upgrade from version 6.0.1 to 7.1... And after the upgrade and everything works fine I do a upgrade for PHP5/MySQL5 because my eGroupWare apps (and others) need those upgrade...

Thanks,

Snoopyski

Offline william_syd

  • ****
  • 1,608
  • +0/-0
  • Nothing to see here.
    • http://www.magicwilly.info
HTTPS app's don't work since update PHP5 + MySQL5
« Reply #4 on: January 27, 2007, 02:20:33 PM »
Quote from: "Snoopyski"
Hello,

I'm in version 7.1... It's a upgrade from version 6.0.1 to 7.1... And after the upgrade and everything works fine I do a upgrade for PHP5/MySQL5 because my eGroupWare apps (and others) need those upgrade...

Thanks,

Snoopyski


Ok.

Just to be clear, you upgrade 7.1 using the wiki howto ?

Before 7.1 you never had php5 or mysql5?
Regards,
William

IF I give advise.. It's only if it was me....

Offline Snoopyski

  • *
  • 141
  • +0/-0
    • http://www.serviceinfosg.com
HTTPS app's don't work since update PHP5 + MySQL5
« Reply #5 on: January 27, 2007, 02:29:55 PM »
Hello,

Thats wright

6.0.1 running in PHP 4.x and MySQL 4.x

Thanks,

Snoopyski

Offline william_syd

  • ****
  • 1,608
  • +0/-0
  • Nothing to see here.
    • http://www.magicwilly.info
HTTPS app's don't work since update PHP5 + MySQL5
« Reply #6 on: January 28, 2007, 09:12:56 AM »
The following will give an idea of how to transition from custom templates to default templates. This may assist SME updates in the future.

I installed 7.1 from CD in server only mode.

I followed the old wiki how to with one change.

Code: [Select]
rpm -Uvh --nodeps http://mirror.contribs.org/smeserver/releases/obsolete/7.0/smeupdates/i386/RPMS/php-domxml-4.3.9-3.15.i386.rpm
instead of
Code: [Select]
rpm -Uvh --nodeps http://mirror.contribs.org/smeserver/releases/7/updates/i386/RPMS/php-domxml-4.3.9-3.15.i386.rpm

Everything appears to work but not extensively tested.

Prior to using the default templates lets make sure they exist and contain the correct code.

What is the content of /etc/e-smith/templates/etc/php.ini/50PathsDirectories ?
Code: [Select]
[root@sme71 ~]# cat /etc/e-smith/templates/etc/php.ini/50PathsDirectories
include_path            = ".:/usr/share/pear-addons:/usr/share/pear"
doc_root                =
user_dir                =
extension_dir           = { if( -d "/usr/lib/php/modules" ) { "/usr/lib/php/modules"; } else { "/usr/lib/php4"; } }
enable_dl               = On
[root@sme71 ~]#


What is the content of /etc/e-smith/templates/etc/httpd/conf/httpd.conf/20LoadModule80PHP
Code: [Select]
[root@sme71 php4]# cat /etc/e-smith/templates/etc/httpd/conf/httpd.conf/20LoadModule80PHP
{
    return "" unless (exists $php{status} and $php{status} eq "enabled");

    return "LoadModule php5_module modules/libphp5.so" if ( -r "/usr/lib/httpd/modules/libphp5.so" );
    return "LoadModule php4_module modules/libphp4.so";
}
[root@sme71 php4]#


If they are the same as above proceed with the following..
Code: [Select]
# rpm -e --nodeps php-domxml
# yum --enablerepo=centosplus install php-xml
# rm /etc/e-smith/templates-custom/etc/php.ini/50PathsDirectories
# rm /etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf/20LoadModule80PHP
# expand-template /etc/php.ini
# expand-template /etc/httpd/conf/httpd.conf
# mysql_upgrade
# cat /usr/share/mysql/mysql_fix_privilege_tables.sql | /usr/bin/mysql --force --user=root --host=localhost --database=mysql
# signal-event post-upgrade
# signal-event reboot


You may also want to post the full output of...
Code: [Select]
/sbin/e-smith/audittools/templates
Regards,
William

IF I give advise.. It's only if it was me....