facebook twitter hatena line email

「Mac/xampp」の版間の差分

提供: 初心者エンジニアの簡易メモ
移動: 案内検索
(ページの作成:「==xamppインストール== https://www.apachefriends.org/jp/index.html 2024/10/2現在最新の 8.2.4をダウンロード ===ディレクトリ=== /Applications/XAMPP...」)
 
(=mysql初回パス設定)
 
(同じ利用者による、間の3版が非表示)
行1: 行1:
 
==xamppインストール==
 
==xamppインストール==
https://www.apachefriends.org/jp/index.html
+
https://www.apachefriends.org/jp/download.html
  
 
2024/10/2現在最新の 8.2.4をダウンロード
 
2024/10/2現在最新の 8.2.4をダウンロード
行9: 行9:
 
==="“XAMPP”は、開発元が未確認のため開けません。"エラーが出る場合===
 
==="“XAMPP”は、開発元が未確認のため開けません。"エラーが出る場合===
 
macの設定のプライバシーから許可をする
 
macの設定のプライバシーから許可をする
 +
 +
===apache設定ファイル===
 +
/Applications/XAMPP/xamppfiles/etc/httpd.conf
 +
 +
===apache設定ドキュメントルート===
 +
DocumentRoot "/Applications/XAMPP/xamppfiles/htdocs"
 +
 +
===xamppコントロールパネル起動===
 +
Applications/XAMPP/manager-osx をクリック
 +
 +
===php.ini===
 +
/Applications/XAMPP/xamppfiles/etc/php.ini
 +
 +
===mysql起動===
 +
<pre>
 +
vi ~/.bash_profile ( or vi ~/.zshrc)
 +
 +
export PATH=$PATH:/Applications/XAMPP/xamppfiles/bin
 +
 +
source  ~/.bash_profile ( or source ~/.zshrc)
 +
</pre>
 +
 +
===mysql初回パス設定===
 +
<pre>
 +
mysql -uroot
 +
update mysql.user set password=password('パスワード1') where user = 'root';
 +
flush privileges;
 +
</pre>

2024年10月2日 (水) 21:34時点における最新版

xamppインストール

https://www.apachefriends.org/jp/download.html

2024/10/2現在最新の 8.2.4をダウンロード

ディレクトリ

/Applications/XAMPP

"“XAMPP”は、開発元が未確認のため開けません。"エラーが出る場合

macの設定のプライバシーから許可をする

apache設定ファイル

/Applications/XAMPP/xamppfiles/etc/httpd.conf

apache設定ドキュメントルート

DocumentRoot "/Applications/XAMPP/xamppfiles/htdocs"

xamppコントロールパネル起動

Applications/XAMPP/manager-osx をクリック

php.ini

/Applications/XAMPP/xamppfiles/etc/php.ini

mysql起動

vi ~/.bash_profile ( or vi ~/.zshrc)

export PATH=$PATH:/Applications/XAMPP/xamppfiles/bin

source  ~/.bash_profile ( or source ~/.zshrc)

mysql初回パス設定

mysql -uroot
update mysql.user set password=password('パスワード1') where user = 'root';
flush privileges;