teddysun / lamp

Install LAMP (Linux + Apache + MySQL/MariaDB + PHP) for AlmaLinux/RockyLinux/CentOS/Debian/Ubuntu
https://lamp.sh
GNU General Public License v3.0
2.87k stars 1.06k forks source link

Error: Reload failed. Apache config file had an error, please fixed it and try again #256

Open virtual-orbis opened 1 year ago

virtual-orbis commented 1 year ago

Hello, I recently got the error message in the subject when I used the command "lamp add " for trying to add a hostname in a brand new VPS. BTW I also received the following message when I tried to restart Apache httpd: Syntax error on line 159 of /usr/local/apache/conf/httpd.conf: Cannot load modules/mod_http2.so into server: /usr/local/apache/modules/mod_http2.so: undefined symbol: nghttp2_option_set_no_rfc9113_leading_and_trailing_ws_validation

lei130102 commented 12 months ago

me too

root@core-post-10:~# /etc/init.d/httpd status httpd is not running root@core-post-10:~# /etc/init.d/httpd start httpd: Syntax error on line 160 of /usr/local/apache/conf/httpd.conf: Cannot load modules/mod_http2.so into server: /usr/local/apache/modules/mod_http2.so: undefined symbol: nghttp2_option_set_no_rfc9113_leading_and_trailing_ws_validation

DrOctogon commented 11 months ago

Comment out:

159: LoadModule http2_module modules/mod_http2.so

In file: /usr/local/apache/conf/httpd.conf

Reload httpd