安裝環境
xampp
下載路徑 | https://sourceforge.net/projects/xampp/files/ |
---|---|
PHP 版本 | PHP 7 以上 |
安裝路徑 | E:\xampp |
根目錄 port 改為 8899
設定檔路徑:
E:\xampp\apache\conf\httpd.conf
# Listen 80
Listen 8899
# ServerName localhost:80
ServerName localhost:8899
設定 MySQL port
設定檔路徑:
E:\xampp\mysql\bin\my.ini
[client]
# port = 3307
port = 3307
[mysqld]
# port = 3307
port = 3307
設定 phpMyAdmin 密碼
文件: http://localhost:8899/dashboard/docs/reset-mysql-password.html
mysqladmin --user=root password "1234"
設定檔路徑:
E:\xampp\phpMyAdmin\config.inc.php
$cfg['Servers'][$i]['host'] = '127.0.0.1:3307';
$cfg['Servers'][$i]['password'] = '1234';
安裝 composer
下載路徑 | https://getcomposer.org/download/ |
---|---|
版本 | Windows Installer |
PHP 路徑 | E:\xampp\php\php.exe |
設定 PHP 環境變數
我的電腦 > 右鍵 > 內容 > 進階系統設定 > 環境變數 > 系統變數(PATH)
E:\xampp\php;