[英]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.