如何从 cpanel 更改文件/文件夹权限?

发布于 2024-12-27 03:22:06 字数 201 浏览 2 评论 0原文

我有一个 joomla 网站,最近移动了该网站,但遇到了文件权限问题。简单的解决方法是将所有文件夹和文件的权限更改为 0777,执行我需要执行的操作,然后将它们更改回来。无论如何,我认为这是不可能的——一次性改变它们,然后让一切保持原样。

另一个解决方案是将权限从 cpanel 切换到用户 Apache。我可以这样做吗?如何?我还有什么其他选择?

谢谢!

I have a joomla website, which I recently moved and I'm having problems with file permissions. The easy fix would be to change all the folders and files permission to 0777, do whatever I need to do, and then change them back. I don't think that's possible anyway - to change them all at once then make everything as it was.

The other solution would be to switch permissions to user Apache from cpanel. Can I do that? How? What other options do I have?

Thanks!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

仅一夜美梦 2025-01-03 03:22:06

事实证明,您无法从 cpanel 更改所有者。我的解决方案是联系我的主机,让我转移到他们的另一台使用 FastCGI 的服务器,这使我所有文件的所有者成为 Apache(而不是以前的 null 或无人)。

我在互联网上找不到答案,我不得不问他们,他们给了我这个解决方案。

Well it turns out that you can't change the owner from the cpanel. My solution was to contact my hosting and have me transferred to another server of theirs that used FastCGI, which made all my files' owner Apache (instead of null, or nobody, what it was before).

I couldn't find my answer on the internet, I had to ask them and they gave me that solution.

岁吢 2025-01-03 03:22:06

您可以使用cpanel更改文件/文件夹权限。

  1. 只需登录您的 cpanel,

  2. 您可以在其中找到一个名为“文件管理器”的选项。

  3. 只需单击它,它就会在窗口的表格中列出您的所有文件和文件夹。

    在表中,最后一列将被命名为“Perms”。只需单击与您要更改权限的文件/文件夹对应的列即可。

You can change the file/folder permission using the cpanel.

  1. Just login to your cpanel,

  2. there you can find a option called "File Manager".

  3. Just click on that, it will list all your files and folders in a table at the window.

    In the table, at the last column which will be named as "Perms". Just click on the column corresponding to the file/folder for which you want to change the permission.

泪痕残 2025-01-03 03:22:06

我知道这是旧线程,但可能对下一个用户来这里有用。

Jacob 有一个很好的工具可以做到这一点,在这里你可以访问他的页面 http://boomshadow .net/tech/fixes/fixperms-script/,但您可能需要 root 访问权限才能执行此操作。

I know this is old thread, but may useful for next user come here.

There is good tool for doing this by Jacob, here you can visit his page http://boomshadow.net/tech/fixes/fixperms-script/, but may you need root access to do it.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文