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
Related
Hi I'm running a Linux server and I keep getting this error thrown as a notice.
PHP Warning: PHP Startup: Unable to load dynamic library
'/usr/lib/php/20151012/php_ldap.dll' -
/usr/lib/php/20151012/php_ldap.dll: No such file or directory in Unknown on line 0
Is a .dll still needed? I have the .so since it's on linux.
sudo apt-get install php-ldap solved it for me
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.
I have a VPS hosted by linode running ubunutu 12.04 LTS. I took a look at my error.log file and it looks like APC isn't loading.
I have
extension=apc.so
in my php.ini file and I've tried:
sudo apt-get purge php-apc
sudo apt-get install php-apc
but that didn't fix it. Here's the error I'm getting.
[28-Mar-2015 10:39:01 America/Los_Angeles] PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/20121212/apc.so' - /usr/lib/php5/20121212/apc.so: cannot open shared object file: No such file or directory in Unknown on line 0
I found a copy of the apc.so file here:
/usr/lib/php5/20090626/apc.so
I tried changing the php.ini file to:
extension=/usr/lib/php5/20090626/apc.so
and restarted apache
sudo service apache2 restart
but got this error instead
[28-Mar-2015 10:56:43 America/Los_Angeles] PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/20090626/apc.so' - /usr/lib/php5/20090626/apc.so: undefined symbol: zend_unmangle_property_name in Unknown on line 0
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...
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?