最近在折腾Debian5,环境一直没成功,晕死注意:我不是apt-get install apache2这样安装的。我是下载软件包,编译安装。
./configure -enable-headers -enable-info -enable-rewrite -enable-so -prefix=/usr/local/apache
make
make install现在apache已经启动,并且可以运行静态网页,请问要怎样安装才能运行php程序?
PS:不要发一些随便搜的链接,我试了网上n个教程,都不行,无语啊。

解决方案 »

  1.   

    You need to insert the following lines into your Apache httpd.conf configuration file to load the PHP module for Apache 2.x:# 
    LoadModule php5_module "c:/php/php5apache2.dll"
    AddHandler application/x-httpd-php .php# configure the path to php.ini
    PHPIniDir "C:/php"
      

  2.   

    WAMP 装一个就可以了。不用自己一个一个装
      

  3.   


    晕,我用的是linux,不是win...
      

  4.   

    php5手册你下载一个过来。。那上面详细的介绍了怎么安装环境