Problems with Linux installation Xamp

Source: Internet
Author: User

Today on Linux installed XAMPP encountered some trouble, fortunately solved, record, installation does not say, Baidu experience is very detailed, address: http://jingyan.baidu.com/article/afd8f4de7976b034e286e90c.html.

1. When the XAMPP starts, an error is found:

Xampp:starting Apache...fail.
Xampp:another Web server with SSL is already running.
Xampp:starting Mysql...ok.
Xampp:starting Proftpd...ok.

At first thought was another Apache service impact, but the other Apache service stop after the same, and later found that the data is because the port is occupied.

Specific Solutions

(1). First open/opt/lampp/etc/httpd.conf This configuration file, find listen 80, instead of a port that is not occupied, such as 2145

(2). Then open/opt/lampp/lampp This file, find if Testport 80, change 80 to 2145.

Then restart the XAMPP, if successful, then there is no problem, if the failure is still reported this error then continue, because the port is still occupied.

(3). Then open/opt/lampp/etc/extra/httpd-ssl.conf This file, locate listen 443, and also change to a port that is not occupied, such as 16443.

(4). Once again open/opt/lampp/lampp this file, find if Testport 443, change 443 to 16443.

Try again, this problem should be solved, this time Apache boot should not have a problem.

If you succeed, you are very lucky. But I have another problem.

2.apache still fails, but for another reason:

Xampp:starting Apache...fail.
Xampp:starting diagnose ...
Xampp:your/etc/hosts is not okay. I'll Fix it.
Xampp:next Try ...

I checked my log file:

[Sun 14 07:48:36.499033 2016] [Unique_id:alert] [PID 12780] (EAI 2) Name or service not known:AH01564:unable to find IPv4 address of "2016081033300"

According to the error and log, it should be said that the hosts in the configuration has a problem. But the change still failed.

Finally this problem is solved by using the other method:

Open/opt/lampp/etc/httpd.conf This configuration file,

Find LoadModule unique_id_module modules/mod_unique_id.so, add a # to the front and comment out the module.

Of course, the premise of this is that the module commenting out has no effect on your project.

... It finally started to succeed.

Problems with Linux installation Xamp

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.