2004年5月29日

apache

唯一公開されてるサーバー
CGIとPHPは動くようにします。


・apache
・php4

/etc/apache/httpd.conf
<IfModule mod_dir.c>
DirectoryIndex index.html index.htm index.shtml index.cgi index.php

ServerAdmin webmaster@
ServerName new.host.name
DocumentRoot /var/www

AddDefaultCharset off
# "/usr/lib/cgi-bin" could be changed to whatever your ScriptAliased
# CGI directory exists, if you have that configured.
<Directory /usr/lib/cgi-bin/>

#外す
LoadModule php4_module /usr/lib/apache/1.3/libphp4.so
AddType application/x-httpd-php3 .php3
AddType application/x-httpd-php3-source .phps
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
AddHandler cgi-script .cgi .sh .pl

トラックバックURL

このエントリーのトラックバックURL:
http://blog.deepsnow.biz/mt-tb.cgi/140

コメントする