Cannot start XAMPP on Ubuntu 12.04

在ubuntu12.04上装完lampp运行/opt/lampp/lampp start 出现下面的错误

Starting XAMPP for Linux 1.8.1...
XAMPP: Another web server daemon with SSL is already running.
XAMPP: Starting MySQL...
XAMPP: Starting ProFTPD...
XAMPP for Linux started.
之前没有装过apache,应该是443端口(SSL)被占用。

参考了http://askubuntu.com/questions/89156/cannot-start-xampp-on-ubuntu-11-10中的解决方法。两种方法都可行,最终用了第一种,为防止端口冲突,将lampp中监听的端口改掉。

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).

转载于:https://www.cnblogs.com/wchunx/archive/2013/05/19/3086547.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值