Home >Backend Development >PHP Tutorial >php compilation (apache) apache tutorial apache foundation apachebench

php compilation (apache) apache tutorial apache foundation apachebench

WBOY
WBOYOriginal
2016-07-29 08:48:54888browse

'./configure' '--with-mysqli=/usr/local/mysql/bin/mysql_config' '--with-apxs2=/usr/local/apache2/bin/apxs' '--with-gd' '--with-jpeg-dir=/usr/local/lib' '--with-pdo-mysql' '--enable-mbstring' '--with-freetype-dir=/usr/local/lib'

./configure --prefix=/usr/local/php --with-apxs2=/usr/local/apache2/bin/apxs  --with-openssl --with-curl --enable-fpm --with-mysqli=mysqlnd --with-pdo-mysql=mysqlnd --with-gd --enable-mbstring --with-jpeg-dir=/usr/lib64 --with-freetype-dir=/usr/lib64

./configure --prefix=/usr/local/php --with-apxs2=/usr/local/apache2/bin/apxs  --with-openssl --with-curl --enable-fpm --with-mysqli=mysqlnd --with-pdo-mysql=mysqlnd --with-gd --enable-mbstring 

修改apache配置文件支持php
修改DirectoryIndex index.html 为DirectoryIndex index.html index.php
并添加AddType application/x-httpd-php .php

以上就介绍了php编译(apache),包括了Apache方面的内容,希望对PHP教程有兴趣的朋友有所帮助。

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn