多虚拟主机 
 
 /etc/httpd/conf/httpd.conf  
 配置  
 Listen 80  
 Listen 8080  
 IncludeOptional conf.d/*.conf  
  
 
 /etc/httpd/conf.d  
 新建A.conf(路径:/etc/httpd/conf.d/A.conf)  
 新建B.conf(路径:/etc/httpd/conf.d/B.conf)  
 <VirtualHost *:80> #端口  ? ? DocumentRoot "/var/www/html/dirA" #根目录  ? ? ServerName questionnaire  ? ? ServerAlias?  ? <Directory "/var/www/html/dirA">  ? ? ? Options FollowSymLinks ExecCGI  ? ? ? AllowOverride All  ? ? ? Order allow,deny  ? ? ? Allow from all  ? ? ? Require all granted  ?? ? ?DirectoryIndex index.php index.html error/index.html  ? </Directory>  </VirtualHost>  
  
PHP安装扩展 
在根目录下添加phpinfo.php,打开查看  
 
 <?php echo phpinfo(); ?>  
  
确认php.ini配置文件位置  
   
?确认扩展文件夹,看里面是否有对应的.so扩展文件  
   
?在php.ini中去掉extension=XXX.so前面的注释符 
                
        
        
    
  
 
 |