北京时间:
 
 
 首页 
 
 
 
 
 
 
 洛杉矶论坛 
   
洛杉矶华人论坛 |  搜索  |  注册  |  登陆  |  FAQ 
 
 
Apache and php installation

 
发表新帖   回复帖子    洛杉矶华人论坛 首页 -> 技术交流
阅读上一个主题 :: 阅读下一个主题  
留言
Apache and php installation  引用并回复
 
发布人: Mrs LA   发布于: 2008/06/23, 8:06 pm

Assume the base folder is /srv/

Apache Installation

More apache configuration

http://httpd.apache.org/docs/2.2/programs/configure.html#configurationoptions

代码:
./configure --prefix=/srv/httpd --enable-so --enable-mods-shared=all --enable-modules=all --with-mpm=prefork --enable-ssl --enable-deflate --enable-expires --enable-rewrite

Last build configure information can be found in build directory. config.nice

代码:
make

make install

GD Installation

代码:
./configure --prefix=/srv/gd

make

make install

PHP installation

代码:
./configure --prefix=/srv/php --with-apxs2=/srv/httpd/bin/apxs --with-mysql=/srv/mysql --with-gd=/srv/gd --with-jpeg-dir=/usr/lib --with-ttf --with-zlib --with-png-dir=/usr/lib --with-freetype-dir=/srv/gd/freetype --enable-mbstring --enable-zip --with-zlib --with-zlib-dir=/usr/local/lib --with-gettext --enable-ftp --with-zlib --enable-pdo=shared --with-pdo-sqlite=shared --with-sqlite=shared

make

make install

More on:

http://www.php.net/manual/en/install.unix.php

Apache 2.2 has mod_ssl as build in module

Need to check http://httpd.apache.org/docs/2.2/new_features_2_2.html

lot of modules, like mod_access, their name has been changed

MySQL Post Installation Tasks

代码:
shell> mysql -u root

mysql> DROP USER '';

mysql> SET PASSWORD FOR 'root'@'localhost' = PASSWORD('newpwd');

mysql> SET PASSWORD FOR 'root'@'host_name' = PASSWORD('newpwd');




_________________
支持洛杉矶华人,点评洛杉矶华人商家
返回页首
阅览成员资料 (Profile) 发送私人留言 (PM)
从以前的帖子开始显示:   
点评这篇文章
 
1 2 3 4 5
2个人参与评分
发表新帖   回复帖子    洛杉矶华人论坛 首页 -> 技术交流 论坛时间为 PST (美国/加拿大)
1页/共1   
转跳到:  


 
Copyright 2006-2008 www.ChineseInLA.com All rights reserved. Privacy Policy