dqqy64515 2018-10-12 12:17
浏览 46

如何为在IIS共享主机上运行的Joomla配置PHP basedir

I have the following setup:

  • IIS 10 with Plesk Onyx 17.8.11.
  • Joomla 3.8.13/PHP 7.2.10. The website is hosted in shared hosting provider.

After installing Gantry 5 I get the following warning on the Joomla Control Panel page:

SplFileInfo::isFile(): open_basedir restriction in effect. File(gantry-themes:/\beez3) is not within the allowed path(s): (D:/Inetpub/vhosts/xxx\;C:\Windows\Temp)

Looking at the PHP Settings tab of the Joomla System Information page I see the following setting:

Open basedir D:/Inetpub/vhosts/xxx\;C:\Windows\Temp\

As far as I can tell, the D:/Inetpub/vhosts/xxx\ is incorrect since the root folder of the website is:

D:/Inetpub/vhosts/xxx/yyy

In fact, I had to set the Path to Temp Folder to D:/Inetpub/vhosts/xxx/yyy/tmp in the Joomla Global Configuration Server Settings in order to install Gantry using the Joomla Install From Folder method.

On the other hand, I cannot find a way to modify the value of Open basedir setting either from Plesk or otherwise. As a result, the Gantry component page reports the same error:

Twig_Error_Runtime An exception has been thrown during the rendering of a template ("SplFileInfo::isFile(): open_basedir restriction in effect. File(gantry-themes:/\beez3) is not within the allowed path(s): (D:/Inetpub/vhosts/xxx\;C:\Windows\Temp)").

Please note, that I refer to Gantry as an example; The same problem occurs for every other Joomla extension I tried to install.

Is there a way to properly configure Joomla/PHP on my setup?

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 C++ yoloV5改写遇到的问题
    • ¥20 win11修改中文用户名路径
    • ¥15 win2012磁盘空间不足,c盘正常,d盘无法写入
    • ¥15 用土力学知识进行土坡稳定性分析与挡土墙设计
    • ¥70 PlayWright在Java上连接CDP关联本地Chrome启动失败,貌似是Windows端口转发问题
    • ¥15 帮我写一个c++工程
    • ¥30 Eclipse官网打不开,官网首页进不去,显示无法访问此页面,求解决方法
    • ¥15 关于smbclient 库的使用
    • ¥15 微信小程序协议怎么写
    • ¥15 c语言怎么用printf(“\b \b”)与getch()实现黑框里写入与删除?