I'll start with the prehistory. I installed vesta on the server, there were no problems. After installation, he tried to start up but cursed apache and went out.

Running the command

httpd -t 

Got such an answer

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

Tried to find this file with the command.

 find / -type f -name mod_authn_alias.so 

and manually enter the path for the httpd.conf file here, but with bitterness I understood that it does not exist at all. How can I load or what is better to do?

  • and what is vesta? - aleksandr barakin
  • @alexanderbarakin vestacp.com - M11
  • bash vst-install.sh - даda really ... "download without registration and text messages". // so you attach the file so that you can tell you more precisely which lines to comment on? - aleksandr barakin
  • By the way, I looked at the "supported" versions of distributions. probably, the code is tied to some (relatively) old versions of programs. for example, to apache version not higher than 2.2. // do you have a distribution version? - aleksandr barakin
  • @alexanderbarakin I understand that this is most likely the problem. I have CentOS 7. I watched vestacp.com/roadmap here, there is support for my OS . But I don’t know how to pull out this particular version - M11

1 answer 1

Try commenting out this 39th line of the /etc/httpd/conf/httpd.conf file (putting the # character at the beginning of the line).

If I understand correctly what is written in this error message , this also applies to your case.

  • Something wrong. http: Syntax error on line 42 of / etc / httpd / conf / httpd.conf: Cannot load modules / mod_authn_default.so into server: / etc / httpd / modules / mod_authn_default.so: directory I think the problem needs to be changed in another way - M11
  • well, apparently, the 42nd must be commented out. and maybe the block between them is just me trying to guess. but more correct advice can be given if you attach this file to the question. - aleksandr barakin
  • You are probably right about different versions of programs. settings are not easy to fit. Here probably or install another version (I can not find it). or another system (I don’t know yet) - M11