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

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...

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

Beanstalk php blue-green deployment is returning a 503

I'm doing a blue-green deployment to migrate my wordpress application to a new php version (from 7.0 to 7.3). Somehow after launching the new beanstalk environment the application returns a 503.
Error_log contains the following:
[pid 3502] (2)No such file or directory: AH02454:
FCGI: attempt to connect to Unix domain socket /run/php-fpm/www.sock (*) failed
[Thu Mar 26 10:55:01.252011 2020] [proxy_fcgi:error]
[pid 3502] [client 127.0.0.1:36944] AH01079: failed to make connection to backend: httpd-UDS
Anyone knows how to fix this issue? My Wordpress environment isn't using fcgi as far as I know.
I found out that my instances were still running php 7.0 instead of 7.3. The project had a ebextensions configuration file that installed a php70 package. This made it so the environment was using php 7.0 instead of that what was specified in the console.
So check your ebextensions config files.

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

PHP Startup: Timezone database is corrupt

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

Categories