「Apache」の版間の差分

提供: Lisa Wiki
移動: 案内検索
行1: 行1:
==Apache==
+
==Apacheとは==
===Apacheとは===
+
==Apacheの設置==
===インストール方法===
+
 
:WebサーバであるApace2のインストール方法を解説します
 
:WebサーバであるApace2のインストール方法を解説します
 
  sudo su
 
  sudo su
行12: 行11:
 
  apt-get install php5-curl
 
  apt-get install php5-curl
 
  apt-get install imagemagick
 
  apt-get install imagemagick
 +
:ブラウザでhttp://IPアドレス/ にアクセスすると何らかのメッセージが表示されていれば成功です
 +
==Apacheの設定==
 
:php.iniを編集します
 
:php.iniを編集します
 
  nano /etc/php5/apache2/php.ini  
 
  nano /etc/php5/apache2/php.ini  
行18: 行19:
 
  always_populate_raw_post_data = -1
 
  always_populate_raw_post_data = -1
 
  upload_max_filesize = 1000M
 
  upload_max_filesize = 1000M
:ここで Apache の再起動
+
==Apacheの再起動==
 +
:Apache の再起動
 
  apache2ctl restart
 
  apache2ctl restart
:ブラウザでhttp://IPアドレス/ にアクセスすると何らかのメッセージが表示されていれば成功です
+
==エラーメッセージが出てる場合==
<br/>
+
:apache2ctl restart した時にエラーメッセージが出てる場合<br/>
:apache2ctl restart した時エラーメッセージが出てる場合<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 '''
 
:'''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/>
 
 
:apache2.confを編集する
 
:apache2.confを編集する
 
  nano /etc/apache2/apache2.conf
 
  nano /etc/apache2/apache2.conf
 
:この行を追記するとエラーは無くなります
 
:この行を追記するとエラーは無くなります
 
  ServerName osmc:80
 
  ServerName osmc:80

2015年5月25日 (月) 20:24時点における版

Apacheとは

Apacheの設置

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

Apacheの設定

php.iniを編集します
nano /etc/php5/apache2/php.ini 
次の行を見つけ出し値を変更します
post_max_size = 1000M
always_populate_raw_post_data = -1
upload_max_filesize = 1000M

Apacheの再起動

Apache の再起動
apache2ctl restart

エラーメッセージが出てる場合

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