Apache Apache 5 http www apache org http

  • Slides: 15
Download presentation

Apacheとは・・・ ・Apacheのダウンロードサイト 5 http: //www. apache. org/ http: //www. apache. or. jp

Apacheとは・・・ ・Apacheのダウンロードサイト 5 http: //www. apache. org/ http: //www. apache. or. jp

Apacheの設定 Port 80 Document. Root "/usr/local/apache/htdocs" <Directory /> Options Follow. Sym. Links → Options

Apacheの設定 Port 80 Document. Root "/usr/local/apache/htdocs" <Directory /> Options Follow. Sym. Links → Options Follow. Sym. Links Exec. CGI Includes Allow. Override None </Directory> User. Dir public_html 10 Directory. Index index. html → Directory. Index index. html index. htm index. shtml index. php 3 Access. File. Name. htaccess → #Access. File. Name. htaccess Hostname. Lookups Off → Hostname. Lookups On

Apacheの設定 #Add. Type application/x-httpd-php 3 -source. phps #Add. Type application/x-httpd-php. php #Add. Type application/x-httpd-php-source.

Apacheの設定 #Add. Type application/x-httpd-php 3 -source. phps #Add. Type application/x-httpd-php. php #Add. Type application/x-httpd-php-source. phps #Add. Handler cgi-script. cgi #Add. Type text/html. shtml #Add. Handler server-parsed. shtml 11

Apacheの設定 ○Apacheの自動起動 cd /etc/rc. d/rc. httpdを変更 /var/lib/apache/sbin/apachectl start → /usr/local/apache/bin/apachectl start ○Apacheの再起動 ps -axu|grep

Apacheの設定 ○Apacheの自動起動 cd /etc/rc. d/rc. httpdを変更 /var/lib/apache/sbin/apachectl start → /usr/local/apache/bin/apachectl start ○Apacheの再起動 ps -axu|grep apache で、apacheのPID(xxxx)を検出 kill -HUP xxxx ○Apacheの再起動 cd /usr/local/apache/bin. /apachectl restart ○モジュールの確認 cd /usr/local/apache/bin. /httpd -l 12

おしまい Q&A Do you have any questions ? 15

おしまい Q&A Do you have any questions ? 15