WEB开发网
开发学院服务器WEB服务器Apache Apache+PHP5.0+GD+Zend+Mysql的配置 阅读

Apache+PHP5.0+GD+Zend+Mysql的配置

 2007-03-14 00:00:00 来源:WEB开发网   
核心提示: --with-extra-charset=all --with-client-ldflags=-all-static --with-mysqld-ldflags=-all-static --localstatedir=/data/mysql/data 如果出现了以下错误: checking

--with-extra-charset=all

--with-client-ldflags=-all-static

--with-mysqld-ldflags=-all-static

--localstatedir=/data/mysql/data

如果出现了以下错误:

checking for tgetent in -ltermcap... no

checking for termcap functions library... configure: error: No curses/termcap library found

说明 curses/termcap 库没有安装

apt-cache search curses | grep lib

安装 libncurses5-dev ,然后重新运行配置

mkdir /data

mkdir /data/mysql

mkdir /data/mysql/data

make

make install

/server/mysql/bin/mysql_install_db --user=mysql

chown -R mysql /data/mysql

chgrp -R mysql /data/mysql

chown -R root /server/mysql

chgrp -R mysql /server/mysql

cp /server/mysql/share/mysql/my-medium.cnf /server/mysql/my.cnf

/server/mysql/share/mysql/mysql.server start

/server/mysql/bin/mysqladmin -u root password 123456789

cd ..

##### Apache2 #####

cd httpd-2.0.54

./configure --prefix=/usr/local/apache --enabe-so --enable-ssl(如果不修改默认参数就直接安装就可以了)

make

make install

cd ..

修改 Apache 配置文件 /server/httpd/conf/httpd.conf :

DirectoryIndex index.html index.php

找到AddType application/x-gzip .gz .tgz

加入:AddType application/x-httpd-php .php

保存就可以了。

cd freetype-2.1.10

上一页  1 2 3 4  下一页

Tags:Apache PHP GD

编辑录入:爽爽 [复制链接] [打 印]
赞助商链接