My problem is when I create a new Symfony 3.4 project with Composer.
I will enter the following command:
composer create-project symfony/website-skeleton projectName
When composer begins to create the project it will give me the following warnings:
PHP Warning: PHP Startup: Unable to load dynamic library 'php_openssl' (tried: C:\php\ext\php_openssl (The specified module could not be found.
), C:\php\ext\php_php_openssl.dll (The specified module could not be found.
)) in Unknown on line 0
Warning: PHP Startup: Unable to load dynamic library 'php_openssl' (tried: C:\php\ext\php_openssl (The specified module could not be found.
), C:\php\ext\php_php_openssl.dll (The specified module could not be found.
)) in Unknown on line 0
[Composer\Exception\NoSslException]
The openssl extension is required for SSL/TLS protection but is not available. If you can not enable the openssl extension, you can disable this error, at your own risk, by setting the 'disable-tls' option to true.
From my understanding, SSL is encryption for websites. At a judgment, I think the problem is composer cannot download Symfony securely.By telling me to try disabling TLS I think means trying to download Symfony insecurely since TLS is another form of encryption.
I have never had this problem with Composer before, I can not think of anything I have changed for this problem to occur.
If anyone has come across this problem or knows of any solutions that would be greatly appreciated because I cannot work on existing projects because of this.
EDIT:
The file path it is looking down is incorrect, it should check down "C:\wamp\bin\php\php7.2.1\ext" and not "C:\php\ext\" as this file path does not exist. I am unsure how to adjust this.
Go to that location and edit the file named: php.ini
Uncomment the line extension=php_openssl.dll by removing the semicolon at the beginning.
Restart your server
Locate your php.ini and adjust extension_dir according to your needs. You can find more info here.
Related
After getting my problem solved on this brilliant ansewer on how to get Pear running with success on Mac OS, I'm in trouble with the below errors while I'm trying to install and configure GRPC according to this google instruction
I understand that the problem is that the system is "Unable to load dynamic library 'grpc.so'"
Please can anybody give me a path on how to solve those issues or maybe show me what I'm doing wrong?
I'm running my localhost with PHP 8 served by MAMP
Thank you very much!!
composer require "grpc/grpc:^1.38"
PHP Warning: PHP Startup: Unable to load dynamic library 'grpc.so' (tried: /usr/lib/php/extensions/no-debug-non-zts-20180731/grpc.so (dlopen(/usr/lib/php/extensions/no-debug-non-zts-20180731/grpc.so, 0x0009): dlopen(): file not found: /usr/lib/php/extensions/no-debug-non-zts-20180731/grpc.so), /usr/lib/php/extensions/no-debug-non-zts-20180731/grpc.so.so (dlopen(/usr/lib/php/extensions/no-debug-non-zts-20180731/grpc.so.so, 0x0009): dlopen(): file not found: /usr/lib/php/extensions/no-debug-non-zts-20180731/grpc.so.so)) in Unknown on line 0
My solution is just create directory by run command
"mkdir /usr/local/lib/php/pecl"
In my case, I am using PHP 7.4 in MacOS. When I ran the
pecl install grpc
... command; it installed the .../20190902/grpc.so inside the current PHP version folder, so, I just copy-paste the grpc.so in the right path mentioned in console:
php#7.4/7.426_1/pecl/20190902/grpc.so --> /usr/local/lib/php/pecl/20190902/grpc.so
I hope this can be helpful to anybody!
Greeting developers, I want to learn laravel framework for my project. For that i follow some instruction in google to install it . i should have composer to install it. i try to download composer but there have some errors.the error is
The PHP exe file you specified did not run correctly:
C:\xampp\php\php.exe
The php.ini used by your command-line PHP is: C:\xampp\php\php.ini
A setting in your php.ini could be causing the problem: Either the 'extension_dir' value is incorrect or the dll does not exist.
Program Output:
PHP Warning: PHP Startup: Unable to load dynamic library 'php_mysql.dll' (tried: C:\xampp\php\ext\php_mysql.dll (The specified module could not be found.
), C:\xampp\php\ext\php_php_mysql.dll.dll (The specified module could not be found.
)) in Unknown on line 0
i try to resolve it. i check the php.ini file all looking good only. Is that because of i am using xampp server 7.2.0. I am really need a solution.
Looks like you made a mistake on your php.ini somewhere, this route:
C:\xampp\php\ext\php_php_mysql.dll.dll
... doesnt look at all correct. "php_php" ".dll.dll"
Greeting developers, I want to learn laravel framework for my project. For that i follow some instruction in google to install it . i should have composer to install it. i try to download composer but there have some errors.the error is:
The PHP exe file you specified did not run correctly:
C:\xampp\php\php.exe
The php.ini used by your command-line PHP is:
C:\xampp\php\php.ini
A setting in your php.ini could be causing the problem: Either the 'extension_dir' value is incorrect or the dll does not exist.
Program Output:
PHP Warning: PHP Startup: Unable to load dynamic library 'php_mysql.dll' (tried: C:\xampp\php\ext\php_mysql.dll (The specified module could not be found.
), C:\xampp\php\ext\php_php_mysql.dll.dll (The specified module could not be found.
)) in Unknown on line 0
i try to resolve it. i check the php.ini file all looking good only. Is that because of i am using xampp server 7.2.0. I am really need a solution.
Turning the comment by ArtisticPhoenix into an answer.:
I would say the opposite, you need to remove it (comment it out with ;php_mysql.dll) from the php.ini. Because its been deprecated and "removed" in PHP7. Also just looking at what you posted C:\xampp\php\ext\php_php_mysql.dll.dll php_php_mysql.dll.dll ? seems weird. Double you fun, 2 php_ and dll extensions... lol
ArtisticPhoenix Sep 29 '18 at 7:54
I tested it successful.
Heroku does not support PHP officially, so I needed to add PHP extensions manually. I have created a php.ini file on my main directory:
extension_dir = "/app/www/ext/"
extension=mongo.so
extension=oauth.so
extension=solr.so
All the extension files are on the ext folder which is on the main directory also. Mongo and OAuth extensions are working perfectly but when Solr added, apache is giving me the error below:
PHP Warning: PHP Startup: Unable to load dynamic library '/app/www/ext/solr.so' - /lib/libc.so.6: version `GLIBC_2.14' not found (required by /app/www/ext/solr.so) in Unknown on line 0
...and Solr extension is not working, obviously. I'm using Websolr add-on on Heroku and unfortunately neither Heroku nor Websolr is willing to help me about the issue. Heroku says "PHP is not officially supported," and Websolr says "ask Heroku."
So, any help will be appreciated.
It seems that there are no direct solutions but I have found a workaround. Instead of using solr.so extension, one can use open-source solr-php-client from here. It does note require a compiler, so no apache errors on Heroku.
I'm trying to use the Firebird extension in PHP. I've got the extension files (php_pdo_firebird.dll, php_interbase.dll) in my ext folder. I'm adding them in my php.ini file like so
...
[PHP_PDO_FIREBIRD]
extension=php_pdo_firebird.dll
[PHP_INTERBASE]
extension=php_interbase.dll
...
No errors are being thrown saying the extensions could not be loaded and yet whenever I print my phpinfo I don't see either of them listed. What am I missing here?
For what it's worth, I'm running PHP version 5.3.14 TS using Apache 2.2 on Windows 7.
Edit: It seems some errors are being logged, it's just that my error_log setting was being overwritten (for those seeing this, double check C:\Windows\Temp\php-errors.log). Now it's telling me the specified modules could not be found whenever the file clearly exists.
PHP Warning: PHP Startup: Unable to load dynamic library
'C:\Program Files (x86)\PHP\ext\php_pdo_firebird.dll' -
The specified module could not be found.
in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library
'C:\Program Files (x86)\PHP\ext\php_interbase.dll' -
The specified module could not be found.
in Unknown on line 0
Figured it out! Okay, first to get the basics out of the way:
Make sure the version of the DLLs matches your PHP version.
For those who use the Windows installer, for some reason it doesn't provide an option to include the Interbase and Firebird modules so you'll have to download the matching .zip file and copy them from the ext folder in there.
Double check for any typos, such as unescaped backslashes, in your extension_dir setting. This only applies if the value isn't "wrapped in quotation marks."
Now for the coup de grace. That error message is extremely misleading. At this point it should be finding your DLLs but it's missing one integral piece: fbclient.dll which can be found in the bin folder of your Firebird installation. Everywhere I read before said to place fbclient.dll in the ext folder but it only works if you put it in the root of your PHP folder.
Hope this helps future wayward souls :)