简体   繁体   English

Cpanel 没有让我选择更改我的一个域的根目录

[英]Cpanel is not giving me option to change the root directory for one of my domains

I need to change the root directory for one of my domains,我需要更改我的一个域的根目录,

But in my cpanel i dont find any options, just hard cores of system, but i have very basic knowledge about systems and servers.但是在我的 cpanel 中,我没有找到任何选项,只是系统的硬核,但我对系统和服务器有非常基本的了解。

How i can change that directory as easy as possible?我怎样才能尽可能简单地更改该目录? I just need to change something because im gonna install laravel, and i want to change the public html to the public of laravel.我只需要更改一些内容,因为我要安装 laravel,并且我想将公共 html 更改为 laravel 的公共。

I was looking for the file that has the apache config, but it says like "the current config doesnt need to be changed or updated, bacause can be overryde", so i tought in Cpanel maybe i got an option for this.我正在寻找具有 apache 配置的文件,但它说“当前配置不需要更改或更新,因为可能会被覆盖”,所以我在 Cpanel 中选择了这个选项。

Thanks, By the way i got an VPS, not shared.谢谢,顺便说一下,我有一个 VPS,没有共享。 Using CENTOS 7.9.使用 CENTOS 7.9。

Thanks and good night ^^谢谢,晚安^^

In cPanel, you can't change main domain directory/document root.在 cPanel 中,您不能更改主域目录/文档根目录。 If you want to change the document root, just change the main domain to another/random domain.如果要更改文档根目录,只需将主域更改为另一个/随机域。 Then add the domain that you want to change the root directory as addon domain然后将要更改根目录的域添加为插件域

It's not recommended overriding Apache config.不建议覆盖 Apache 配置。 It's may break your system.它可能会破坏你的系统。 WHM/cPanel exists to manage domains without a system admin knowledge WHM/cPanel 的存在是为了在没有系统管理员知识的情况下管理域

Do you try change this using console in Centos?您是否尝试使用 Centos 中的控制台更改此设置? maybe will be better using console and open the file that contain the directory root使用控制台可能会更好并打开包含目录根的文件

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 WHM/cPanel - 多个 IP 指向一个根目录 - WHM/cPanel - Multiple IPs pointing to one root dir 如何用我的预定义目录更改 adb 目标 shell 根目录 - how to change the adb target shell root directory with my pre-defined directory 不确定如何更改根目录以远离我的 HTTP 站点内容 - Unsure how to change Root Directory to point away from my HTTP sites content 如何将rpmbuild默认目录从/root/rpmbuild目录改为其他 - How to change rpmbuild default directory form /root/rpmbuild directory to other 赋予非root用户进程功能以更改其美观程度 - Giving a non-root user process capabilities to change its niceness 如何在我的 cpanel 服务器上显示错误页面而不是在我的目录中显示文件 - How to display error page instead of showing file in my directory on my cpanel server 创建和更改目录的一条命令 - One command to create and change directory 什么是/ dev / mapper / vg_root-lv_root目录?为什么我的docker依赖于这个目录? - What is /dev/mapper/vg_root-lv_root directory? Why my docker relies on this directory? Root 无权更改目录所有者 - Root doesn‘t have the permission to change a directory owner 更改根目录后Nginx写入“未指定输入文件”-CentOS 7 - Nginx write “no input file specified” after root directory change - CentOS 7
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM