PHP Startup: Timezone database is corrupt - php

I have juste updated my CentOS server. PHP is now at the 5.2.10 version (php-5.2.10-1.el5.remi.i386), and I have installed PECL Runkit. tzdata was updated too (tzdata-2009i-2.el5.noarch). Since the update, Apache refuse to start
Here is the httpd/error.log
[Wed Jul 08 11:40:21 2009] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Wed Jul 08 11:40:24 2009] [notice] Digest: generating secret for digest authentication ...
[Wed Jul 08 11:40:24 2009] [notice] Digest: done
PHP Strict Standards: PHP Startup: It is not safe to rely on the system's timezone settings. Please use the date.timezone setting, the TZ environment variable or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Berlin' for 'CEST/2.0/DST' instead in Unknown on line 0
PHP Fatal error: PHP Startup: Timezone database is corrupt - this should never happen! in Unknown on line 0
When I remove runkit, all run fine. But I need this tools.
Best regards, Cédric

I install runkit without using yum, and it's fine
cvs -d :pserver:cvsread#cvs.php.net:/repository checkout pecl/runkit
2ième étape: compiler et installer:
cd pecl/runkit
pecl build package.xml
./configure
make
make install
add a /etc/php.d/runkit.ini
extension=runkit.so
add this in php.ini
[runkit]
runkit.internal_override = On

Related

Enable imap for PHP 7.4.14 - BIG SUR

i am trying to enable my local development environment, and i have the Apache, PHP and MariaDB already installed in my Big Sur Mac. (all installed with brew)
But the imap php extension does not work and that's because the PHP is not loading the extension.
The Apache error_log throws:
PHP Warning: PHP Startup: Unable to load dynamic library 'imap'
(tried: /usr/local/lib/php/pecl/20190902/imap (dlopen(/usr/local/lib/php/pecl/20190902/imap,
9): image not found), /usr/local/lib/php/pecl/20190902/imap.so
(dlopen(/usr/local/lib/php/pecl/20190902/imap.so, 9): image not found)) in Unknown on line 0
[Sun Jan 17 09:30:08.936003 2021] [mpm_prefork:notice] [pid 2187] AH00163: Apache/2.4.46
(Unix) PHP/7.4.14 configured -- resuming normal operations
[Sun Jan 17 09:30:08.936124 2021] [core:notice] [pid 2187] AH00094: Command line:
'/usr/local/opt/httpd/bin/httpd -D FOREGROUND'
brew list command throws:
imap-uw, php#7.4, ........
Thanks in advance guys
MacOS BigSur 11.1
The extension is right here (with instructions):
shivammathur Homebrew Extensions

configuring xdebug 2.6 with php 7.2 on osx

I'm trying to install xdebug but after a lot of effort still can't, I've tried this https://medium.com/#roberto.b/how-to-install-xdebug-with-my-php-7-on-my-macosx-f85dbac91e59 and a lot of stackoverflow question and still nothing,
I'm doing something wrong but can't figure out whats, any help on this please...
This is what i get on my error.log
[Sat Apr 07 19:21:35.785293 2018] [so:warn] [pid 28523] AH01574: module php7_module is already loaded, skipping
Failed loading /usr/lib/php/extensions/no-debug-non-zts-20160303/xdebug.so: dlopen(/usr/lib/php/extensions/no-debug-non-zts-20160303/xdebug.so, 9): Symbol not found: _zend_pass_function
Referenced from: /usr/lib/php/extensions/no-debug-non-zts-20160303/xdebug.so
Expected in: flat namespace
in /usr/lib/php/extensions/no-debug-non-zts-20160303/xdebug.so
Failed loading /usr/local/php5/lib/php/extensions/no-debug-non-zts-20170718/opcache.so: dlopen(/usr/local/php5/lib/php/extensions/no-debug-non-zts-20170718/opcache.so, 9): Symbol not found: _zend_empty_string
Referenced from: /usr/local/php5/lib/php/extensions/no-debug-non-zts-20170718/opcache.so
Expected in: flat namespace
in /usr/local/php5/lib/php/extensions/no-debug-non-zts-20170718/opcache.so
[Sat Apr 07 19:21:35.904894 2018] [mpm_prefork:notice] [pid 28523] AH00163: Apache/2.4.28 (Unix) PHP/7.0.2 configured -- resuming normal operations
[Sat Apr 07 19:21:35.905015 2018] [core:notice] [pid 28523] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND'
hope you can help guys!
Regards!
I managed to have it working with instructions from the official Xdebug site.
It provides tailored installation instructions based on your current php setup, retrieved from phpinfo() or from php -i : https://xdebug.org/wizard.php
The instructions you will get are almost the same as the one described in the article you mentioned, but the versions are different. FYI, my setup is PHP 7.2, Xdebug 2.6.0 on Mac OS X.
Good luck.
FYI, if you have this error, you have to check your cli php version versus your browser or apache php version, that's where i have problems and after that it's easy to fix so regards for helping me.

AH01215: Failed loading /usr/lib64/php56/modules/ioncube_loader_lin.so: cannot open shared object file: No such file or directory:

I constantly am seeing these error messages in my log files.
nationalsurvivorsnetwork.co.uk [Mon Jan 30 15:17:43 2017] [error] [client 77.99.83.122:47903] AH01215: Failed loading /usr/lib64/php56/modules/ioncube_loader_lin.so: /usr/lib64/php56/modules/ioncube_loader_lin.so: cannot open shared object file: No such file or directory:
It's a Joomla installation with JomSocial professional. Details below.
Setting Values:
PHP Built On Linux web229.extendcp.co.uk 2.6.32-642.6.2.el6.x86_64 #1 SMP Wed Oct 26 06:52:09 UTC 2016 x86_64
Database Version 5.5.54
Database Collation utf8_general_ci
Database Connection Collation utf8mb4_general_ci
PHP Version 7.0.14
Web Server Apache/2.4.23 (Unix)
WebServer to PHP Interface cgi-fcgi
Joomla! Version Joomla! 3.6.5 Stable [ Noether ] 1-December-2016 22:46 GMT
Joomla! Platform Version Joomla Platform 13.1.0 Stable [ Curiosity ] 24-Apr-2013 00:00 GMT
Can someone please help me identify what's causing this error?
Double check the extended file permissions in the Loader location:
ls -Z /usr/lib64/php/modules/
Change the security context of the file appropriately:
sudo chcon system_u:object_r:lib_t:s0 /usr/lib64/php/modules/ioncube_loader_lin_7.0.so

Apache: Unable to load dynamic library

Apache 2.4.4 is not loading two modules. The modules exist in the directory where it is looking.
I'm using Windows 8.1, PHP 5.4.12, and a WAMPServer installation.
[Thu Oct 20 19:12:33.092619 2016] [mpm_winnt:notice] [pid 6888:tid 548] AH00418: Parent: Created child process 3172
PHP Warning: PHP Startup: Unable to load dynamic library 'm:/wamp/bin/php/php5.4.12/ext/php_pdo_pgsql.dll' - The specified module could not be found.\r\n in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library 'm:/wamp/bin/php/php5.4.12/ext/php_pgsql.dll' - The specified module could not be found.\r\n in Unknown on line 0
[Thu Oct 20 19:12:33.319122 2016] [mpm_winnt:notice] [pid 3172:tid 448] AH00354: Child: Starting 150 worker threads.
My PHP, Apache, and PostgreSQL are all 64 bit.
I added the directory (m:\PostgreSQL\9.3\lib) that includes libpq.dll to my Path and then restarted but it didn't help.
I also tried copying libpq.dll into the Apache bin directory.
Are there any other dependencies?
I fixed it by adding the PostgreSQL bin directory to the Path (Environmental Variable).
for my case PHP 7.2.26 , it was under:
;;;;;;;;;;;;;;;;;;;;;;
; Dynamic Extensions ;
;;;;;;;;;;;;;;;;;;;;;;
on php.ini such that ;extension=pgsql becomes:
extension=pgsql

Impossible to load any php extensions on Apache after upgrading to Mavericks

After upgrading to Mavericks, and reinstalling both intl and apc with brew I still can't load any php extensions (and specifically those two).
I keep getting the following error without any idea how to move from there:
Wed Oct 30 18:19:15 2013] [notice] Apache/2.2.24 (Unix) PHP/5.4.17 DAV/2 mod_ssl/2.2.24 OpenSSL/0.9.8y mod_perl/2.0.7 Perl/v5.16.2 configured -- resuming normal operations
[Wed Oct 30 18:23:35 2013] [notice] caught SIGTERM, shutting down
[Wed Oct 30 18:23:36 2013] [warn] Init: Session Cache is not configured [hint: SSLSessionCache]
httpd: Could not reliably determine the server's fully qualified domain name, using Julien.local for ServerName
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/extensions/no-debug-non-zts-20090626/intl.so' - dlopen(/usr/lib/php/extensions/no-debug-non-zts-20090626/intl.so, 9): image not found in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/extensions/no-debug-non-zts-20090626/apc.so' - dlopen(/usr/lib/php/extensions/no-debug-non-zts-20090626/apc.so, 9): image not found in Unknown on line 0
Do you have any idea where this can be coming from?
Found out that the php extension folder is now to be /usr/lib/php/extensions/no-debug-non-zts-20100525/ instead of /usr/lib/php/extensions/no-debug-non-zts-20090626. But php.ini hadn't been updated to point to the new extension folder.
after updating from php 5.3 to php 5.4 apc stopped loading than i installed apc version 3.1.9 (as they say it is last good version) manually like:
cd /usr/local/src/
wget http://pecl.php.net/get/APC-3.1.9.tgz
tar -xvf APC-3.1.9.tgz
cd APC-3.1.9
/usr/bin/phpize
./configure -enable-apc -enable-apc-mmap -with-apxs2=/usr/sbin/apxs -with-php-config=/usr/bin/php-config
make
make install
service httpd restart
and after that apc was not loading still than I looked for extension dir directive in php.ini and it was pointing to old dir than I checked php exstensions dir and found there new folder named no-debug-non-zts-20100525. so I fixed php.ini extension_dir directive for folder with new no-debug-non-zts-20100525 folder and it worked...

Categories