Apache
1. apt-get install apache2
test web page:
PHP
1. apt-get insall php5
2. apt-get install libapache2-mod-php5
test.php: echo phpinfo(); ?>
3. /etc/init.d/apache2 restart
CGI
1. /etc/apache2/sites-enabled/000-default
AddHandler cgi-script .cgi .pl <Directory "/var/www/cgi"> AllowOverride all Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch Order allow,deny Allow from all </Directory>
|
阅读(512) | 评论(0) | 转发(0) |