LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Cannot load /etc/httpd/modules/mod_access.so (https://www.linuxquestions.org/questions/linux-newbie-8/cannot-load-etc-httpd-modules-mod_access-so-4175453897/)

ashokingole 03-13-2013 06:57 AM

Cannot load /etc/httpd/modules/mod_access.so
 
httpd can't start due to below error.


[root@rhel1 modules]# service httpd restart
Stopping httpd: [FAILED]
Starting httpd: httpd: Syntax error on line 200 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
[FAILED]

acid_kewpie 03-13-2013 07:09 AM

so what do you want to do about it?? It very clearly says the mofule isn't there... so you can either make it be there, tell it where it is if it's somewhere else, or remove the line.

shivaa 03-13-2013 07:28 AM

Try from:
Code:

~$ /etc/init.d/httpd restart
~$ /etc/init.d/httpd status


acid_kewpie 03-13-2013 07:30 AM

Quote:

Originally Posted by shivaa (Post 4910684)
Try from:
Code:

~$ /etc/init.d/httpd restart
~$ /etc/init.d/httpd status


Erm... Why?? There's no way this would have positive effect. The error is extremely apparent, and the removal of a noddy service wrapper script won't change a thing.

eklavya 03-13-2013 07:31 AM

It has been failed during stopping the service, it means it was started before, and you have done something wrong with it.
Have you changed something in httpd.conf?

You haven't written your changes or what were you doing?

acid_kewpie 03-13-2013 07:57 AM

Quote:

Originally Posted by eklavya (Post 4910691)
It has been failed during stopping the service, it means it was started before, and you have done something wrong with it.
Have you changed something in httpd.conf?

You haven't written your changes or what were you doing?

Not necessarily, you can "stop" a service that's already stopped. And it's just about always report "FAILED". Which is correct.

I don't see how context really matters here. File doesn't exist.

eklavya 03-14-2013 09:11 AM

Quote:

Originally Posted by acid_kewpie (Post 4910702)
Not necessarily, you can "stop" a service that's already stopped. And it's just about always report "FAILED".

OK.
He wrote 'restart' so I thought it was started and he did some changes and then tried to restart.
I thought if the service was stopped so he would write only 'start'.
But I got your point. You are correct.


All times are GMT -5. The time now is 01:17 AM.