•  Home
  •  Dashboard
  •  Company
    • About Us
    • Blog
    • Careers
    • Contact Us
    • Data Centers
    • Looking Glass
    • Network
    • Reseller
  •  Hosting Services
    • Infrastructure
      • iColocation
    • Compute
      • cMetal
      • cVirtual
    • Storage
      • sObject
      • sBlock
    • Networking
      • nCDN
      • nIP Transit
      • nWavelength
    • Protection
      • pBackup
      • pDDoS
  •  Solutions
    • Ecommerce
    • Finance
    • Gaming
    • Hosting
    • Management
    • Security
    • System Integrator
  •  Support
    • Community
    • Knowledge Base
    • Open A Ticket
  •  USA & Canada: 800-933-1517
  •  International: 626-549-2801
  •  Email: sales@psychz.net
  • Services
    • new-colocation-header-img
      Infrastructure
      • iColocation
    • new-compute-header-img
      Compute
      • cMetal
      • cVirtual
    • new-storage-header-img
      Storage
      • sObject
      • sBlock
    • new-networking-header-img
      Networking
      • nCDN
      • nIP Transit
      • nWavelength
    • new-protection-header-img
      Protection
      • pBackup
      • pDDoS
  • Solutions
    • Ecommerce
    • Security
    • Gaming
    • Hosting
    • Management
    • Finance
    • System Integrator
  • Dashboard

如何更新中的cPanel網站根目錄的文件路徑?

  • Home
  • Client
  • Qa Forum
  • 如何更新中的cPanel網站根目錄的文件路徑?

Posted By: Andrew | 1 Replies | Last Reply On: Apr 10, 2017 08:54:39

我試圖改變的cPanel網站的根路徑。而不是從的public_html加載文件,我想設置根文件路徑為/的public_html /文件夾/文件夾

如何實現這個設置?

Psychz - Mark

Votes: 0Posted On: Apr 10, 2017 08:54:39
 

You will need to log into the server as root and perform the following -

  1. Login as root

  2. vi /var/cpanel/userdata/USERNAME/DOMAIN.COM
  3. Press "i" for Vi editor and edit the line with "documentroot:" path and save the file using "esc + :wq"

  4. vi /var/cpanel/userdata/USERNAME/DOMAIN.COM_SSL
  5. Make similar changes to make sure it works for SSL

  6. /scripts/rebuildhttpdconf
  7. service httpd restart

Was this reply helpful?

Related topics

  • 頂級屏幕錄製軟件
  • 開源代理服務器解決方案
  • 最好的小企業服務器
  • 承載Minecraft服務器的成本是多少
  • 專用電子郵件服務器
  • 專用服務器轉售
  • sBlock - Create
  • Minecraft服務器的最佳硬件
  • Manage Gzip
  • Learn All About Database Sharding
  • Introducing sObject: The New Object Storage Solution by Psychz Networks
  • How to setup a dedicated server for Avorion
  • EasyApache 4:比以前更好?
  • Create CDN Domain
  • CDN Hosting and why Every website should utilize a CDN
Copyright © 2025 Psychz Networks,
A Profuse Solutions Inc Company
Hosting Services
Infrastructure
  • iColocation
Compute
  • cMetal
  • cVirtual
Storage
  • sObject
  • sBlock
Networking
  • nCDN
  • nIP Transit
  • nWavelength
Protection
  • pBackup
  • pDDoS
Company
  • About Us
  • Blog
  • Careers
  • Contact Us
  • Data Centers
  • Looking Glass
  • Network
  • Reseller
Policies
  • Acceptable Usage Policy
  • Privacy Policy
  • Service Level Agreement
  • Terms and Conditions
Support
  • Community
  • Knowledge Base
  • Open A Ticket
Get In Touch
  • Psychz Networks,
    A Profuse Solutions Company
    611 Wilshire Blvd #300
    Los Angeles,California 90017
    USA
  • US/Canada: 800-933-1517
  • International: 626-549-2801