XAMPP运用教程办法
<div style="color: black; text-align: left; margin-bottom: 10px;">
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">XAMPP是一个把Apache网页服务器与PHP、Perl及MySQL集合在<span style="color: black;">一块</span>的安装包,<span style="color: black;">准许</span>用户<span style="color: black;">能够</span>在自己的电脑上轻易的<span style="color: black;">创立</span>网页服务器。<span style="color: black;">运用</span>XAMPP您<span style="color: black;">能够</span><span style="color: black;">容易</span>的在本机调试您的PHP程序、CMS以及wordpress博客程序。本文<span style="color: black;">重点</span>分享一下XAMPP的<span style="color: black;">运用</span>教程。</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><img src="https://p3-sign.toutiaoimg.com/77800060fdb00b0cd60~noop.image?_iz=58558&from=article.pc_detail&lk3s=953192f4&x-expires=1728295379&x-signature=4pSt4pBmZ4c3agcd72jsuBhslUg%3D" style="width: 50%; margin-bottom: 20px;"></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">XAMPP<span style="color: black;">运用</span><span style="color: black;">办法</span></span></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">1.下载XAMPP</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">首要</span>下载XAMPP,您<span style="color: black;">能够</span>在本页面下方<span style="color: black;">供给</span>的链接直接点入官方网站下载。</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><img src="https://p3-sign.toutiaoimg.com/7210008e8d6c5996f82~noop.image?_iz=58558&from=article.pc_detail&lk3s=953192f4&x-expires=1728295379&x-signature=5CStkpVVnUcQ9%2FLqOUmYvEUqDD8%3D" style="width: 50%; margin-bottom: 20px;"></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">2.安装XAMPP</span></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">园子<span style="color: black;">运用</span>的是XAMPP的Windows版的安装包,下载后直接安装<span style="color: black;">就可</span>,安装过程所有选项保持默认<span style="color: black;">就可</span>。<span style="color: black;">意见</span>不要直接装在C盘。安装过程结束后,您会在<span style="color: black;">起始</span>/程序/XAMPP菜单下找到XAMPP。您<span style="color: black;">能够</span><span style="color: black;">运用</span>XAMPP控制面板来<span style="color: black;">起步</span>/停止所有服务或安装/卸载所有服务。</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><img src="https://p3-sign.toutiaoimg.com/77800061034bb9abd01~noop.image?_iz=58558&from=article.pc_detail&lk3s=953192f4&x-expires=1728295379&x-signature=5UV4OIyF4aBfNdKj9IMT5Wc62W0%3D" style="width: 50%; margin-bottom: 20px;"></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">3.配置XAMPP</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">在浏览器里输入:localhost<span style="color: black;">或</span>127.0.0.1<span style="color: black;">就可</span>看到XAMPP欢迎界面。<span style="color: black;">倘若</span><span style="color: black;">显现</span>错误请查看您在以前<span style="color: black;">是不是</span>安装过类似软件,如dedecms的dedeampz,并存<span style="color: black;">能够</span>有些冲突,停止这些软件的运行<span style="color: black;">或</span>直接卸载<span style="color: black;">就可</span>。</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><img src="https://p3-sign.toutiaoimg.com/7780006104584ea7fcf~noop.image?_iz=58558&from=article.pc_detail&lk3s=953192f4&x-expires=1728295379&x-signature=MGNxtDD65MqDj1Q0aZNe%2F4rSdF8%3D" style="width: 50%; margin-bottom: 20px;"></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">4.修改phpMyAdmin配置</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">首要</span>用<span style="color: black;">关联</span>软件打开<span style="color: black;">位置于</span>D:/xampp/phpMyAdmin文件夹中的config.inc.php文件。</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">搜索</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">$cfg[$i]=config;</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">将其中的config(系缺省值)更改为cookie<span style="color: black;">保留</span>。</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">5.登陆XAMPP</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">经过</span>默认主页localhost左侧的phpmyadmin导航栏进入phpmyadmin界面,可直接<span style="color: black;">经过</span>localhost/phpmyadmin/进入web登陆界面,输入用户名root后直接点击登陆(<span style="color: black;">秘码</span>默认为空)<span style="color: black;">就可</span>。</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">注:在默认状态下,phpmyadmin有两个用户名,分别是pma和root。其中,root是管理员身份,而pma则是普通用户身份,但二者在缺省状态下均无<span style="color: black;">秘码</span>。</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">6.<span style="color: black;">创立</span>新的管理员帐号及删除原有的root帐号</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">首要</span>进入权限选项卡,点击root帐号编辑其权限,在最底端的只输入相应的用户名和<span style="color: black;">秘码</span>,其余选项保持其缺省值,确认后<span style="color: black;">就可</span>产生与原有root帐号相同权限的新帐号;随后,再次编辑root帐号的权限,并在最底端的更改登录信息/复制用户中<span style="color: black;">选取</span>“从用户表中删除旧用户”,其余选项不变,确认后<span style="color: black;">就可</span>删除原有的root帐号。园子<span style="color: black;">这般</span>操作<span style="color: black;">亦</span>是为了安全性<span style="color: black;">思虑</span>,不<span style="color: black;">举荐</span><span style="color: black;">运用</span>root用户,最好新建一个<span style="color: black;">拥有</span>所有功能的用户来管理数据库。</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">7.更改pma帐号<span style="color: black;">秘码</span></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">与root<span style="color: black;">类似</span>,<span style="color: black;">然则</span>,当更改其帐号后会有出错信息,此时,用<span style="color: black;">关联</span>软件将config.inc.php第63行的pma<span style="color: black;">秘码</span>更改与web设置相对应,此时,登陆就不会再出错了。pma<span style="color: black;">秘码</span><span style="color: black;">能够</span>不填。<span style="color: black;">不消</span>他就好了。</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">经过<span style="color: black;">以上</span>的配置后xampp的基本配置<span style="color: black;">已然</span>完<span style="color: black;">成为了</span>,请记住您的站点根目录为xampp目录下的htdocs文件夹。您<span style="color: black;">能够</span>在htdocs目录下创建任意一个站点。例如将test.html放在.\xampp\htdocs\new路径下,您就<span style="color: black;">能够</span>在浏览器的<span style="color: black;">位置</span>栏中输入localhost/new/test.html来<span style="color: black;">拜访</span>这个文件。</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">需要<span style="color: black;">重视</span>的问题</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">1.root等管理员<span style="color: black;">秘码</span>无需在config.inc.php中更改。</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">2.<span style="color: black;">仅有</span>pma不设置<span style="color: black;">秘码</span>时,XAMPP主界面的MySQLdatabase的状态才会显示为ACTIVATED状态!</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">3.不要<span style="color: black;">运用</span></p>XAMPPforWindowsVersion1.5.2自带的mysql管理软件来设置。<span style="color: black;">倘若</span>设置了,会在C:\windowns目录下产生一个my.ini文件。<span style="color: black;">倘若</span>要重新安装,则需要将此my.ini文件删除,<span style="color: black;">以避免</span>影响后续设置。
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">4.必要时请更改默认端口,APACHE的默认端口是80,<span style="color: black;">倘若</span>你装有IIS,就会有冲突。<span style="color: black;">因此</span>,要更改一个端口。打开</p>xampp/apache/conf/httpd.conf,把listen80改为其它的端口,如99,8080等等。
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">5.您可能会遇到安装了xampp,在本机<span style="color: black;">经过</span>localhost和ip都<span style="color: black;">能够</span><span style="color: black;">拜访</span>,<span style="color: black;">然则</span>局域网其它<span style="color: black;">设备</span><span style="color: black;">不可</span><span style="color: black;">拜访</span>的问题。<span style="color: black;">处理</span><span style="color: black;">办法</span>是:修改xampp/apache/httpd.conf,把Listen80改成Listen192.168.0.188:80,192.168.0.188换成您服务器的ip。</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">最终</span>写完了,在<span style="color: black;">运用</span>xampp遇到什么问题的话请给我留言,我会在<span style="color: black;">第1</span>时间为您<span style="color: black;">处理</span>!</p>
</div>
期待与你深入交流,共探知识的无穷魅力。 回顾历史,我们感慨万千;放眼未来,我们信心百倍。 谷歌外链发布 http://www.fok120.com/
页:
[1]