VPS侦探论坛

 找回密码
 注册
查看: 9213|回复: 3

[Apache] wwwroot 文件夹复制之后报错

[复制链接]
发表于 2011-7-25 13:35:14 | 显示全部楼层 |阅读模式

我将一台服务器上的wwwroot 目录,整个的拷到另外一台服务器上,然后就提示如下错误:

Warning: touch() [function.touch]: Utime failed: Permission denied in /home/wwwroot/news/smarty/libs/sysplugins/smarty_internal_template.php on line 255

Warning: rename(templates_c/f69b8ce2e31684ae06f1b3e84821e07e3dfddb2f.file.index.html.php) [function.rename]: failed to open stream: Permission denied in /home/wwwroot/news/smarty/libs/sysplugins/smarty_internal_write_file.php on line 48

Warning: rename(/tmp/wrtrz7PFX,templates_c/f69b8ce2e31684ae06f1b3e84821e07e3dfddb2f.file.index.html.php) [function.rename]: Permission denied in /home/wwwroot/news/smarty/libs/sysplugins/smarty_internal_write_file.php on line 48

Warning: chmod() [function.chmod]: Operation not permitted in /home/wwwroot/news/smarty/libs/sysplugins/smarty_internal_write_file.php on line 50

请教各位,这是什么原因?
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2011-7-25 15:18:23 | 显示全部楼层


权限不够,被拒
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
发表于 2014-4-30 15:49:27 | 显示全部楼层

这不是报错,是禁告,根据提示查找原因,有的还继承你复制之前的权限
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2014-5-28 16:24:00 | 显示全部楼层



你2台Linux主机的WEB服务使用的用户应不一样。
如果用户名一样,而且是用同样的方法安装的。
那就是你复制时用ROOT用户做的,把权限给复制过来了。
我建议你在源机器上用tar  cjvfp  来压缩文件,在目标机器上用tar xjvfp来解压缩
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|VPS侦探 ( 鲁ICP备16040043号-1 )

GMT+8, 2024-5-7 02:13 , Processed in 0.026060 second(s), 16 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表