「Apache」の版間の差分
提供: Lisa Wiki
行1: | 行1: | ||
− | WebサーバであるApace2のインストール方法を解説します | + | ==Apache== |
+ | ===Apacheとは=== | ||
+ | ===インストール方法=== | ||
+ | :WebサーバであるApace2のインストール方法を解説します | ||
sudo su | sudo su | ||
apt-get update | apt-get update | ||
行9: | 行12: | ||
apt-get install php5-curl | apt-get install php5-curl | ||
apt-get install imagemagick | apt-get install imagemagick | ||
− | + | :php.iniを編集します | |
− | ここで Apache の再起動 | + | nano /etc/php5/apache2/php.ini |
+ | :次の行を見つけ出し値を変更します | ||
+ | post_max_size = 1000M | ||
+ | always_populate_raw_post_data = -1 | ||
+ | upload_max_filesize = 1000M | ||
+ | :ここで Apache の再起動 | ||
apache2ctl restart | apache2ctl restart | ||
− | + | :ブラウザでhttp://IPアドレス/ にアクセスすると何らかのメッセージが表示されていれば成功です | |
− | ブラウザでhttp://IPアドレス/ にアクセスすると何らかのメッセージが表示されていれば成功です | + | |
<br/> | <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/> | + | <br/> |
− | + | :apache2.confを編集する | |
− | apache2.confを編集する | + | |
nano /etc/apache2/apache2.conf | nano /etc/apache2/apache2.conf | ||
− | この行を追記するとエラーは無くなります | + | :この行を追記するとエラーは無くなります |
ServerName osmc:80 | ServerName osmc:80 |
2015年5月21日 (木) 21:49時点における版
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
- php.iniを編集します
nano /etc/php5/apache2/php.ini
- 次の行を見つけ出し値を変更します
post_max_size = 1000M always_populate_raw_post_data = -1 upload_max_filesize = 1000M
- ここで 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