1,033 questions
0 votes
2 answers
11k views
Problems with oci_connect ORA-12541: TNS:no listener
Yo guys. I have the following snippet: $conn = oci_connect('user', 'pass', '(DESCRIPTION= (ADDRESS_LIST= (ADDRESS=(PROTOCOL=TCP) (HOST=myhost.net)(PORT=1521) ) ) ...
3 votes
2 answers
3k views
Error: Class 'SplEnum' not found in PHP 7
I have a project with PHP 7.3, under Windows 10. I use the PHP from Xampp. I get the following error: Fatal error: Uncaught Error: Class 'SplEnum' not found in [...] for class BanLevel extends ...
102 votes
6 answers
323k views
How to install all required PHP extensions for Laravel?
I need to make my Ubuntu 16.04. Is there a way using the GUI or is the simplest way to do this by using terminal? I have already installed PHP 7.1, MariaDB. I need to enable: OpenSSL PHP Extension ...
0 votes
1 answer
671 views
Install 'Brotli' PHP extension on Windows
I'm looking to install Brotli php extension on my Windows Server 2022 server as it offer ~15% better compression performance than Gzip. But I really can't find a proper way to install it. Any ...
0 votes
1 answer
930 views
PHP 8.4.3 unable to load extension intl despite being uncommented and at the path specified
I am attempting to install the latest version of MediaWiki (1.43), and I am using PHP version 8.4.3. The OS is Windows Server 2022 Datacenter. Here is the error I get from command-line: PHP Warning: ...
10 votes
2 answers
18k views
What is the difference between Mysqlnd, PDO and PDO_Mysql extensions in php?
They seem to be the same thing, and yet different. I don't know which one is which: I know we can use PDO as new PDO() and use prepare() and query() methods, to fetch data from database. So, if this ...
5 votes
1 answer
1k views
Elastic Beanstalk compile php with ZipArchive enabled
I need to set my PHP project to compile php with ZipArchive enabled. I am running php7 on Elastic Beanstalk and need help on how to write a ".ebextensions" file to accomplish this task. Can someone ...
0 votes
0 answers
20 views
PHP extensions are not being installed correctly while using Docker [duplicate]
This is my first time trying to use Docker. I am trying to set up a PHP project that uses the mysqli PHP extension, but for some reason, it is not installed when I build my Docker container. I've been ...
1 vote
0 answers
345 views
PHP 7.3 Startup error pdo_pgsql.so: undefined symbol: pdo_throw_exception
I have a bitnami lampstack with php 7.3 and I am unable to enable pdo_pgsql. (it should be there by default, but it isn't.) Here is what I did: add php repository sudo add-apt-repository ppa:ondrej/...
0 votes
1 answer
60 views
how can I get the result of openssl_public_decrypt?
The result is "Decrypted data is not a string", I don't know why #include "php.h" #include "ext/standard/info.h" #include "ext/standard/php_string.h" #include &...
1 vote
1 answer
11k views
php_oci8.dll - Unable to load dynamic library
I have Windows 7 64bit, IIS 7, and installed PHP on IIS. I enabled php_oci8.dll for Oracle connection, but I'm getting the following error: PHP Warning: PHP Startup: Unable to load dynamic library '...
17 votes
6 answers
41k views
phpredis extension doesn't work, unable to load 'redis.so'
I installed nginx, php, php-fpm, php-pecl-redis by yum. All of them work but the last one. When I run /usr/sbin/php-fpm, I got this: PHP Warning: PHP Startup: Unable to load dynamic library '/usr/...
1 vote
1 answer
388 views
To enable extensions, verify that they are enabled in your .ini files: - CyberPanel
When I try intall composer, this error shows: To enable extensions, verify that they are enabled in your .ini files I'm using CyberPanel so I run this command, but got error. sudo apt-get install ...
4 votes
3 answers
4k views
Why does Composer (PHP) allow me to specify "ext-json" but not other extensions like "ext-gmp" during "composer require"?
When I use Composer to run composer require ext-gmp, without a composer.json file or composer.lock file in the current directory, I get the following error: Could not find a matching version of ...
1 vote
1 answer
565 views
Unable to install openswoole extension in php 8.3.6
I am trying to built and extension of openswoole from more than 13 hours but getting the same error again and again. PHP Warning: PHP Startup: Unable to load dynamic library 'openswoole.so' (tried: /...