Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Apache does not start
#1

everytime i try to run apache, i get the following message.

 

[root@localhost ~]# httpd

 

httpd: Syntax error on line 170 of /etc/httpd/conf/httpd.conf: Cannot load /etc/httpd/modules/mod_access.so into server: /etc/httpd/modules/mod_access.so: cannot open shared object file: No such file or directory

 

i am new to linux and have no clue. running fc6.

any idea what the problem is and how to solve this? i need to fix this asap cos i need apache for college work.

when i comment the line with the problem, the next line gives the same error.

Reply
#2

have you tried disabling selinux ?

 

as root

 



Code:
vi /etc/sysconfig/selinux




 

change is so it looks like this

 

Quote:# This file controls the state of SELinux on the system.# SELINUX= can take one of these three values:

# enforcing - SELinux security policy is enforced.

# permissive - SELinux prints warnings instead of enforcing.

# disabled - SELinux is fully disabled.

SELINUX=disabled

# SELINUXTYPE= type of policy in use. Possible values are:

# targeted - Only targeted network daemons are protected.

# strict - Full SELinux protection.

SELINUXTYPE=targeted

 

# SETLOCALDEFS= Check local definition changes

SETLOCALDEFS=0
 

save the file with

 



Code:
:wq




 

then reboot, and try apache again, if apache fails, please paste the exact error messages you see

 

cheers

anyweb

Reply
#3

Hi,

 

Why diable SELinux?? The problem is with not being able to open mod_access.so, if you open your

httpd.conf file and go down to line 170, just comment that line out e.g. add a hash (#) at the beginning

of the line

Reply
#4

because he said this at the end of his post

 

Quote:when i comment the line with the problem, the next line gives the same error
 

cheers

anyweb

Reply
#5

Sorry anyweb I did not read it all o_O

 

Have you tried doing:

 

ls -ltr /etc/httpd/modules/mod_access.so

 

Does this return anything?

 

Also have you gone through the whole file commenting out mod_access.so

Reply
#6

Quote:Sorry anyweb I did not read it all o_O 

Have you tried doing:

 

ls -ltr /etc/httpd/modules/mod_access.so

 

Does this return anything?

 

Also have you gone through the whole file commenting out mod_access.so
 

 

tried it all....didn't work. found th following solution on fedora forums and now i finally got it working.

in httpd.conf

replace line:

LoadModule access_module modules/mod_access.so

with

LoadModule authz_host_module modules/mod_authz_host.so

 

replace line:

LoadModule auth_module modules/mod_auth.so

with

LoadModule auth_basic_module modules/mod_auth_basic.so

 

replace line:

LoadModule auth_anon_module modules/mod_auth_anon.so

with

LoadModule authn_anon_module modules/mod_authn_anon.so

 

replace line:

LoadModule auth_dbm_module modules/mod_auth_dbm.so

with

LoadModule authn_dbm_module modules/mod_authn_dbm.so

 

replace line:

LoadModule auth_ldap_module modules/mod_auth_ldap.so

with

LoadModule authnz_ldap_module modules/mod_authnz_ldap.so

 

and comment out line:

LoadModule imap_module modules/mod_imap.so

Reply
#7

thanks a million for posting how you fixed it

 

this way, others will learn

 

cheers

 

anyweb

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)