LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-20-2005, 02:01 PM   #1
rocordial
LQ Newbie
 
Registered: May 2004
Location: Romania, Europe
Distribution: Slackware 8.1
Posts: 28

Rep: Reputation: 15
cannot connect to mysql database from php


Hello

I use Fedora Core 3, fresh installation after system crash.

When I access my website, that worked before, I cannot access the databases from php.

I get this error:

Aug 20 10:39:22 linuxweber kernel: audit(1124523562.084:0): avc: denied { write } for pid=2665 exe=/usr/sbin/httpd name=mysql.sock dev=dm-0 ino=1295621 scontext=root:system_r:httpd_t tcontext=rootbject_r:var_lib_t tclass=sock_file

I can connect directly to the mysql server with the mysql client with the user and password the php script uses.

Any suggestion will be most appreciate.

Thank you.
 
Old 08-21-2005, 11:02 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981
that is SELinux poking it's nose in. there should be some redhat-config-security utility or somethign that will handle the context permissions there. Personally i've just turned it off..
 
Old 08-21-2005, 02:05 PM   #3
rocordial
LQ Newbie
 
Registered: May 2004
Location: Romania, Europe
Distribution: Slackware 8.1
Posts: 28

Original Poster
Rep: Reputation: 15
thank you acid_kewpie for your assistence.

Unfortunately I lost my patience in the process and I've installed slackware 10 which I'm used to. I had to work a bit on settings but it works well.

Thank you again.
 
  


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
Php search mysql database jamesjoy Programming 4 12-02-2005 07:28 AM
Unable to connect to (working) mySQL database rcs1000 Linux - Software 1 10-16-2005 07:23 AM
cannot connect to mysql database externally lsimon4180 Linux - Software 17 03-02-2005 12:28 PM
cannot connect to mysql database mrosati Linux - Software 19 07-15-2004 02:40 PM
php won't write in mysql database!! Boby Programming 5 04-26-2004 04:20 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:12 PM.

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