Apache won't run in xampp

前端 未结 17 1697
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-04 12:59

I have just installed XAMPP and everything works fine except that I can\'t get apache to run. It seems that port 80 is the problem, I have disabled Skype to use port 80 but

17条回答
  •  时光说笑
    2020-12-04 13:15

    If you just want to make Apache run an don't mind which port it is running on, do the following:

    In the XAMPP Control Panel, click on the Apache - 'Config' button which is located next to the 'Logs' button.

    Select 'Apache (httpd.conf)' from the drop down. (notepad should open)

    Do Ctrl + F to find '80'. Click 'find next' three times and change line Listen 80 to Listen 8080

    Click 'find next' again a couple times until you see line ServerName localhost:80 change this to ServerName localhost:8080

    Do Ctrl + S to save and then exit notepad.

    Start up Apache again in the XAMPP Control Panel, Apache should successfully run.

    Use http://localhost:8080/ in your browser address bar to check everything is working.

    EDIT

    Also you may have problems running XAMPP while running IIS. If you are running IIS it might be worth stopping the service then starting XAMPP.

提交回复
热议问题