Debian Lighttpd PHP MySQL

来自开放百科 - 灰狐
(版本间的差异)
跳转到: 导航, 搜索
第14行: 第14行:
 
  shell> bin/mysqld_safe --user=mysql &
 
  shell> bin/mysqld_safe --user=mysql &
  
编译 PHP
+
编译 PHP, 因为 PHP 5.2.0 提供了很多对XML的支持,但这里不需要,就先disable 这些 XML 支持
  
  ./configure --prefix=/usr/local/php-5.1.2 --enable-fastcgi --enable-foce-cgi-redirect --with-mysql=/usr/local/mysql-5.2.0
+
  ./configure --prefix=/usr/local/php-5.1.2 --enable-fastcgi --enable-foce-cgi-redirect --with-mysql=/usr/local/mysql-5.2.0 --disable-libxml --disable-dom --disable-simplexml --disable-xml  --disable-xmlreader --disable-xmlwriter --without-pear
 
  make
 
  make
 
  make install
 
  make install
  
 
编译 Lighttpd
 
编译 Lighttpd

2007年1月17日 (三) 20:38的版本

安装 MySQl 二进版本

下载解压后执行以下命令:

shell> groupadd mysql
shell> useradd -g mysql mysql
shell> cd /usr/local
shell> gunzip < /PATH/TO/MYSQL-VERSION-OS.tar.gz | tar xvf -
shell> ln -s FULL-PATH-TO-MYSQL-VERSION-OS mysql
shell> cd mysql
shell> scripts/mysql_install_db --user=mysql
shell> chown -R root  .
shell> chown -R mysql data
shell> chgrp -R mysql .
shell> bin/mysqld_safe --user=mysql &

编译 PHP, 因为 PHP 5.2.0 提供了很多对XML的支持,但这里不需要,就先disable 这些 XML 支持

./configure --prefix=/usr/local/php-5.1.2 --enable-fastcgi --enable-foce-cgi-redirect  --with-mysql=/usr/local/mysql-5.2.0 --disable-libxml --disable-dom --disable-simplexml --disable-xml  --disable-xmlreader --disable-xmlwriter --without-pear
make
make install

编译 Lighttpd

分享您的观点
个人工具
名字空间

变换
操作
导航
工具箱