PHP5 and MySQL
Gerard Seibert
gerard at seibercom.net
Sun Aug 27 12:25:57 UTC 2006
Muhammad Omer Iqbal wrote:
> I have gone through the mysql and php docs and there are some possible
> solutions listed, none of those worked. Of course, I tried looking for a
> solution first before sending it here, this is like one of the last resort
> places, don't want to bug people with something trivial or easily fixable.
>
> I can post the problem here, but again, I was not too sure if this is the
> right place to post the questions. Anyhow, here it is.
>
> PHP5 documentation says that mysql and mysqli libraries are no longer
> shipped with PHP and refers to MySQL page and documentation on how to
> install PHP support for MySQL. The precise solution is here:
> http://dev.mysql.com/doc/refman/5.0/en/php-mysql-mysqli.html
>
> I first tried to enable only mysql, and then both mysql and mysqli. I get
> the same error in both cases on my web-server (MySQL is installed on the
> same server too):
>
> Fatal error: Class 'mysqli' not found in
> /usr/local/www/apache22/data/test.php on line 7
>
> Looking through phpinfo, I do not find mysql or mysqli installed, even
> though I have enabled, remade and reinstalled both MySQL and PHP5. In fact,
> I think that my PHP5 is no longer remade, it just reconfigures it and
> reinstalls it because the build date shows as Aug 22 even though I did it
> today and my server date shows as Aug 27. I installed both of these using
> the ports collection, but then I had to manually download MySQL because of
> versioning issues, and untar and install it using the command line.
Please don't top post!
What version issue are you referring to? I am assuming that you
installed both MySQL and PHP5 from an updated ports collection. Did you
run: 'make config' in the PHP5 directory before building the port?
--
Gerard Seibert
gerard at seibercom.net
'Marijauna' was the Mexican name given to cannabis.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 2580 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20060827/7c568a23/smime.bin
More information about the freebsd-questions
mailing list