XAMPP
| FuelPHP | PHP | MySQL | Apache |
目次
XAMPP
Ubuntu
インストール
ダウンロード
- https://www.apachefriends.org/jp/index.html
- ダウンロードして、実行権限を付与して、ヘルプを確認
- $ wget https://sourceforge.net/projects/xampp/files/XAMPP%20Linux/8.0.2/xampp-linux-x64-8.0.2-0-installer.run
- $ chmod +x xampp-linux-x64-8.0.2-0-installer.run
インストール
- サイレントモードでインストール
- 確認
- $ sudo ./xampp-linux-x64-8.0.2-0-installer.run --help
- :
- --mode <mode> Installation mode
- Default: qt
- Allowed: qt gtk xwindow text unattended
- :
- インストール
- $ sudo ./xampp-linux-x64-8.0.2-0-installer.run --mode unattended
- インストール完了
ドキュメントルートに書き込み権限
- $ sudo chmod o+w /opt/lampp/htdocs/
停止
- $ sudo /opt/lampp/lampp stop
- Stopping XAMPP for Linux 8.0.2-0...
- XAMPP: Stopping Apache...ok.
- XAMPP: Stopping MySQL...not running.
- XAMPP: Stopping ProFTPD...not running.
開始
- $ sudo /opt/lampp/lampp start
- Starting XAMPP for Linux 8.0.2-0...
- XAMPP: Starting Apache.../opt/lampp/share/xampp/xampplib: line 22: netstat: command not found
- /opt/lampp/share/xampp/xampplib: line 22: netstat: command not found
- ok.
- XAMPP: Starting MySQL.../opt/lampp/share/xampp/xampplib: line 22: netstat: command not found
- ok.
- XAMPP: Starting ProFTPD.../opt/lampp/share/xampp/xampplib: line 22: netstat: command not found
- ok.
- $ sudo apt install net-tools
- 再度
- $ sudo ./lampp start
- Starting XAMPP for Linux 8.0.2-0...
- XAMPP: Starting Apache...already running.
- XAMPP: Starting MySQL...already running.
- XAMPP: Starting ProFTPD...already running.
MySQL root初期パスワード設定
- $ mysqladmin -u root password
- New password:
- Confirm new password:
phpMyAdminにアクセスできなくなる
- /opt/lampp/phpmyadmin/config.inc.php
- 自動ログイン : 設定ファイルにパスワードを記入
**ログイン画面を表示 : auth_type を cookie
- $cfg['Servers'][$i]['auth_type'] = 'config';
- $cfg['Servers'][$i]['user'] = 'root';
- $cfg['Servers'][$i]['password'] = '';
phpMyAdmin
アクセスエラー
Access to the requested directory is only available from the local network. This setting can be configured in the file "httpd-xampp.conf".
- $ sudo vi /opt/lampp/etc/extra/httpd-xampp.conf
- Require を local から all granted に変更
- Alias /phpmyadmin "/opt/lampp/phpmyadmin"
- # since XAMPP 1.4.3
- <Directory "/opt/lampp/phpmyadmin">
- AllowOverride AuthConfig Limit
- # Require local
- Require all granted
- ErrorDocument 403 /error/XAMPP_FORBIDDEN.html.var
- </Directory>
© 2006 矢木浩人