手机版
你好,游客 登录 注册 搜索
背景:
阅读新闻

LAMP--源码MySQL集群版搭建

[日期:2012-09-28] 来源:Linux社区  作者:kumu_linux [字体:大 中 小]

相关配置:

###############################################################################################################

1.中文

/usr/local/apache2/conf/httpd.conf

/usr/local/apache2/conf/extra/httpd-languages.conf

httpd-languages.conf

DefaultLanguage zh-CN       

LanguagePriority zh-CN ...... #修改中文优先级

 

2.虚拟主机

/usr/local//apache2/conf//httpd.conf

Includeconf/extra/httpd-vhosts.conf

NameVirtualHost*:80

<virtualhost *:80>

  docuementroot /www

  servername    teacher.cluster.com

  customlog   /var/log/httpd/teacher-access.log combined

  errorlog  /var/log/httpd/teacher-error.log

</virtualhost>

 

3.404

/usr/local//apache2/conf//httpd.conf

ErrorDocument404 /404.html

 

4.允许访问

    Order deny,allow

    Deny from all

 

5.索引

DirectoryIndex index.htmlindex.php

 

6.监控

/usr/local//apache2/conf//httpd.conf

Includeconf/extra/httpd-info.conf

<Location /server-status>

    SetHandlerserver-status

    Order deny,allow

    Deny from all

    Allow from10.1.1.0/255.255.255.0

</Location>

ExtendedStatus On

 ###############################################################################################################

freetype-2.4.9.tar.gz --> 解压

#./configure

#make && make install

 

libpng-1.5.9.tar.gz --> 解压

# ./configure --with-zlib-prefix=/usr--with-pkgconfigdir=/usr/lib/pkgconfig/

#make && make install

 

jpegsrc.v8.tar.gz --> 解压

#./configure && make &&make install

 

# yum install -y imake

xpm-3.4k.tar.gz --> 解压

#xmkmf -a

#make

# make install.man

 

gd-2.0.36RC1.tar.gz --> 解压

#./configure--with-libiconv-prefix=/usr/local --with-png=/usr/local--with-freetype=/usr/local --with-fontconfig=/usr --with-jpeg=/usr/local--with-xpm=/usr/local

#make && make install

 

libmcrypt-2.5.8.tar.bz2 --> 解压

# ./configure--enable-static

#make && make install

 

mhash-0.9.9.9.tar.bz2 --> 解压

# ./configure

#make && make install

 

mcrypt-2.6.6.tar.gz --> 解压

# ./configure--with-libiconv-prefix=/usr/local --with-libmcrypt-prefix=/usr/local

# make && make install

 

#yum install -y libxml2  libcurl-devel

 

php-5.3.10.tar.gz --> 解压

#./configure--with-apxs2=/usr/local/apache2/bin/apxs --disable-ipv6 --with-libxml-dir=/usr--with-openssl=/usr --with-pcre-regex=/usr/local --with-zlib=/usr--with-bz2=/usr --enable-calendar --with-curl=/usr  --with-pcre-dir=/usr/local --enable-ftp--with-openssl-dir=/usr --with-gd=/usr/local --with-jpeg-dir=/usr/local--with-png-dir=/usr/local --with-zlib-dir=/usr/local --with-xpm-dir=/usr--with-freetype-dir=/usr/local --enable-gd-native-ttf --enable-gd-jis-conv--with-mhash=/usr/local --enable-mbstring --with-mcrypt=/usr/local--with-MySQL=/usr/local/mysql --with-mysql-sock=/var/run/myqld/mysql5.socket--with-mysqli=/usr/local/mysql/bin/mysql_config --with-snmp=/usr--enable-sockets --enable-zip

# make && make install

 

注意:php一旦编译失败,删除源码,重新编译!!!

linux
相关资讯       lamp 
本文评论   查看全部评论 (0)
表情: 表情 姓名: 字数

       

评论声明
  • 尊重网上道德,遵守中华人民共和国的各项有关法律法规
  • 承担一切因您的行为而直接或间接导致的民事或刑事法律责任
  • 本站管理人员有权保留或删除其管辖留言中的任意内容
  • 本站有权在网站内转载或引用您的评论
  • 参与本评论即表明您已经阅读并接受上述条款