当前位置: 首页 > news >正文

安装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 :)

转载于:https://www.cnblogs.com/50614090/articles/5150276.html

相关文章:

  • ubuntu15.10安装 jdk
  • 属性与字段的区别
  • 使用OGGquot;Loading data from file to Replicatquot;的方法应该注意的问题:replicat进程是前台进程...
  • java 单例模式总结
  • MAC下配置OpenCV的具体方法(2016年最新)
  • iOS 后台操作的开发(转)
  • Number 类型
  • 关于Oracle数据库分页查询的小技巧
  • Java重定向标准输入/输出
  • Show Processlist
  • FZU2150 Fire Game BFS搜索
  • input文本框只能输入数字
  • Android百度地图 关于visibility=gone的奇葩问题
  • http://my.oschina.net/chihz/blog/56256
  • Graphviz 绘制流程图
  • [LeetCode] Wiggle Sort
  • create-react-app做的留言板
  • IP路由与转发
  • Laravel 实践之路: 数据库迁移与数据填充
  • miniui datagrid 的客户端分页解决方案 - CS结合
  • React16时代,该用什么姿势写 React ?
  • React-Native - 收藏集 - 掘金
  • unity如何实现一个固定宽度的orthagraphic相机
  • 基于MaxCompute打造轻盈的人人车移动端数据平台
  • 解决iview多表头动态更改列元素发生的错误
  • 如何用Ubuntu和Xen来设置Kubernetes?
  • 思考 CSS 架构
  • 想写好前端,先练好内功
  • 一起来学SpringBoot | 第十篇:使用Spring Cache集成Redis
  • 正则表达式小结
  • Redis4.x新特性 -- 萌萌的MEMORY DOCTOR
  • ​渐进式Web应用PWA的未来
  • #图像处理
  • #我与Java虚拟机的故事#连载09:面试大厂逃不过的JVM
  • $NOIp2018$劝退记
  • (2)STM32单片机上位机
  • (2.2w字)前端单元测试之Jest详解篇
  • (20050108)又读《平凡的世界》
  • (2022版)一套教程搞定k8s安装到实战 | RBAC
  • (附源码)springboot宠物医疗服务网站 毕业设计688413
  • (三)终结任务
  • (原创)boost.property_tree解析xml的帮助类以及中文解析问题的解决
  • .NET 设计模式初探
  • .NET轻量级ORM组件Dapper葵花宝典
  • .net专家(高海东的专栏)
  • ??myeclipse+tomcat
  • @media screen 针对不同移动设备
  • [2016.7.Test1] T1 三进制异或
  • [Angular] 笔记 6:ngStyle
  • [C#]C# winform部署yolov8目标检测的openvino模型
  • [C/C++]关于C++11中的std::move和std::forward
  • [C++]C++入门--引用
  • [Err] 1055 - Expression #1 of ORDER BY clause is not in GROUP BY clause and contains nonaggregated c
  • [ERROR]-Error: failure: repodata/filelists.xml.gz from addons: [Errno 256] No more mirrors to try.
  • [Flex] PopUpButton系列 —— 控制弹出菜单的透明度、可用、可选择状态