我正在将网站迁移到新的域名和服务器,我遇到了一些问题。这个网站与Smarty合作,我以前从未使用过它。我想我遇到了一个非常基本的问题,但我无法在网上找到答案。
现在只有每一页(即使是一个空白的test.php
文件,其中包含一个简单的echo
),我都会收到“无法打开流”的错误。
Warning: rename(/home/*websitename*/domains/*websitename*.com/public_html//skins/default/compiled/65e3d4d7349f9687ce73f56b61992749304409a2.file.index.tpl.php) [function.rename]: failed to open stream: Permission denied in /home/*websitename*/domains/*websitename*.com/public_html/external/smarty/sysplugins/smarty_internal_write_file.php on line 48
Warning: rename(/tmp/wrtPBIHNP,/home/*websitename*/domains/*websitename*.com/public_html//skins/default/compiled/65e3d4d7349f9687ce73f56b61992749304409a2.file.index.tpl.php) [function.rename]: Permission denied in /home/*websitename*/domains/*websitename*.com/public_html/external/smarty/sysplugins/smarty_internal_write_file.php on line 48
Warning: chmod() [function.chmod]: No such file or directory in /home/*websitename*/domains/*websitename*.com/public_html/external/smarty/sysplugins/smarty_internal_write_file.php on line 50
Warning: include(/home/*websitename*/domains/*websitename*.com/public_html//skins/default/compiled/65e3d4d7349f9687ce73f56b61992749304409a2.file.index.tpl.php) [function.include]: failed to open stream: No such file or directory in /home/*websitename*/domains/*websitename*.com/public_html/external/smarty/sysplugins/smarty_internal_template.php on line 432
Warning: include() [function.include]: Failed opening '/home/*websitename*/domains/*websitename*.com/public_html//skins/default/compiled/65e3d4d7349f9687ce73f56b61992749304409a2.file.index.tpl.php' for inclusion (include_path='.:/usr/local/lib/php') in /home/*websitename*/domains/*websitename*.com/public_html/external/smarty/sysplugins/smarty_internal_template.php on line 432
这看起来像是一个提问的问题,但我已经在FTP预设777(测试)上创建了每个文件,但这并没有解决它。
有两个反斜杠/public_html//skins/
很奇怪。
除了配置文件之外,“旧”服务器上的代码完全相同。只有新的东西是域名。
我做错了什么?
答案 0 :(得分:0)
您应该为目录编译权限755或777设置。
您可能还应删除所有已编译和缓存的文件(如果使用缓存),因为它也可能导致问题