Ik heb CentOS 4.4 met Apache 2.0.5.9 met php 5.2.3 gebuild met de volgende opties:
PHP werkt perfect, MySQL ook, via apache. Maar nu wil ik via de commandline een php script aanroepen dus zoiets als php script.php.
Maar nu heeft PHP opeens geen mysql support meer.
Alsik php -m doe krijg ik:
Ook als ik php met mijn huidige INI file laad, krijg ik nogsteeds geen mysql. Hoe kan ik nou toch mysql support krijgen over commandline?
code:
1
| ./configure --with-apxs2=/usr/local/apache/bin/apxs --prefix=/usr/local/apache/php --with-mysql --with-config-file-path=/usr/local/apache/php --enable-force-cgi-redirect --disable-cgi --with-zlib --with-gettext --with-gd --enable-bcmath --enable-ftp --enable-mbstring --with-dom --with-ttf --enable-sockets |
PHP werkt perfect, MySQL ook, via apache. Maar nu wil ik via de commandline een php script aanroepen dus zoiets als php script.php.
Maar nu heeft PHP opeens geen mysql support meer.
Alsik php -m doe krijg ik:
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
| [ PHP Modules] ctype date dom filter hash iconv json libxml pcre PDO pdo_sqlite posix Reflection session SimpleXML SPL SQLite standard tokenizer xml xmlreader xmlwriter |
Ook als ik php met mijn huidige INI file laad, krijg ik nogsteeds geen mysql. Hoe kan ik nou toch mysql support krijgen over commandline?