fixing xampp security bug
このようなバグがあった時の対処法について。
環境は以下
xamppのバージョン:5.6.24
mac:10.12.1•(Sierra)
ターミナル管理者権限で以下のコマンドを実行した時のエラーです。
/Applications/XAMPP/xamppfiles/xampp security
パスワードの設定をした時に、、。。
cp: /Applications/XAMPP/xamppfiles/htdocs/xampp/.htaccess: No such file or directory
cp: /Applications/XAMPP/xamppfiles/htdocs/xampp/.htaccess: No such file or directory
chmod: /Applications/XAMPP/xamppfiles/htdocs/xampp/.htaccess: No such file or directory
chmod: /Applications/XAMPP/xamppfiles/htdocs/webalizer/.htaccess: No such file or directory
chmod: /Applications/XAMPP/xamppfiles/phpmyadmin/.htaccess: No such file or directory
XAMPP: Password protection active. Please use 'xampp' as user name!
XAMPP: MySQL is accessable via network.
って出る時の対処法です。
sudo /Applications/XAMPP/xamppfiles/xampp security
と入力するだけ。。
sudoでやらなくてはいけなかったん。。笑
これで設定できます。
あとは必要な項目を設定するだけ。
以上です。