rryqszq4 / ngx-php

ngx-php - Embedded php7 or php8 scripting language for nginx module. Mainline development version of the ngx-php.
BSD 2-Clause "Simplified" License
627 stars 56 forks source link

php 7.2 how do I compile pdo mysql, i haven't tried everything #35

Open fatalafitili opened 5 years ago

fatalafitili commented 5 years ago

Hello,

https://github.com/rryqszq4/ngx_php7 . I'm doing installations this way after

i did add php pdo after I'm doing installations this way but no have driver php pdo.

I haven't tried all the insertion methods,

how can I do that.

it could work for other people

can u help me @rryqszq4 ?

rryqszq4 commented 5 years ago

@fatalafitili please show me how installed for you. If source code install, maybe you can add parameter When installing php.

$ wget 'http://php.net/distributions/php-7.2.14.tar.gz'
$ tar xf php-7.2.14.tar.gz
$ cd php-7.2.14

$ ./configure --prefix=/path/to/php \
--enable-embed \
--with-mysqli=mysqlnd \
--with-pdo-mysql=mysqlnd \

$ make && make install
fatalafitili commented 5 years ago

This worked thanks @rryqszq4