With some hostings (000webhost, ovh, active24 and several other hosting, which DOESNT USE cPanel), when you add a new domain, an entirely separate public_html
is created and a separate FTP login.
But with cPanel, all "addon domains" are created under the same account and public_html
folder. So, with PHP programming, from addon domain "account" I can easily access any other domains' FTP folders.
Is there a way to restrict PHP from accessing higher directories? (This thread states there is no solution inside cPanel.)
Some people say that open_basedir
and safe_mode
(inside php.ini
and http.conf
) is a solution, but that can be overridden too by hacker.
So, the only solution seems to me, is MULTI-Account hosting (like the list I've given above) or reseller hosting, with different cPanel accounts.
Are there any other solutions?