Apache could not be started - ServerRoot must be a valid directory and Unable to find the specified module

后端 未结 14 1283
星月不相逢
星月不相逢 2020-12-13 06:54

I\'m using xampp portable server and I\'m having some trouble with Apache http server, it says \"ServerRoot must be a valid directory\"

Command line output:

14条回答
  •  难免孤独
    2020-12-13 07:35

    Below solved. I have wrongly given the bin /directory/, so faced the issue:

    if you installed apache at C:/httpd-2.4.41-o102s-x64-vc14-r2/Apache24
    then the modules are at.. C:/httpd-2.4.41-o102s-x64-vc14-r2/Apache24/modules

    So, the file           C:/httpd-2.4.41-o102s-x64-vc14-r2/Apache24/conf/httpd.conf
    should have
           Define SRVROOT "C:/httpd-2.4.41-o102s-x64-vc14-r2/Apache24/"
    

    Hope that helps

提交回复
热议问题