Originally Posted by
flyingsuperhigh
If I use the /var/www directory then everything works fine. However, I don't understand why I cannot use the /home/root_user_name/public_html directory.
1)I've modified the /etc/apache2/sites-available/default file and wherever there I found the /var/www/ directory, I replaced it by the /home/root_user_name/public_html directory.
2)I've set the permissions on the /home/root_user_name/public_html directory to 755.
I don't see why it doesn't work when I store the files in the /home/root_user_name/public_html if I have the right permissions.
Did you miss the part where I mention www-data must own it? That's in addition to perms.
Code:
chown -R www-data:www-data /home/root_user_name/public_html
Bookmarks