Hey,
I have a strange problem and I'm not sure if it's a bug or what's going wrong exactly:
Here is a short story about what happened:
- I have an old account "account1"
- I have also installed a new hard-drive
- In "account1" I have a special folder called "folder1", its location is: "/home/account1/www/folder1"
- because "folder1" is very important for me and it contains too much data, I placed its location to be a mount point for the new hard-drive, and for security I placed a ".htaccess" file inside it to prevent any access to this folder throw web
- Recently I have created a new account "account2" using WHM
- * The new account was placed inside my new hard-drive instead of the home folder, which means the "account2" location is "/home/account1/www/folder1/account2" instead of "/home/account2"
- When I try to open a web-access from the "account2" I receive an authentication required and the effect of ".htaccess" appear
- When I remove the .htaccess" file I can open the account
- I cannot keep it without the ".htaccess" because like I said before "folder1" is very critical
- I also don't prefer to keep the new account inside this location so I had to move it
- I opened a SSH session and placed this command:
"usermod -d /home/account2 -m account2"
- The account was moved greatly and it's shown correctly under cpanel and some locations in WHP, but for some reason apache still think its location is "/home/account1/www/folder1/account2" and try to load files from "/home/account1/www/folder1/account2/public_html/*"
- I tested and this is true, apache still think that the account location is the old one although I already moved it
- I also tried to restart apache but no change
I need to know what's exactly wrong here to fix it and why "*" happens by anyway and how to prevent it from hapening for new accounts
Thanks!
I have a strange problem and I'm not sure if it's a bug or what's going wrong exactly:
Here is a short story about what happened:
- I have an old account "account1"
- I have also installed a new hard-drive
- In "account1" I have a special folder called "folder1", its location is: "/home/account1/www/folder1"
- because "folder1" is very important for me and it contains too much data, I placed its location to be a mount point for the new hard-drive, and for security I placed a ".htaccess" file inside it to prevent any access to this folder throw web
- Recently I have created a new account "account2" using WHM
- * The new account was placed inside my new hard-drive instead of the home folder, which means the "account2" location is "/home/account1/www/folder1/account2" instead of "/home/account2"
- When I try to open a web-access from the "account2" I receive an authentication required and the effect of ".htaccess" appear
- When I remove the .htaccess" file I can open the account
- I cannot keep it without the ".htaccess" because like I said before "folder1" is very critical
- I also don't prefer to keep the new account inside this location so I had to move it
- I opened a SSH session and placed this command:
"usermod -d /home/account2 -m account2"
- The account was moved greatly and it's shown correctly under cpanel and some locations in WHP, but for some reason apache still think its location is "/home/account1/www/folder1/account2" and try to load files from "/home/account1/www/folder1/account2/public_html/*"
- I tested and this is true, apache still think that the account location is the old one although I already moved it
- I also tried to restart apache but no change
I need to know what's exactly wrong here to fix it and why "*" happens by anyway and how to prevent it from hapening for new accounts
Thanks!