allowoverride all nginx_override和new_override wamp(4)

电脑杂谈  发布时间:2017-04-06 10:09:28  来源:网络整理

# 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

相关阅读
    发表评论  请自觉遵守互联网相关的政策法规,严禁发布、暴力、反动的言论

    热点图片
    拼命载入中...