[LBo] PHP MySQL question
Tim George
tim at sflnet.com
Tue Apr 24 13:51:18 CEST 2007
Jisao wrote:
> However, when I try to work with a web page connecting to the MySQL
> server, I get this error:
> "Fatal error: Call to undefined function mysql_connect() in
> /var/www/createmovie.php on line 4"
>
> Apparently, it would mean that I don't have mysql module installed.
It looks like you need to enable the module.
This may be as simple as dpkg-reconfigure php4-mysql
Or find your php.ini file:
locate php.ini
And uncomment
extension=mysql.so
Sorry I can't test this right now so I can't be more specific.
Often installing a package like php4-mysql requires an extra configuration step.
This is because the package can depend on (for example) Apache 1.3 *or* Apache 2
which require slightly different configurations.
Additional configuration requirements will sometimes be detailed in
usr/share/doc/<packagename>/Readme.Debian or similar.
More information about the QnA
mailing list