Apache

提供: Lisa Wiki
2015年5月25日 (月) 20:24時点におけるRoot (トーク | 投稿記録)による版

移動: 案内検索

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