RE: change web root
05-18-2015, 06:39 PM
(This post was last modified: 05-18-2015, 06:41 PM by apinto.)
Hello tecx20,
The solution you provided is the easy way and if you read it carefully it will work (100% sure of this);
However it all depends on what you need to do, is it to install a framework like Laravel that will have php scripts outsidee the www folder?
If yes, then you need a different approach.
With this way you will be able to have a different openbase_dir than your DocumentRoot, allowing you to access the files under public_html and www via your php scripts (this is NEEDED by almost all modern frameworks TGates Me.B )
The solution you provided is the easy way and if you read it carefully it will work (100% sure of this);
However it all depends on what you need to do, is it to install a framework like Laravel that will have php scripts outsidee the www folder?
If yes, then you need a different approach.
- Add the Domain the normal way, so it creates a DOMAIN_TLD folder.
- Wait 5 minutes for the Daemon to Run.
- Go to Admin > Module Admin (on Sentora CP).
- Select Apache Config (it's the very first option).
- Scroll Down to the end of the page and under the Override a Virtual Host Setting choose the website you want.
- Now on the text area input: Custom Entry you need to enter the following :
Code:DocumentRoot "/var/sentora/hostdata/ACCOUNT/public_html/DOMAIN_TLD/www"
- (do not forget to click Save when you are done)
With this way you will be able to have a different openbase_dir than your DocumentRoot, allowing you to access the files under public_html and www via your php scripts (this is NEEDED by almost all modern frameworks TGates Me.B )
My Sentora Resources
[Module] Mail Quota Count | Vagrant Box with Sentora
Graphic and Web Design. Development.
www.vanguardly.com
[Module] Mail Quota Count | Vagrant Box with Sentora
Graphic and Web Design. Development.
www.vanguardly.com