Linux-Noob Forums
Apache does not start - Printable Version

+- Linux-Noob Forums (https://www.linux-noob.com/forums)
+-- Forum: Linux Server Administration (https://www.linux-noob.com/forums/forum-8.html)
+--- Forum: LAMP (https://www.linux-noob.com/forums/forum-83.html)
+--- Thread: Apache does not start (/thread-1717.html)



Apache does not start - prashanthv - 2006-11-22


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.




Apache does not start - anyweb - 2006-11-22


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




Apache does not start - xDamox - 2006-11-22


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




Apache does not start - anyweb - 2006-11-22


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




Apache does not start - xDamox - 2006-11-22


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




Apache does not start - prashanthv - 2006-11-23


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




Apache does not start - anyweb - 2006-11-23


thanks a million for posting how you fixed it

 

this way, others will learn

 

cheers

 

anyweb