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 01-10-2006, 05:11 PM   #1
cojo
Member
 
Registered: Feb 2003
Location: St. Louis
Distribution: RedHat 8
Posts: 262

Rep: Reputation: 31
Problem starting apache. Please help!


Can someone tell what this error mean when I'm trying to start apach on FC3.

Starting httpd: Syntax error on line 6 of /etc/httpd/conf.d/php.conf:
Cannot load /etc/httpd/modules/libphp4.so into server: libgmp.so.3: cannot enable executable stack as shared object requires: Permission denied
 
Old 01-10-2006, 05:34 PM   #2
bosewicht
Senior Member
 
Registered: Aug 2003
Location: Houston, TX
Distribution: Arch
Posts: 1,380

Rep: Reputation: 47
first, what is on line 6? did you edit something?
second did you install php4?
third are you trying to start httpd as root?
 
Old 01-10-2006, 05:52 PM   #3
cojo
Member
 
Registered: Feb 2003
Location: St. Louis
Distribution: RedHat 8
Posts: 262

Original Poster
Rep: Reputation: 31
bosewicht,

line 6 in php.conf file is:

LoadModule php4_module modules/libphp4.so

Yes. php-4.3.11-2.8 is installed on the server.

Yes, I'm starting httpd as root.
 
Old 01-10-2006, 06:02 PM   #4
bosewicht
Senior Member
 
Registered: Aug 2003
Location: Houston, TX
Distribution: Arch
Posts: 1,380

Rep: Reputation: 47
take a look at the log and see what the error is. maybe it is a little more descriptive on what is going on.
 
Old 01-10-2006, 06:17 PM   #5
dc2447
Member
 
Registered: Sep 2002
Posts: 43

Rep: Reputation: 15
disable selinux
 
Old 01-10-2006, 06:24 PM   #6
cojo
Member
 
Registered: Feb 2003
Location: St. Louis
Distribution: RedHat 8
Posts: 262

Original Poster
Rep: Reputation: 31
bosewicht,

this is all I got from message log:

Jan 10 17:23:45 ux-mail kernel: audit(1136935425.010:17): avc: denied { execmem } for pid=18217 comm="httpd" scontext=root:system_r:httpd_t tcontext=root:system_r:httpd_t tclass=process
Jan 10 17:23:45 ux-mail httpd: Syntax error on line 6 of /etc/httpd/conf.d/php.conf:
Jan 10 17:23:45 ux-mail httpd: Cannot load /etc/httpd/modules/libphp4.so into server: libgmp.so.3: cannot enable executable stack as shared object requires: Permission denied
Jan 10 17:23:45 ux-mail httpd: httpd startup failed
 
Old 01-10-2006, 06:34 PM   #7
bosewicht
Senior Member
 
Registered: Aug 2003
Location: Houston, TX
Distribution: Arch
Posts: 1,380

Rep: Reputation: 47
Quote:
Originally Posted by dc2447
disable selinux

dc2447 has a point, i forgot about selinux.
 
Old 01-11-2006, 12:10 AM   #8
cojo
Member
 
Registered: Feb 2003
Location: St. Louis
Distribution: RedHat 8
Posts: 262

Original Poster
Rep: Reputation: 31
Well,

I disable selinux and httpd is able to start fine. Now, I just need to figure out what I need to do to get apache to work with selinux on. Thanks for all you help dc2447 & bosewicht
 
Old 01-11-2006, 12:47 AM   #9
cojo
Member
 
Registered: Feb 2003
Location: St. Louis
Distribution: RedHat 8
Posts: 262

Original Poster
Rep: Reputation: 31
For those who need direction on how to enable block services in selinux. Here are the steps:

1. install selinux-policy-targeted-sources
yum -y install selinux-policy-targeted-sources
2. turn off selinux temporary
setenforce 0
3. start the service which will fail and an error log will be created on /var/log/messages
service httpd start
4. ran audit2allow to allow access in selinux
audit2allow -l -i /var/log/messages >> /etc/selinux/targeted/src/policy/domains/misc/local.teaudit2allow -l -i /var/log/messages >> /etc/selinux/targeted/src/policy/domains/misc/local.te
5. reload selinux
make -C /etc/selinux/targeted/src/policy/ reload
6. turn selinux back on
setenforce 1
7. start httpd service
service httpd start

this will resolve your problem. If not, repeat the above steps.
 
  


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
apache server starting problem ukrainet Linux - Newbie 6 12-02-2004 02:30 AM
Problem Starting Apache with SSL -- URGENT kaplan71 Linux - General 0 02-09-2004 08:10 AM
apache starting problem in Reh Hat 9 duvanhorn Linux - Software 4 11-14-2003 04:41 AM
Problem starting apache nrmx Linux - Networking 2 03-13-2003 11:31 PM
Problem starting Apache Web Server kutubjt Linux - Newbie 2 04-04-2001 01:31 AM

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

All times are GMT -5. The time now is 07:56 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
Open Source Consulting | Domain Registration