Answer the question
In order to leave comments, you need to log in
How to configure PDO on linux?
Good afternoon, Installed
on debian apache + php + postgres ( lapp )
I want to transfer a working site from Windows, where postgres is used as a database
. When I get to the index page, I catch - include (PDO.php): failed to open stream: No such file or
directory copied from working version of Windows
This command:
grep -Hrv ";" /etc/php5 | grep -i "extension="
output
:
/etc/php5/apache2/php.ini:extension=php_pgsql.dll
/etc/php5/mods-available/curl.ini:extension=curl.so
/etc/php5/mods-available/xmlrpc.ini:extension=xmlrpc.so
/etc/php5/mods-available/mysqli.ini:extension=mysqli.so
/etc/php5/mods-available/pdo_odbc.ini:extension =pdo_odbc.so
/etc/php5/mods-available/ldap.ini:extension=ldap.so
/etc/php5/mods-available/pdo_pgsql.ini:extension=pdo_pgsql.so
/etc/php5/mods-available/pdo_mysql .ini:extension=pdo_mysql.so
/etc/php5/mods-available/mysqlnd.ini:extension=mysqlnd.so
/etc/php5/mods-available/odbc.ini:extension=odbc.so
/etc/php5/mods -available/pgsql.ini:extension=pgsql.so
/etc/php5/mods-available/mysql.ini:extension=mysql.so
[email protected]:/etc/apache2/sites-available$ ^C
[email protected] -debian:/etc/apache2/sites-available$ ^C
[email protected]:/etc/apache2/sites-available$
Given command:
php -i|grep PDO
Output:
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/20131226/pdo_mysql.so ' - /usr/lib/php5/20131226/pdo_mysql.so: undefined symbol: pdo_parse_params in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/20131226/pdo_odbc.so' - /usr/lib/php5/20131226/pdo_odbc.so: undefined symbol: pdo_parse_params in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/20131226/pdo_pgsql.so' - /usr /lib/php5/20131226/pdo_pgsql.so: undefined symbol: pdo_parse_params in Unknown on line 0
sudo apt-get install php5-psql did
I don’t understand, is there a reason for it - do I need to install something or change the path somewhere or add something in the configs?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question