How can I make the directories accessible at www.mydomain.com/user instead of www.mydomain/phpwebhosting/public_html/user? Is that configuration in apache or in phpwebhosting?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
#1: You can just create a symlink from public_html to users, ie 'ln -s /path/to/phpwebhosting/public_html /path/to/users'.
But an even better solution is to edit the values at the begining of main.inc. There is nothing in PHPWebHosting that says you have to use public_html as the directory. You can move the directories to wherever you want, as long as you change the paths in main.inc. The only file you need outside of public_html is sql.inc, which should be somewhere not accessible to the web. So, for example:
mv /path/to/phpwebhosting/public_html /path/to/users
mv /path/to/phpwebhosting/sql.inc /path/sql.inc
Edit /path/to/users/main.inc, change $rootdir to /path/to/users and $hostname to http://www.yoursite.com/users and $outdir to /path.
You do NOT need to set $savedeleted, and it shouldn't be set unless you're planning on enabling FTP access (which doesn't work too well, and isn't recommended at all).
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
How can I make the directories accessible at www.mydomain.com/user instead of www.mydomain/phpwebhosting/public_html/user? Is that configuration in apache or in phpwebhosting?
#1: You can just create a symlink from public_html to users, ie 'ln -s /path/to/phpwebhosting/public_html /path/to/users'.
But an even better solution is to edit the values at the begining of main.inc. There is nothing in PHPWebHosting that says you have to use public_html as the directory. You can move the directories to wherever you want, as long as you change the paths in main.inc. The only file you need outside of public_html is sql.inc, which should be somewhere not accessible to the web. So, for example:
mv /path/to/phpwebhosting/public_html /path/to/users
mv /path/to/phpwebhosting/sql.inc /path/sql.inc
Edit /path/to/users/main.inc, change $rootdir to /path/to/users and $hostname to http://www.yoursite.com/users and $outdir to /path.
You do NOT need to set $savedeleted, and it shouldn't be set unless you're planning on enabling FTP access (which doesn't work too well, and isn't recommended at all).