I've just install Fedora Core 3, then, run http daemon (httpd) dan mysql daemon (mysqld). Walaubagaimanapun membuat fail php (seperti phpnuke atau phpmyadmin) saya dapat error ini
#2002: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock'
---
In Fedora Core 3, SELinux is turned on by default. SELinux is the Secure Edition that has extra security features. I turned SELinux off and I stopped getting the error.
anda boleh memperbaiki keadaan ini dengan laraskan SELinux line di
/etc/sysconfig/selinux kepada
Disabled:
SELINUX=Disabled
Walaupun jalan di atas berguna, tapi lebih baik anda matikan sahaja perkara yang perlu. Jangan bagai marahkan nyamuk, habis kelambu dibakar.
this is the procedure I've followed to configure SELinux :
From Startmenu select
"System settings"
Then choose
"Security settings or security level"
A window appears with 2 tabs : "Firewall options" and "SELinux"
Choose SELinux.
At the bottom half of the window you have a lisbox, listing (at least on my PC)
HTTPD Service
Name Service
NIS
SELinux Service Protection
Open SELinux Service Protection
Select "Disable SELinux protection for mysqld daemon"
Click "OK"
Open HTTPD Service
Select "Disable SELinux protection for httpd daemon"
Click "OK"
you had to reboot to make it work
Bye.
Untuk pengetahuan lanjut, layari:
http://forums.devshed.com/t14130/s.html