We are happy to announce that Vesta is back under active development as of 25 February 2024. We are working on v1 candidate and expect to engage more with the community over the coming months. We are committed to open source, and we encourage contributors to help us build the future of Vesta.
Folders outside public_html
Folders outside public_html
I have been working on a new VPS, Centos7 with VestaCP and one of the sites is hosting WHMCS.
WHMCS recommends to put certain folders outside public_html so they can't be accessed from the Internet.
However, since moving the site from cPanel to Vesta I am seeing errors if I try this, so creating a folder such as:
/home/useraccount/web/domain.co.uk/whmcs/
I get an error in WHMCS:
"The following directories are owned by a different user from that which is executing WHMCS. This indicates a potentially insecure configuration"
I have double checked and the folder is owned by the correct account. I have deleted it, created it and chown it. No difference.
Is there a config that is preventing this folder from being accessed?
Cheers
David
WHMCS recommends to put certain folders outside public_html so they can't be accessed from the Internet.
However, since moving the site from cPanel to Vesta I am seeing errors if I try this, so creating a folder such as:
/home/useraccount/web/domain.co.uk/whmcs/
I get an error in WHMCS:
"The following directories are owned by a different user from that which is executing WHMCS. This indicates a potentially insecure configuration"
I have double checked and the folder is owned by the correct account. I have deleted it, created it and chown it. No difference.
Is there a config that is preventing this folder from being accessed?
Cheers
David
Re: Folders outside public_html
Hi!
For access you want to disable open_basedir, but I didn't want a complete shutdown.
I have solved this question so:
1. Created folder /home/%USER%/web/%DOMAIN%/hide
2. Created folder /home/%USER%/web/%DOMAIN%/hide/templates_c and other what you want.
Set chmod 777 as requested WHMCS
3. Edit file: /home/%USER%/conf/web/httpd.conf
In section: <Directory /home/%USER%/web/%DOMAIN%/public_html>
Edited line:
php_admin_value open_basedir /home/%USER%/web/%DOMAIN%/public_html:/home/%USER%/web/%DOMAIN%/hide:/home/%USER%/tmp
( add in string: /home/%USER%/web/%DOMAIN%/hide:)
I used the "default"template
%USER% and %DOMAIN% - change to your values
Enjoy!
For access you want to disable open_basedir, but I didn't want a complete shutdown.
I have solved this question so:
1. Created folder /home/%USER%/web/%DOMAIN%/hide
2. Created folder /home/%USER%/web/%DOMAIN%/hide/templates_c and other what you want.
Set chmod 777 as requested WHMCS
3. Edit file: /home/%USER%/conf/web/httpd.conf
In section: <Directory /home/%USER%/web/%DOMAIN%/public_html>
Edited line:
php_admin_value open_basedir /home/%USER%/web/%DOMAIN%/public_html:/home/%USER%/web/%DOMAIN%/hide:/home/%USER%/tmp
( add in string: /home/%USER%/web/%DOMAIN%/hide:)
I used the "default"template
%USER% and %DOMAIN% - change to your values
Enjoy!