Linux 7安裝和配置phpmyadmin
1.在這個網站下載xampp
2.本文下載的是xampp-linux-x64-7.2.2-0-installer.run
4.安裝
5.啟動
6.在瀏覽器裡輸入,換成自己的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.
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>
9.這個頁面有3種模式,預設是httpd,我一般喜歡用config模式,如下圖:
修改方法是:
-
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/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- phpmyadmin在centos7中安裝PHPCentOS
- phpMyAdmin安裝PHP
- 搭建lamp環境以及安裝配置phpmyadminLAMPPHP
- Cnetos7編譯安裝phpMyAdmin教程。編譯PHP
- 騰訊雲Centos7系統安裝phpmyAdminCentOSPHP
- 安裝與配置MySQL,phpmyAdmin;安裝與測試PHPLIB (轉)MySqlPHP
- Windows環境下phpMyAdmin的安裝配置方法WindowsPHP
- Linux 下安裝配置 JDK7 配置環境(debian 7)LinuxJDK
- 11. Oracle for Linux安裝和配置——11.2. Linux安裝和配置——11.2.2.Linux安裝(2)OracleLinux
- 11. Oracle for Linux安裝和配置——11.2. Linux安裝和配置——11.2.2.Linux安裝(1)OracleLinux
- 11. Oracle for Linux安裝和配置——11.2. Linux安裝和配置——11.2.5. Linux配置OracleLinux
- IIS+PHP+MySQL+ZendOptimizer+GD庫+phpMyAdmin安裝配置PHPMySql
- Linux伺服器配置——安裝配置JDK1 7Linux伺服器JDK
- Linux-CentOS7環境MySQL安裝配置LinuxCentOSMySql
- Linux-RHEL7環境MySQL安裝配置LinuxMySql
- Centos 7安裝和配置 ElasticSearch入門小白CentOSElasticsearch
- CentOS7 下 Nginx 的安裝和配置CentOSNginx
- [轉載] centos7 安裝和配置vncserverCentOSVNCServer
- Linux CentOS 7 下 Apache Tomcat 7 安裝與配置(心得)LinuxCentOSApacheTomcat
- Linux/Centos安裝Litespeed+PHP+MYSQL+PHPMYADMIN教程LinuxCentOSPHPMySql
- Linux - Vsftp之安裝和配置LinuxFTP
- 11. Oracle for Linux安裝和配置——11.2. Linux安裝和配置——11.2.3. Linux登入OracleLinux
- 11. Oracle for Linux安裝和配置——11.2. Linux安裝和配置——11.2.4. Linux命令(1)OracleLinux
- 11. Oracle for Linux安裝和配置——11.2. Linux安裝和配置——11.2.4. Linux命令(2)OracleLinux
- 11. Oracle for Linux安裝和配置——11.2. Linux安裝和配置——11.2.4. Linux命令(3)OracleLinux
- CentOS 7 安裝配置 NFSCentOSNFS
- 11. Oracle for Linux安裝和配置——11.2. Linux安裝和配置——11.2.1. 簡介OracleLinux
- centos7 (阿里雲、linux) 單機spark的安裝與配置詳解(jdk安裝與配置,scala安裝與配置,hadoop安裝與配置,spark安裝與配置)CentOS阿里LinuxSparkJDKHadoop
- Laragon 下的 PhpMyAdmin 安裝GoPHP
- PHP、MySQL、phpmyadmin的安裝PHPMySql
- centos7上keepalived的安裝和配置CentOS
- 11. Oracle for Linux安裝和配置—11.3. Oracle安裝和配置—11.3.3. Oracle net配置OracleLinux
- 11. Oracle for Linux安裝和配置—11.3. Oracle安裝和配置—11.3.1. Oracle軟體安裝OracleLinux
- Linux安裝和配置zokeeper 詳細教程Linux
- Linux下Mongodb安裝和啟動配置LinuxMongoDB
- Linux上的redis的安裝和配置LinuxRedis
- Centos7-VMware+Centos7安裝配置CentOS
- CentOS 7 安裝、配置、使用 PostgreSQL 10 安裝及基礎配置CentOSSQL