How to delete an configuration file in centOs 6

General support questions
Post Reply
asterix_jv
Posts: 2
Joined: 2018/08/16 16:12:34

How to delete an configuration file in centOs 6

Post by asterix_jv » 2018/08/16 16:24:48

Hello,

I have a problem in my httpd with an configuration file, because when the httpd read all the .conf files one of them is empty, because I deleted the module but inside of this folder don't delete the conf file, right now is impossible install again the module, because easyApache 4 have problem with that module (mod_evasive), so now I can't installed again to commit the erase in console and can't delete the mod_evasive.conf file with yum erase or yum remove.

Can anyone help me with this problem...every hour have email said me this:


the service http not respond
Service check failed to complete
Unable to connect to port 80 on 127.0.0.1: Connection refused: Died

httpd: Syntax error on line 211 of /etc/apache2/conf/httpd.conf: Syntax error on line 2 of /etc/apache2/conf.d/mod_evasive.conf: Cannot load modules/mod_evasive20.so into server: /etc/apache2/modules/mod_evasive20.so: cannot open shared object file: No such file or directory

User avatar
TrevorH
Forum Moderator
Posts: 24097
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: How to delete an configuration file in centOs 6

Post by TrevorH » 2018/08/16 16:32:19

That's not what that error says. You have a config file that tells it to load /etc/apache2/modules/mod_evasive20.so but that file does not exist - which isn't surprising since we don't ship anything that uses /etc/apache2 since that's a Debian/Ubuntu path. CentOS uses /etc/httpd not /etc/apache2.

Actually since you're using EasyApache4 that's part of cpanel and you need to seek support from them. We do not support systems with cpanel installed as they change so much that anything we might recommend might damage your cpanel system.
CentOS 5 died in March 2017 - migrate NOW!
Full time Geek, part time moderator. Use the FAQ Luke

asterix_jv
Posts: 2
Joined: 2018/08/16 16:12:34

Re: How to delete an configuration file in centOs 6

Post by asterix_jv » 2018/08/16 22:02:16

mmm ok. Sorry I don't know that.

Thank you for your suggestion I will apply for support in cpanel

Best Regards!

Joaquin

Post Reply