# mkdir -p /var//html
# cp /usr/local/apache/bin/apachectl /etc/init.d/httpd
# chmod 755 /etc/init.d/httpd
# cd ..
vim /etc/init.d/httpd
# Startup script for the Apache Web Server
#
# chkconfig: - 85 15
# description: Apache is a World Wide Web server. It is used to serve \
# HTML files and CGI.
# processname: httpd
# pidfile: /usr/local/apache/logs/httpd.pid
# config: /usr/local/apache/conf/httpd.conf
ulimit -n 1024
ulimit -n 4096
ulimit -n 8192
ulimit -n 16384
ulimit -n 32768
ulimit -n 65535
编译安装PHP这里编译成了CGI-PHP
# tar -zxf php-5.2.14.tar.gz
# cd php-5.2.14
#编译php,这里我们为php打入补丁,有助于防止邮件发送被滥用(多用户)以及在邮件中提供有价值的信息。补丁介绍信息请点击:~steveb/patches/php-mail-header-patch/
# patch -p1 < ../php5-mail-header.patch
#以PHP-CGI形式编译PHP
# ./configure --prefix=/usr/local/php --with-config-file-path=/etc \
--enable-force-cgi-redirect --enable-fastcgi --enable-bcmath \
--enable-calendar --enable-exif --enable-ftp --enable-gd-native-ttf \
--enable-libxml --enable-magic-quotes --enable-mbstring --enable-pdo \
--enable-soap --enable-sockets --enable-zip --with-bz2 --with-curl \
--with-curlwrappers --with-freetype-dir --with-gd --with-gettext \
--with-jpeg-dir --with-kerberos --with-libexpat-dir=/usr \
--with-libxml-dir=/usr --with-mcrypt=/usr --with-mhash=/usr \
--with-mysql=/usr/local/mysql \
--with-mysql-sock=/usr/local/mysql/var/localhost.localdomain.pid \
--with-mysqli=/usr/local/mysql/bin/mysql_config --with-openssl=/usr \
--with-openssl-dir=/usr \
--with-pdo-mysql=/usr/local/mysql/bin/mysql_config \
本文来自电脑杂谈,转载请注明本文网址:
https://www.pc-fly.com/a/jisuanjixue/article-39787-4.html
2有点卡的观望中
败就是败
我以FFF团的名义召唤你们