积分 753276
经验 757270
突出贡献 突出贡献
热心标兵 热心标兵
论坛元老 论坛元老
智慧达人 智慧达人

Apache and php installation

发布于: 2008/06/23  9: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
Download GD library
http://www.libgd.org
代码:
./configure --prefix=/srv/gd
make
make install


MySQL Installation
代码:
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> chown -R mysql .
shell> chgrp -R mysql .
shell> scripts/mysql_install_db --user=mysql
shell> chown -R root .
shell> chown -R mysql data
shell> bin/mysqld_safe --user=mysql &


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');

_________________
洛杉矶华人资讯网-华人资讯,一网打尽
返回页首
举报
点评这篇文章
点评这篇文章
 
1 2 3 4 5
2个人参与评分
Advertiser Disclosure
最新商家点评
ChineseInLA总共有76646条点评, 59229次评分
洛杉矶格力空调总代理
Review by 6201144 at 09/06/25
请问你们公司地址 谢谢
天一空调、制冷设备安装及维修
Review by 9004A m y at 09/06/25
今天这个师傅到我家把空调修好了,我非常的高兴,因为我找了好几个师傅都没有修好,这个师傅经验丰富,把我家的空调修好了...
专业驾校教练—郑教练(女教练)超耐心
Review by 2379cj6bj6 at 09/06/25
老师教得很详细也很有耐心!