Apache
提供: Lisa Wiki
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