can't load the Doctrine libriles and PDO drivers - doctrine

I'm using Win 7, Apache 2.2 and PHP 5.4.4.
I want to add doctrine lib and PDO to my local server.
PHP install path: C:\php\
doctrine lib path: C:\php\extras\doctrine-dbal
PDO drivers path: C:\php\ext
Apache2.2 path: C:\Apache
php.ini
; Windows: "\path1;\path2"
include_path = ".;C:\php\extras;C:\php\extras\doctrine-dbal"
extension=php_pdo_mssql.dll
extension=php_pdo_mysql.dll
;extension=php_pdo_oci.dll
extension=php_pdo_odbc.dll
extension=php_pdo_pgsql.dll
extension=php_pdo_sqlite.dll
extension=php_pgsql.dll
phpinfo() image
web app give below error
Warning: require_once(Doctrine/Common/ClassLoader.php): failed to open stream: No such file or directory in C:\Apache\htdocs\stack\UMS\classes\class.dbextractor.php on line 2
Fatal error: require_once(): Failed opening required 'Doctrine/Common/ClassLoader.php' (include_path='.;C:\php\pear') in C:\Apache\htdocs\stack\UMS\classes\class.dbextractor.php on line 2
how can i change the include path for doctrine and PDO drivers in php.ini file

Related

Imagick extension installation issue xampp

I am trying to install Imagick extension on windows 10 with PHP version 8.0.3 but getting below error
PHP Warning: PHP Startup: Unable to load dynamic library
'php_imagick.dll' (tried: D:\xampp\php\ext\php_imagick.dll (The
specified module could not be found),
D:\xampp\php\ext\php_php_imagick.dll.dll (The specified module could
not be found)) in Unknown on line 0
Windows : 10 X64
PHP version : 8.0.3
Steps to reproduce:
I have added imagick.dll file in xampp\php\ext directory
Added CORE_RL_.dll and IM_MOD_RL_.dll in xampp\php folder.
Added extension=php_imagick.dll in xampp\php\php.ini file
Restarted xammp
Getting below error on webpage
enter image description here
In the PHP error log below error is logged.
PHP Warning: PHP Startup: Unable to load dynamic library 'php_imagick.dll'
First download this: https://windows.php.net/downloads/pecl/releases/imagick/3.7.0/php_imagick-3.7.0-8.0-ts-vs16-x64.zip
Extract from php_imagick-….zip the php_imagick.dll file, and save it to the ext directory of your PHP installation
Extract from php_imagick-….zip all the other DLL files and save them to the PHP root directory (where you have php.exe)
Add this line to your php.ini file:
extension=php_imagick.dll
Restart the Apache/NGINX Windows service (if applicable)

Unable to install composer in xampp php 7.3.9 in windows 10

Iam unable to install composer in my windows system with Xampp installed with PHP version 7.3.9
Please find the error message.
"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_pdo.dll' (tried: C:\xampp\php\ext\php_pdo.dll (%1 is not a valid Win32 application.), C:\xampp\php\ext\php_php_pdo.dll.dll (The specified module could not be found.)) in Unknown on line 0
PHP Warning: Module 'pdo_sqlite' already loaded in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library 'php_pdo_sqlsrv_73_ts_x86.dll' (tried: C:\xampp\php\ext\php_pdo_sqlsrv_73_ts_x86.dll (%1 is not a valid Win32 application.), C:\xampp\php\ext\php_php_pdo_sqlsrv_73_ts_x86.dll.dll (The specified module could not be found.)) in Unknown on line 0
PHP Warning: Module 'openssl' already loaded in Unknown on line 0
Please See the Inline comments for errors and Warnings
1A setting in your php.ini could be causing the problem: Either the 'extension_dir' value is incorrect or the dll does not exist.
Answer: Checked the extension_dir(extension_dir="C:\xampp\php\ext"). Path was correct So I checked for the below warnings.
Program Output: PHP Warning: PHP Startup: Unable to load dynamic library 'php_pdo.dll' (tried: C:\xampp\php\ext\php_pdo.dll (%1 is not a valid Win32 application.),
Answer: Commented ;extension=php_pdo.dll
C:\xampp\php\ext\php_php_pdo.dll.dll (The specified module could not be found.)) in Unknown on line 0 PHP Warning: Module 'pdo_sqlite' already loaded in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library 'php_pdo_sqlsrv_73_ts_x86.dll' (tried: C:\xampp\php\ext\php_pdo_sqlsrv_73_ts_x86.dll (%1 is not a valid Win32 application.),
Answer: Removed these extensions which I have used for connecting to the SQL server
C:\xampp\php\ext\php_php_pdo_sqlsrv_73_ts_x86.dll.dll (The specified module could not be found.)) in Unknown on line 0 PHP
Answer: Removed these extensions which I have used for connecting to the SQL server
Warning: Module 'openssl' already loaded in Unknown on line 0
Answer: Openssl was loaded twice, Comment one in php.ini file
Also please check that the composer is already installed in your program files
Thanks
Vysakh

How to fix " No such file or directory"error when I access to the home page

I downloaded a laravel project from a shared hosting and I want to edit him in my localhost but when I type out the home adress:
localhost:8000/
it shows me those two errors :
Warning: require_once(C:\Users\Rafaa\Downloads\Compressed.idea/public/index.php): failed to open stream: No such file or directory in C:\Users\Rafaa\Downloads\Compressed.idea\server.php on line 21
Fatal error: require_once(): Failed opening required 'C:\Users\Rafaa\Downloads\Compressed.idea/public/index.php' (include_path='C:\xampp\php\PEAR') in C:\Users\Rafaa\Downloads\Compressed.idea\server.php on line 21
When you clone or download a project from somewhere, there may be a case that many dependencies like codes or library files are missing. To solve this
Open the terminal
Go to the directory where the project folder is situated.
RUN composer install
If it still does not work,
RUN composer update
That should do the trick.

"How to Fix Xampp Error with Ioncube Loader"

I've installed Xampp on windows 10 laptop, my php files needs ioncube loader which i've installed
but there is a problem after copying ioncube_loader_win_5.6.dll into php/ext folder and made changes to php.ini file where i need to put a line "zend_extension = "C:\xampp\php\ext\ioncube_loader_win_5.6.dll"
after doing this my phpmyadmin page don't work gives the below error
Warning: require_once(/byte_safe_strings.php): failed to open stream: No such file or directory in on line 57
Fatal error: require_once(): Failed opening required '/byte_safe_strings.php' (include_path='C:\xampp\php\PEAR') in on line 57
if i remove the ioncube_loader_win_5.6.dll file, the phpmyadmin page works
can anyone help me sort this problem?

Can't install "Composer Dependency Manager for PHP"

root#rushan-PC:~# curl -sS https://getcomposer.org/installer | php
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/20090626/gd.so' - /usr/lib/php5/20090626/gd.so: 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/mcrypt.so' - /usr/lib/php5/20090626/mcrypt.so: 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/mysql.so' - /usr/lib/php5/20090626/mysql.so: 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/mysqli.so' - /usr/lib/php5/20090626/mysqli.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: Module 'PDO' already loaded in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/20090626/pdo_mysql.so' - /usr/lib/php5/20090626/pdo_mysql.so: cannot open shared object file: No such file or directory in Unknown on line 0
#!/usr/bin/env php
Some settings on your machine make Composer unable to work properly.
Make sure that you fix the issues listed below and run this script again:
The suhosin.executor.include.whitelist setting is incorrect.
Add the following to the end of your `php.ini` or suhosin.ini (Example path [for Debian]: /etc/php5/cli/conf.d/suhosin.ini):
suhosin.executor.include.whitelist = phar
The php.ini used by your command-line PHP is: /etc/php5/cli/php.ini
If you can not modify the ini file, you can also run `php -d option=value` to modify ini values on the fly. You can use -d multiple times.
Terminal gives me this error. Before that, I installed php packages, there was some error
"Unable to correct problems, you have delayed (held) broken packages." But I can install it with aptitude, instead of apt-get. Perhaps, this dynamic libraries errors because of Held packages? Or something...Please, I need some help there:(. Sorry, I'm just a beginner in Linux and programming. And sorry for my English, cuz I'm from Uzbekistan :(
According to information in your error, you should edit your php.ini file (/etc/php5/cli/php.ini) and add the following line at the end
suhosin.executor.include.whitelist = phar
You should edit your php.ini file (/etc/php5/cli/php.ini) and add the following line before the END: keywords.
suhosin.executor.include.whitelist = phar

Resources