★Tomomi@Wiki★
Webサーバ
最終更新:
sunflower387695
通常Linux4.0ではapache2が標準装備。
・インストール
apt-get install apache2
・アップグレード
apt-get update
apt-get upgrade
・本体
/etc/apache2
・設定ファイル
/etc/apache2/conf/httpd.conf
・起動の仕方
/etc/init.d/apache2 start
・設定ファイルにサーバ名など設定
・/var/www/html/ にindexを置く
・PC起動時に自動起動
/etc/rc.local に /usr/sbin/aphache2ctl start の一行を追加
・再起動
/etc/init.d/apache2 restart
・CGI稼働可
設定ファイル中の
# The Options directive isboth complicated and important.Please see
# http://httpd.apache.org/docs/2.2/mod/core.html#options
# for more information.
の下に
Options Indexes FollowSymLinks ExecCGI
の一行を追加