How can I find out where the httpd.conf file is located?

前端 未结 6 883
时光取名叫无心
时光取名叫无心 2021-02-04 13:01

How can I find out the path of the httpd.conf file on apache (PHP)? I do not know whether my script will be runned in windows apache or linux, i need to know where i can find th

6条回答
  •  甜味超标
    2021-02-04 13:48

    This is a classic way to locate httpd.conf file:

    # find / -name 'httpd.conf' -print
    

    Also you can file locate the file using

    locate httpd.conf
    

提交回复
热议问题