Re: MySQL is not working on PHP with Fedora 16

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 01/23/2012 01:22 PM, Fedora Linux wrote:
> # setsebool httpd_can_network_connect_db on
> 
> I have just tried, but still does not work:
> 
> Can't connect to local MySQL server through socket 
> '/var/lib/mysql/mysql.sock' (13)
> 
> Any other idea?
> 
> Connecting manually it works
> 
What AVC's are you seeing.  Most likely mysql is not running with the
correct context.

ps -eZ | grep mysql


> $ mysql -u root -h localhost -p Enter password: Welcome to the
> MySQL monitor.  Commands end with ; or \g. Your MySQL connection id
> is 2 Server version: 5.5.17 MySQL Community Server (GPL)
> 
> Copyright (c) 2000, 2011, Oracle and/or its affiliates. All rights
> reserved.
> 
> Oracle is a registered trademark of Oracle Corporation and/or its 
> affiliates. Other names may be trademarks of their respective 
> owners.
> 
> Type 'help;' or '\h' for help. Type '\c' to clear the current
> input statement.
> 
> mysql>
> 
> Regards
> 
> On Sun, Jan 22, 2012 at 11:57 PM, Kernel Guardian 
> <kernelgardian@xxxxxxxxx <mailto:kernelgardian@xxxxxxxxx>> wrote:
> 
> by default apache can't make a connection to DB. setsebool
> httpd_can_network_connect_db on
> 
> for permanent change add -P as param to setsebool
> 
> for all selinux apache attributes: getsebool -a | grep httpd
> 
> or man page man httpd_selinux
> 
> /var/lib/mysql/mysql.sock is a valid TCP socket with domain UNIX.
> 
> On Jan 22, 2012 7:04 PM, "bruce" <badouglas@xxxxxxxxx 
> <mailto:badouglas@xxxxxxxxx>> wrote:
> 
> -- users mailing list users@xxxxxxxxxxxxxxxxxxxxxxx
> <mailto:users@xxxxxxxxxxxxxxxxxxxxxxx> To unsubscribe or change
> subscription options: 
> https://admin.fedoraproject.org/mailman/listinfo/users Guidelines:
> http://fedoraproject.org/wiki/Mailing_list_guidelines Have a
> question? Ask away: http://ask.fedoraproject.org
> 
> 
> 
> 

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk8dqZ0ACgkQrlYvE4MpobPHpwCff8/s5jlF+psAGNndbUYJhzN6
FZYAnAmnbpr4JG1k3NFmA2ioO3A52vrK
=3DHX
-----END PGP SIGNATURE-----
-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux