Chinaunix

标题: Ubuntu Apache2, PHP, CGI, etc....配置 [打印本页]

作者: Eleswen    时间: 2009-07-01 13:51
标题: Ubuntu Apache2, PHP, CGI, etc....配置
Apache
1.  apt-get install apache2
    test web page:
http://x.x.x.x

PHP
1.  apt-get insall php5
2.  apt-get install libapache2-mod-php5
    test.php:  
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>


本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/10965/showart_1982760.html




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2