咨询热线:4006-75-4006

售前:9:00-23:30    备案:9:00-18:00    技术:7*24h

linux下如何配置PHP模块

2016-08-21 17:32:03 12957次

加载php?块,php5apache2_2代表使用的是apache2.2或以上版本 
LoadModule php5_module "c:/php/php5apache2_2.dll" 
PHPIniDir "C:/php" 
配置php文件类型映射 
AddType application/x-httpd-php .php 

配置conf/extra/httpd-vhosts.conf 

<VirtualHost *:80> 

ServerAdmin webmaster@dummy-host.localhost 

DocumentRoot "C:/PhpDocRoot/Site1" 

ServerName localhost 

ServerAlias localhost 

ErrorLog "logs/dummy-host.localhost-error.log" 

CustomLog "logs/dummy-host.localhost-access.log" common 

<Directory "C:/PhpDocRoot/Site1"> 

Options Indexes FollowSymLinks 

AllowOverride None 

Order allow,deny 

Allow from all 

</Directory> 

</VirtualHost> 

<VirtualHost *:80> 

ServerAdmin webmaster@dummy-host2.localhost 

DocumentRoot "C:/PhpDocRoot/Site2" 

ServerName localhost 

ErrorLog "logs/dummy-host2.localhost-error.log" 

CustomLog "logs/dummy-host2.localhost-access.log" common 

<Directory "C:/PhpDocRoot/Site2"> 

Options Indexes FollowSymLinks 

AllowOverride None 

Order allow,deny 

Allow from all 

</Directory> 

</VirtualHost> 

<Directory...>...</Directory> 


首页
最新活动
个人中心