1.在https://www.apachefriends.org/zh_cn/index.html这个网站下载xampp
2.本文下载的是xampp-linux-x64-7.2.2-0-installer.run
4.安装
5.启动
6.在浏览器里输入http://13.115.1xx.xx,换成自己的ip和最好用google浏览器,其他浏览器有可能显示不了
7.点击上图右边的”phpmyadmin”,会遇到403错误,解决办法是修改配置文件,让它允许local之外访问
把下面这段代码中黑体字
修改为
8.再次点击
”phpmyadmin”,出现如下的界面就表示安装成功了。
修改方法是:
如果想管理其他的mysql数据库,按照
如下设置,把
$i
+
+
;下面的拷贝一份,放到下面,修改host等
另:
在安装过程中可能会遇到错误,请参考我的另一篇博文 http://blog.itpub.net/20893244/viewspace-2151435/
2.本文下载的是xampp-linux-x64-7.2.2-0-installer.run
- wget https://www.apachefriends.org/xampp-files/7.2.2/xampp-linux-x64-7.2.2-0-installer.run
3.修改文件的权限
-
- chmod 755 xampp-linux-x64-7.2.2-0-installer.run
- [root@aws ~]# ./xampp-linux-x64-7.2.2-0-installer.run
- ----------------------------------------------------------------------------
- Welcome to the XAMPP Setup Wizard.
-
- ----------------------------------------------------------------------------
- Select the components you want to install; clear the components you do not want
- to install. Click Next when you are ready to continue.
-
- XAMPP Core Files : Y (Cannot be edited)
-
- XAMPP Developer Files [Y/n] :n
-
- Is the selection above correct? [Y/n]:
-
- ----------------------------------------------------------------------------
- Installation Directory
-
- XAMPP will be installed to /opt/lampp
- Press [Enter] to continue:
-
- ----------------------------------------------------------------------------
- Setup is now ready to begin installing XAMPP on your computer.
-
- Do you want to continue? [Y/n]:
-
- ----------------------------------------------------------------------------
- Please wait while Setup installs XAMPP on your computer.
-
- Installing
- 0% ______________ 50% ______________ 100%
- #########################################
-
- ----------------------------------------------------------------------------
- Setup has finished installing XAMPP on your computer.
- [root@aws lampp]# ./lampp start
- Starting XAMPP for Linux 7.2.2-0...
- XAMPP: Starting Apache...ok.
- XAMPP: Starting MySQL...ok.
- XAMPP: Starting ProFTPD...ok.
![](http://img.blog.itpub.net/blog/attachment/201802/22/20893244_1519286302Mot8.jpg?x-oss-process=style/bb)
7.点击上图右边的”phpmyadmin”,会遇到403错误,解决办法是修改配置文件,让它允许local之外访问
- vi /opt/lampp/etc/extra/httpd-xampp.conf
- <Directory "/opt/lampp/phpmyadmin">
- AllowOverride AuthConfig Limit
- Require local
- ErrorDocument 403 /error/XAMPP_FORBIDDEN.html.var
- </Directory>
- <Directory "/opt/lampp/phpmyadmin">
- AllowOverride AuthConfig Limit
- Require all granted
- ErrorDocument 403 /error/XAMPP_FORBIDDEN.html.var
- </Directory>
![](http://img.blog.itpub.net/blog/attachment/201802/22/20893244_1519287260HnJp.jpg?x-oss-process=style/bb)
9.这个页面有3种模式,默认是httpd,我一般喜欢用config模式,如下图:
![](http://img.blog.itpub.net/blog/attachment/201803/5/20893244_1520232760RQlw.png?x-oss-process=style/bb)
修改方法是:
- vi /opt/lampp/phpmyadmin/config.inc.php
-
- auth_type默认是http,修改为cookie即可
-
- $i++;
- /* Authentication type */
- $cfg['Servers'][$i]['auth_type'] = 'cookie';
- $cfg['Servers'][$i]['user'] = 'root';
- $cfg['Servers'][$i]['password'] = '';
- /* Server parameters */
- //$cfg['Servers'][$i]['host'] = 'localhost';
- $cfg['Servers'][$i]['compress'] = false;
- $cfg['Servers'][$i]['AllowNoPassword'] = true;
-
- $i++;
- /* Authentication type */
- $cfg['Servers'][$i]['auth_type'] = 'cookie';
- $cfg['Servers'][$i]['user'] = 'root';
- $cfg['Servers'][$i]['password'] = '';
- /* Server parameters */
- //$cfg['Servers'][$i]['host'] = 'localhost';
- $cfg['Servers'][$i]['compress'] = false;
- $cfg['Servers'][$i]['AllowNoPassword'] = true;
-
- $i++;
- /* Authentication type */
- $cfg['Servers'][$i]['auth_type'] = 'cookie';
- /* Server parameters */
- $cfg['Servers'][$i]['host'] = 'oms';
- $cfg['Servers'][$i]['compress'] = false;
- $cfg['Servers'][$i]['AllowNoPassword'] = false;
另:
在安装过程中可能会遇到错误,请参考我的另一篇博文 http://blog.itpub.net/20893244/viewspace-2151435/
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/20893244/viewspace-2151517/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/20893244/viewspace-2151517/