douzhuo1858 2016-02-24 14:39
浏览 31

每个虚拟主机具有不同的php配置

I have two virtualhosts on an apache web server. There is a document root for each of them:

>>/var/www/vhosts/

I set up a php-fpm, now I want to set different open_basedir for each of them. I removed

>>/etc/php.ini

then created two php.ini in different folders. Then to the ini vhost config file I added the code:

PHPINIDir /var/www/vhosts/website1

but when I get phpinfo() nothing is different than before. I think I missed something! How can I force php-fpm to get both php.ini for each virtualhost ?

  • 写回答

1条回答 默认 最新

  • doupao2277 2016-02-24 14:49
    关注

    You only need a php.ini.

    You must add :

    php_admin_value open_basedir /OPEN_BASEDIR_FOLDER_HERE

    To each VHOST config file.

    评论

报告相同问题?

悬赏问题

  • ¥15 加热介质是液体,换热器壳侧导热系数和总的导热系数怎么算
  • ¥15 想问一下树莓派接上显示屏后出现如图所示画面,是什么问题导致的
  • ¥100 嵌入式系统基于PIC16F882和热敏电阻的数字温度计
  • ¥15 cmd cl 0x000007b
  • ¥20 BAPI_PR_CHANGE how to add account assignment information for service line
  • ¥500 火焰左右视图、视差(基于双目相机)
  • ¥100 set_link_state
  • ¥15 虚幻5 UE美术毛发渲染
  • ¥15 CVRP 图论 物流运输优化
  • ¥15 Tableau online 嵌入ppt失败