Skip to main content

How can I set a document Root?

Comments

2 comments

  • cPRex Jurassic Moderator

    Hey there!  Changing Apache like that isn't going to give you the desired result.  The best way would be to change this as part of the install of your software, as cPanel isn't going to be able to just have any area be a home directory.

    Do you not get that option in the installer?  If not, are you not able to move the files to the correct directory after the install completes?

    0
  • Pravi Goyal

    It looks like WHM might be overriding your custom Apache configuration when it rebuilds the config files. Instead of using the "Post VirtualHost Include," try adding your VirtualHost entry to the Pre Main Include section for your specific Apache version in WHM. Also, ensure that OpenProject is running and accessible on that directory, and check if SELinux or file permissions are blocking access. If it still doesn’t work, you might need to manually create a symlink from /home/example/public_html/projects to /opt/openproject/public or use an .htaccess redirect. Restart Apache after making changes and check the error logs for any clues (/etc/apache2/logs/error_log).

    0

Please sign in to leave a comment.