Home
Recent Q&A
Java
Cloud
JavaScript
Python
SQL
PHP
HTML
C++
Data Science
DBMS
Devops
Hadoop
Machine Learning
Azure
Blockchain
Devops
Ask a Question
How To Verify Httpd.conf File To Ensure No Configuration Syntax Error?
Home
Apache Webserver
How To Verify Httpd.conf File To Ensure No Configuration Syntax Error?
0
votes
asked
Mar 30, 2022
in
Apache Webserver
by
sharadyadav1986
How To Verify Httpd.conf File To Ensure No Configuration Syntax Error?
syntax-error
Please
log in
or
register
to answer this question.
1
Answer
0
votes
answered
Mar 30, 2022
by
sharadyadav1986
httpd –t will help you to verify the syntax.
[root@lab httpd]# /usr/sbin/httpd -t
Syntax OK
[root@lab httpd]#
Alternatively, you may use apachectl command as well.
[root@lab ~]# /usr/sbin/apachectl configtest
Syntax OK
[root@lab ~]#
...