when I run the command
php artisan serve
it's run but it show to me this error
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/20151012/php_pdo_mysql.dll' - /usr/lib/php/20151012/php_pdo_mysql.dll: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/20151012/pdo_mysql.so' - /usr/lib/php/20151012/pdo_mysql.so: undefined symbol: pdo_parse_params in Unknown on line 0
This a PHP installation problem. I had this problem on my linux distro. Here's a few things you can do:
(Optional)
Uninstall PHP;
Reinstall PHP;
Edit php.ini . This is how you find path to edit php.ini on windows.
Now check if the above lines are uncomented:
extension=pdo.so
extension=pdo_mysql.so
If they are, its recommended to uninstall/reinstall PHP or manually install function on windows.
Remember to restart apache server after change php.ini file.
Related
I am receiving the following error when I download 'Composer-Setup.exe', double click the file and run the PHP Settings check.
Are there a couple of lines in the php.ini file that I need to fix? I am trying to run composer commands in my command prompt relating to an installation of Laravel on my Xampp server ('C:/Xampp/htdocs').
The PHP exe file you specified did not run correctly:
C:\Program Files (x86)\iis express\PHP\v7.0\php.exe
The php.ini used by your command-line PHP is: C:\Program Files (x86)\iis express\PHP\v7.0\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 'C:\Program Files (x86)\iis express\PHP\v7.0\ext\php_sqlsrv_72_ts.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)\iis express\PHP\v7.0\ext\php_mysql.dll' - The specified module could not be found.
in Unknown on line 0
I think the problem is from your php version, try upgrade your php version into 7++
just install the php_pdo_sqlsrv_81_ts_x64.dll and it will work for u i did the same thing
I get this error while installing composer in Windows.
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:
Warning: PHP Startup: Unable to load dynamic library 'ext\json.so' - The specified module could not be found.
in Unknown on line 0
I had to remove this line from php.ini , this was the problem
extension=json.so
I want to call php file form android app to fetch the data from the server so configure the apache 2.2.22 with php 5.2.13 and then i run the index page it run correctly and when try to run the project page it say server not found and in the error log file of the apache it show the following warnings:
PHP Warning: PHP Startup: Unable to load dynamic library 'C:/php/ext\\php_pdo_mssql.dll' - The specified module could not be found.\r\n in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library 'C:/php/ext\\php_pdo_oci.dll' - The specified module could not be found.\r\n in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library 'C:/php/ext\\php_pdo_oci8.dll' - The specified module could not be found.\r\n in Unknown on line 0
can anyone tell whats the issue.
Thanks in advance.
Do you have that .dll installed? If not then PHP will throw an error because it cannot load the proper libraries to use things like mysql_connect, etc.
try downloading the .dll again and seeing if it solves the problem.
What does your php.ini look like?
Try uncommenting this line:
;extension=php_mysql.dll
Save the ini and then restart Apache.
Try to put the libmysql.dll in c:/windows/system32 and then restart apache...
When I run a php script in console, I'm getting a following warning:
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/20090626/php_mcrypt.dll' - /usr/lib/php5/20090626/php_mcrypt.dll: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/20090626/php_curl.dll' - /usr/lib/php5/20090626/php_curl.dll: invalid ELF header in Unknown on line 0
The PHP script is correct, because it works on other comuputers.
I have an Ubuntu and server apache2
Check your php.ini currently you are trying to load a windows extension on a linux server.
Have a look in the folder /etc/php5/apache2/ for any file with a name like mcrypt and see if it references a dll file. If so, delete that file and restart apache
If you have ubuntu then sudo apt-get install php5-mcrypt will enable mcrypt for you
I am using centos 6. I have installed mongoDB using yum install mongo-10gen mongo-10gen-server. I started the mongo server using /etc/init.d/mongod start. I then added extension=mongo.so to my php.ini. I then restarted my apache server with /etc/init.d/httpd restart, and all are ok. but mongo php-driver is not working properly. when I checked my php version with php version, I got an error:
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/mongo.so' - /usr/lib64/php/modules/mongo.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: Directive 'safe_mode' is deprecated in PHP 5.3 and greater in Unknown on line 0
Could not open input file: version
How can I fix this problem?