Date: Sun, 27 Aug 2006 05:44:14 -0700 From: "Muhammad Omer Iqbal" <omer@omeriqbal.com> To: "'Muhammad Omer Iqbal'" <omer@omeriqbal.com>, <freebsd-questions@freebsd.org> Subject: RE: PHP5 and MySQL Message-ID: <001c01c6c9d6$824dd100$0202a8c0@rakaposhi>
next in thread | raw e-mail | index | archive | help
Sorry, typo. >> I recently installed Apache 2.2, so it is as updated a ports collection as I could get. I meant to say I recently installed FreeBSD 6.0. -----Original Message----- From: Muhammad Omer Iqbal [mailto:omer@omeriqbal.com] Sent: Sunday, August 27, 2006 5:42 AM To: 'freebsd-questions@freebsd.org' Subject: RE: PHP5 and MySQL I am sorry, being a newbie, I do not know what this means: >> Please don't top post! >> What version issue are you referring to? As for this: >> 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? I recently installed Apache 2.2, so it is as updated a ports collection as I could get. I did make config. Even if I just do make, or make install, it runs config first and then does the install. However, like I said, I did make config and then did a remake, that did not really work - my PHP make is still dated Aug 22. -----Original Message----- From: Gerard Seibert [mailto:gerard@seibercom.net] Sent: Sunday, August 27, 2006 5:26 AM To: freebsd-questions@freebsd.org Cc: Muhammad Omer Iqbal Subject: Re: PHP5 and MySQL 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@seibercom.net 'Marijauna' was the Mexican name given to cannabis.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?001c01c6c9d6$824dd100$0202a8c0>