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

前端 未结 6 810
时光取名叫无心
时光取名叫无心 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:33

    Look at the start of the output you get from phpinfo(), the basic apache configuration fodlers are shown there. So easiest is to make a trivial php script and call it once:

    
    

    Likewise you can also directly query these settings. Check the documentation!

提交回复
热议问题