- Apache がインストールされていることの確認:
	
	Terminal から
	~ % sw_vers
ProductName:	macOS
ProductVersion:	12.3.1
BuildVersion:	21E258
~ % httpd -v
Server version: Apache/2.4.51 (Unix)
Server built:   Feb 12 2022 02:40:22
	 
	 
 - Apache の起動テスト
	
	- Terminal から
		
	
 - Webブラウザから http://localhost/
		
	このソースファイルは,/Library/WebServer/Documents/index.html.en
	
  
	
  
	
 - /Library/WebServer/Documents の owner を,管理者にする
	
% sudo chown -R [管理者] /Library/WebServer/Documents
	 
	
  
 - Apache 自動起動の設定
	
% sudo launchctl load -w /System/Library/LaunchDaemons/org.apache.httpd.plist
	 
自動起動を止めるときは,
	% sudo launchctl unload -w /System/Library/LaunchDaemons/org.apache.httpd.plist
	 
	
  
 - DirectoryIndex の設定
	
% sudo /etc/apache2/httpd.conf
	
	つぎのように書く:
		DirectoryIndex index_j.html index.html
		 
	 
	
  
	
 - PHP を使う場合
	
	- etc/apache2/httpd.conf の編集
		
#LoadModule php5_module libexec/apache2/libphp5.so
		 をコメントアウト
		 
	  
	
  
   |