「Apache」の版間の差分

提供: Lisa Wiki
移動: 案内検索
行6: 行6:
 
  apt-get install php5-mysql
 
  apt-get install php5-mysql
 
  apt-get install php-apc
 
  apt-get install php-apc
 +
apt-get install php5-gd
 +
apt-get install php5-curl
 
  apt-get install imagemagick
 
  apt-get install imagemagick
  
行17: 行19:
 
'''AH00558: apache2: Could not reliably determine the server’s fully qualified domain name, using ::1. Set the ‘ServerName’ directive globally to suppress this message '''<br/>
 
'''AH00558: apache2: Could not reliably determine the server’s fully qualified domain name, using ::1. Set the ‘ServerName’ directive globally to suppress this message '''<br/>
  
/etc/apache2/apache2.confを編集する
+
apache2.confを編集する
ServerName osmc:80
+
nano /etc/apache2/apache2.conf
 
この行を追記するとエラーは無くなります
 
この行を追記するとエラーは無くなります
 +
ServerName osmc:80

2015年5月20日 (水) 23:06時点における版

WebサーバであるApace2のインストール方法を解説します

sudo su
apt-get update
apt-get install apache2
apt-get install php5
apt-get install php5-mysql
apt-get install php-apc
apt-get install php5-gd
apt-get install php5-curl
apt-get install imagemagick

ここで Apache の再起動

apache2ctl restart

ブラウザでhttp://IPアドレス/ にアクセスすると何らかのメッセージが表示されていれば成功です

apache2ctl restart した時エラーメッセージが出てる場合
AH00558: apache2: Could not reliably determine the server’s fully qualified domain name, using ::1. Set the ‘ServerName’ directive globally to suppress this message

apache2.confを編集する

nano /etc/apache2/apache2.conf

この行を追記するとエラーは無くなります

ServerName osmc:80