相关配置:
###############################################################################################################
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一旦编译失败,删除源码,重新编译!!!
