安裝XAMPP


1、下載XAMPP

官方主頁:https://www.apachefriends.org/index.html

2、安裝

(安裝提示:重要! 由於激活用戶帳戶控制(uac)在您的系統的一些XAMPP的功能可能是限制。使用UAC請避免將XAMPP安裝到C:程序文件(x86)(缺少寫的權限)。在此設置后,或與系統配置實用程序禁用UAC。)  

Important! Because an activated User Account Control (UAC) on your sytem some functions of XAMPP are possibly restricted. With UAC please avoid to install XAMPP to C:\Program Files (x86) (missing write permisssions). Or deactivate UAC with msconfig after this setup.

安裝目錄最好選擇C盤之外的其它磁盤,如果選擇C盤安裝,由於用戶權限原因,會出現創建一些文件失敗的問題。如果你已經據有最高權限,可以直接裝在C盤。

 

win10 下安裝遇到下面問題

Problem running post-install step. Installation may not complete correctly. Installation failed(php.exe). Perhaps you have to install the Microsoft Visual C++ 2008 Redistributable package. After that please execute the setup_xampp.bat in the xampp fplder manually.

3、啟動

問題1:Apache啟動提示Port 80 in use by "Unable to open process" with PID 

10:33:43 [Apache]Problem detected!

10:33:43 [Apache]Port 80 in use by "Unable to open process" with PID

解決方案:http://www.zeeronsolutions.com/fix-xampp-apache-not-starting-because-port-80-in-use-issue/

 

Solutions 2: Change Default Port 80,443 of XAMPP Apache Server
So, the best solution like EL.Web.ID and Geethika says, is to reconfigure the XAMPP Apache server to listen and use different port numbers. Here is how you do it:

1) First, you need to open the Apache “httpd.conf” file and configure it to use/listen on a new port no.

setup xampp apache
To open httpd.conf file, click the “Config” button next to Apache “Start” and “Admin” buttons. In the popup menu that opens, click and open httpd.conf

2) Within the httpd.conf file search for “listen”. You’ll find two rows with something like;

#Listen 12.34.56.78:80
Listen 80

Change the port no to a port no. of your choice (e.g. port 1234) like below

#Listen 12.34.56.78:1234
Listen 1234

3) Next, in the same httpd.conf file look for “ServerName localhost:” Set it to the new port no.

ServerName localhost:1234

4) Save and close the httpd.conf file.

5) Now click the Apache config button again and open the “httpd-ssl.conf” file.

6) In the httpd-ssl.conf file, look for “Listen” again. You may find:

Listen 443

Change it to listen on a new port no of your choice. Say like:

Listen 1443

7) In the same httpd-ssl.conf file find another line that says, “<VirtualHost _default_:443>”. Change this to your new port no. (like 1443)

7) Also in the same httpd-ssl.conf you can find another line defining the port no. For that look for “ServerName”. you might find something like:

ServerName www.example.com:443 or ServerName localhost:433

Change this ServerName to your new port no.

8) Save and close the httpd-ssl.conf file.

9) Finally, there’s just one more place you should change the port no. For that, click and open the “Config” button of your XAMPP Control Panel. Then click the, “Service and Port Settings” button. Within it, click the “Apache” tab and enter and save the new port nos in the “main port” and “SSL port” boxes. Click save and close the config boxes.

That should do the trick. Now “Start” Apache and if everything goes well, your Apache server should start up.

You will also see the Apache Port/s no in the XAMPP control panel has change to the new port IDs you set :)


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM