LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-01-2004, 09:58 AM   #1
dominant
Member
 
Registered: Jan 2004
Posts: 409

Rep: Reputation: 30
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?
 
Old 07-01-2004, 04:56 PM   #2
ID10T_error
LQ Newbie
 
Registered: Jun 2004
Location: Minnesota
Distribution: fc2, rh8
Posts: 18

Rep: Reputation: 0
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.
 
Old 07-02-2004, 04:21 AM   #3
dominant
Member
 
Registered: Jan 2004
Posts: 409

Original Poster
Rep: Reputation: 30
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?
 
Old 07-02-2004, 09:38 AM   #4
ID10T_error
LQ Newbie
 
Registered: Jun 2004
Location: Minnesota
Distribution: fc2, rh8
Posts: 18

Rep: Reputation: 0
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.
 
Old 07-03-2004, 06:39 AM   #5
dominant
Member
 
Registered: Jan 2004
Posts: 409

Original Poster
Rep: Reputation: 30
I think that is a compilation error and if php was compiled before mysql or not.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
cannot connect to mysql database from php rocordial Linux - Software 2 08-21-2005 03:05 PM
why cant i connect to my database? Alexander.s Programming 2 05-02-2005 02:12 PM
php trying to connect to local sql, error no such database feetyouwell Programming 11 02-08-2005 01:25 PM
[SOLVED] PHP safe mode, Chroot, Apache, Gallery gypsy_rabbi Linux - Security 2 10-06-2004 04:45 PM
PHP multiple self submissions & database updates mounters Programming 6 03-13-2002 06:24 AM


All times are GMT -5. The time now is 07:59 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration