duan1933 2013-10-01 19:46
浏览 311

多次Apache安装后,Xampp中的Apache出现问题

I've been trying to install php, apache, and mySQL in a working fashion for some time now. After attempting manually several times and hitting roadblocks, I ended up just trying to use Xampp.

However, upon startup, the program says:

2:18:39 PM  [main]  Running with Administrator rights - good!
2:18:39 PM  [main]  XAMPP Installation Directory: "c:\xampp\"
2:18:39 PM  [main]  Checking for prerequisites
2:18:39 PM  [main]  All prerequisites found
2:18:39 PM  [main]  Initializing Modules
2:18:39 PM  [Apache]    Apache Service detected with wrong path
2:18:39 PM  [Apache]    Change XAMPP Apache and Control Panel settings or
2:18:39 PM  [Apache]    Uninstall/disable the other service manually first
2:18:39 PM  [Apache]    Found Path: "C:\Apache24\bin\httpd.exe" -k runservice
2:18:39 PM  [Apache]    Expected Path: "c:\xampp\apache\bin\httpd.exe" -k runservice

I followed the suggestions here, but

(a) Changing the port Listen 80 to Listen *:80 or Listen 81 had no effect.

(b) using netstat -ao, there were no local addresses ending with 80.

I've also tried deleting any files related to apache, mysql, and php not in the xampp folder, which were left over from previous install attempts.

Tried xampp 1.8.2, uninstalled, tried 1.8.3, same issue.

For what I can guess, I must've changed some code somewhere outside Xampp before I installed it, and now it is executing when apache is run, changing the path from what Xampp wants (Expected Path: "c:\xampp\apache\bin\httpd.exe" -k runservice) to a path to the now deleted folder C:\Apache24\bin. However, I don"t know where this code might be!

I tried searching my whole C drive for C:\Apache24\bin, but the search came up empty.

Machine: Windows 7 64 bit

Previously installed/uninstalled: Apache2.2, Apache2.4, php5.5.4, MySQL using MySQL Installer 5.6

tried xampp for windows 1.8.2

xampp for windows 1.8.3 currently installed.

Any help?

  • 写回答

4条回答 默认 最新

  • dongliufa6380 2013-11-17 06:03
    关注

    The reason to get this error is because you had Apache installed once before and its service is still running.

    If you are using windows 7, click on start and type "services". Open Services and see if Apache is listed. If yes, double click on it to see its properties. Copy the service name (e.g Apache 2.4) by selecting it -> right click -> selecting Copy.

    Close the services window.

    Click on start and find cmd by typing it. Right click on cmd.exe and select "Run as administrator".

    When the cmd window has opened type this command and press Enter:

    note: instead of Apache 2.4 you should right click on the window to select paste

    sc delete "Apache 2.4"
    

    After pressing enter you should get the message: serviceDelete Success

    Open services windows again (I explained it above) and see if you have Apache there again or not.

    评论

报告相同问题?

悬赏问题

  • ¥15 如何实验stm32主通道和互补通道独立输出
  • ¥30 这是哪个作者做的宝宝起名网站
  • ¥60 版本过低apk如何修改可以兼容新的安卓系统
  • ¥25 由IPR导致的DRIVER_POWER_STATE_FAILURE蓝屏
  • ¥50 有数据,怎么建立模型求影响全要素生产率的因素
  • ¥50 有数据,怎么用matlab求全要素生产率
  • ¥15 TI的insta-spin例程
  • ¥15 完成下列问题完成下列问题
  • ¥15 C#算法问题, 不知道怎么处理这个数据的转换
  • ¥15 YoloV5 第三方库的版本对照问题