koha 2.2.2b on fedora 3----internal server error on apache???
hi......... i installed koha on fedora 3 when i take the interface on browser i got internal server error message on browser..this is the case when selinux is in enabled state (setenforce 1) i got the below error message from the log file :-
[Tue May 17 16:26:38 2005] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec) [Tue May 17 16:26:38 2005] [notice] Digest: generating secret for digest authentication ... [Tue May 17 16:26:38 2005] [notice] Digest: done [Tue May 17 16:26:38 2005] [notice] LDAP: Built with OpenLDAP LDAP SDK [Tue May 17 16:26:38 2005] [notice] LDAP: SSL support unavailable [Tue May 17 16:26:39 2005] [notice] mod_python: Creating 4 session mutexes based on 256 max processes and 0 max threads. [Tue May 17 16:26:39 2005] [notice] Apache/2.0.52 (Fedora) configured -- resuming normal operations [Tue May 17 16:27:15 2005] [notice] caught SIGTERM, shutting down (13)Permission denied: httpd: could not open error log file /usr/local/koha/log/koha-error_log. Unable to open logs [Tue May 17 16:27:28 2005] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec) [Tue May 17 16:27:29 2005] [notice] Digest: generating secret for digest authentication ... [Tue May 17 16:27:29 2005] [notice] Digest: done [Tue May 17 16:27:29 2005] [notice] LDAP: Built with OpenLDAP LDAP SDK [Tue May 17 16:27:29 2005] [notice] LDAP: SSL support unavailable [Tue May 17 16:52:31 2005] [error] [client 192.168.1.9] DBI connect('Koha:localhost','kohaadmin',...) failed: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (13) at /usr/local/koha/intranet/modules/C4/Context.pm line 409 [Tue May 17 16:52:31 2005] [error] [client 192.168.1.9] DBI connect('Koha:localhost','kohaadmin',...) failed: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (13) at /usr/local/koha/intranet/modules/C4/Context.pm line 409 [Tue May 17 16:52:31 2005] [error] [client 192.168.1.9] Can't call method "selectrow_array" on an undefined value at /usr/local/koha/intranet/modules/C4/Context.pm line 364. [Tue May 17 16:52:31 2005] [error] [client 192.168.1.9] Premature end of script headers: mainpage.pl [Tue May 17 16:52:34 2005] [error] [client 192.168.1.9] DBI connect('Koha:localhost','kohaadmin',...) failed: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (13) at /usr/local/koha/intranet/modules/C4/Context.pm line 409 [Tue May 17 16:52:34 2005] [error] [client 192.168.1.9] DBI connect('Koha:localhost','kohaadmin',...) failed: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (13) at /usr/local/koha/intranet/modules/C4/Context.pm line 409 [Tue May 17 16:53:50 2005] [error] [client 192.168.1.9] Can't call method "prepare" on an undefined value at /usr/local/koha/opac/cgi-bin/opac-main.pl line 16. [Tue May 17 16:53:51 2005] [error] [client 192.168.1.9] Premature end of script headers: opac-main.pl
when i issue the command " setenforce 0 " i can work on koha properly. why it is happened so... help me please... thank you shebina
Hi Shebina, The problem is caused because SELinux audits your system, adding what essentially is another level of permissions. You can view the SELinux permissions of a file with ls -Z; then, you'll need to relabel the Koha files and directories to the correct label for the system to run with SELinux enabled. (check /var/www/ for the right permissions) You can repabel with the 'fixfiles' tool using 'relabel'. Also, you may need to run mysql_install_db as per the Koha instructions for Fedora Core. The process of managing SELinux is complicated and if you're going to run it you should read through the Fedora Core SELinux FAQ (for FC3): http://fedora.redhat.com/docs/selinux-faq-fc3/ Hope that helps, -- Joshua Ferraro VENDOR SERVICES FOR OPEN-SOURCE SOFTWARE President, Technology migration, training, maintenance, support LibLime Koha ILS, Mambo Intranet, DiscrimiNet Filter jmf@liblime.com | Full Demos at http://liblime.com | 1(888)KohaILS
participants (2)
-
Joshua Ferraro -
Shebina K