LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Chroot & php cannot connect to tyhe database (https://www.linuxquestions.org/questions/linux-newbie-8/chroot-and-php-cannot-connect-to-tyhe-database-199885/)

dominant 07-01-2004 08:58 AM

Chroot & php cannot connect to tyhe database
 
I hace installed chroot jail /chroot is the document root for the apache.

When i run a script (php) to reach the database (localhost) it says

Can't connect to local MySQL server through socket /var/tmp/mysql.sock


Do you know what is wrong?

ID10T_error 07-01-2004 03:56 PM

I remember running into a similar problem a while ago, and if I remember correctly, I wasn't using the correct shared libraries. If you compiled these yourself, then I would start by checking a LAMP tutorial and see if you missed any command line parameters.
If it is a distro config, then check the mysql security permissions, most importantly the host for the user you are trying to connect with. Hope that atleast somewhat points you in the right direction.

dominant 07-02-2004 03:21 AM

The problem is on a slackware 9.
The mysql was compiled manually (not by me). I have to administer that system now and i realized that php-mysql connection is off.

Do you know any relevant tutorial for Slack mysql and php?

ID10T_error 07-02-2004 08:38 AM

I don't know one for slack in particular, but there are plenty of LAMP (Linux, Apache, MySQL, PHP) configuration tutorials, I believe there is one on the php.net site. Google should come up with quite a few though too. There shouldn't be too much alteration for Slack either, other than a few path changes.

dominant 07-03-2004 05:39 AM

I think that is a compilation error and if php was compiled before mysql or not.


All times are GMT -5. The time now is 12:56 AM.