XAMPP:Another web server daemon with SSL is already running

XAMPP:”Another web server daemon with SSL is already running”

今天,装完虚拟机,准备尝试一下新任务的时候,尝试启动xampp的时候,遇到了这个问题。开始的时候,还以为是和以前遇到的问题一样—-某个任务多安装了一个apache。后来,经过ps和netstat测试,发现似乎不是这个问题,就尝试着去baidu in english,最后找到了这个答案。address:http://askubuntu.com/questions/89156/cannot-start-xampp-on-ubuntu-11-10 此答案的作者分析原因可能是,80端口或者443端口被占用了(实际上我并没有发现),原理就是调一下80端口和443端口,重新启动就可以了。经验证,确实是可行的。

  • 1. Open the file /opt/lampp/etc/httpd.conf
  • 2. Search the “Listen 80” and change it to some other port (e.g. Listen 2145) (Line No. 40)
  • 3. Open the file /opt/lampp/etc/extra/httpd-ssl.conf
  • 4. Search the “Listen 443” and change it to some other port (e.g. Listen 16443) (Line No. 39)
  • 5. Open the file “/opt/lampp/lampp
  • 6. Search for the port “testport 80” and replace it to “testport 2145”. Also change the “testport 443” to “testport 16443”. (Happens to be the Line No. 197, 214)
  • 7. Now go and run “/opt/lampp/lampp start“. (It should work now).