Control Web Panel
WebPanel => PHP => Topic started by: KingBlack on June 15, 2017, 04:46:14 PM
-
checking for sigprocmask... yes
checking for sigwaitinfo... yes
checking for sigtimedwait... yes
checking for siginfo_t... yes
checking whether to enable PDO support... yes
checking for PDO_DBLIB support via FreeTDS... no
checking for Firebird support for PDO... no
checking for MySQL support for PDO... yes
checking for MySQL UNIX socket location... /var/lib/mysql/mysql.sock
checking for mysql_config... /usr/bin/mysql_config
checking for mysql_commit in -lmysqlclient... no
checking for mysql_commit in -lmysqlclient... (cached) no
configure: error: PDO_MYSQL configure failed, MySQL 4.1 needed. Please check config.log for more information.
Configure DONE!
####################
make: *** No targets specified and no makefile found. Stop.
Make DONE!
####################
make: *** No rule to make target `install'. Stop.
Make Install DONE!
####################
PHP Rebuild Completed
#########################
i get this error when changing the php version to 7+ and enabling PDO. How can i fix?
-
Simply replace flag --with-pdo-mysql=/usr with --with-pdo-mysql=mysqlnd ;)
-
where i can change that in PHP Version Switcher v2?
-
Any ideas?
Having the same issue.
-
If you have this problem, for example, using the switcher to have php 7.2. just go to this directory:
/usr/local/cwpsrv/htdocs/resources/conf/php_switcher
and find the .ini file that correspond with the php version you want to install, in this example will be 7.2.ini
find the line --with-pdo-mysql=/usr and replace /usr with mysqlnd
result: --with-pdo-mysql=mysqlnd
save changes and try again