常州五颜六色网络技术有限公司 -> 技术文档 -> debian配置PHP5+MYSQL+Apache 登录 -> 注册 -> 回复主题 -> 发表主题

阿七 2007-08-14 15:57
转自:http://blog.csdn.net/oleverx/archive/2005/12/23/559804.aspx

1、先添加个源:

在/etc/apt/sources.list中添加:

deb http://packages.dotdeb.org stable all

deb-src http://packages.dotdeb.org stable all

apt-get update

2、apt-get install php5

    apt-get install   apache2

    apt-get install   mysql-server   mysql-client

    apt-get install php5-mysql php5-curl php5-gd

    dpkg -l 'php5-*'

    aptitude install libapache2-mod-php5 php5-mysql

3、/etc/apache2/httpd.conf 添加:

    AddType application/x-httpd-php .php

    AddType application/x-httpd-php-source .phps

4、ln -s /etc/apache2/mods-available/php5.* /etc/apache2//mods-enabled

5、apt-get install apache2-mpm-prefork

6、/etc/init.d/apache2 restart


查看完整版本: [-- debian配置PHP5+MYSQL+Apache --] [-- top --]



Copyright © 2005-2014 5y6s Inc. 苏ICP备05001866号 Powered by PHPWind 5.0.1
Time 0.014633 second(s),query:3 Gzip enabled