Apache设置备忘

Apache httpd下载: http://www.apachelounge.com/
PHP下载: http://php.net/

Apache配置(2.4)
conf/httpd.conf:
引用
ServerRoot "服务器目录"
Listen 端口号
PHPIniDir "PHP目录"
LoadModule php5_module "PHP目录/php5apache2_4.dll"
DocumentRoot "部署目录"
<Directory "部署目录">
Options FollowSymLinks
DirectoryIndex index.php
AddType application/x-httpd-php .php .phtml
AcceptFilter http none
AcceptFilter https none
EnableSendfile Off
EnableMMAP off

添加Apache服务
引用
bin\httpd.exe -k -install
bin\ApacheMonitor.exe


PHP配置(5.4)
引用
复制php.ini-development为php.ini:
extension_dir = "PHP目录/ext"
extension=php_mbstring.dll
extension=php_mysql.dll
extension=php_mysqli.dll

你可能感兴趣的:(apache)