I'm in the process of setting up a new computer; the old setup was Ubuntu 20.04 LTS; and I had placed a sym link to allow apache to access my content.
sudo ln -s /home/ed/mystuff /var/www/html/stuff
So that I could access it simply by browsing to localhost/stuff and that all seemed to work without any further configuration. I am aware this has problematic security implications but it was only for my internal use.
On my new computer, I installed 22.04 LTS, and it's (I think) configured exactly the same way but now results in 403 / Forbidden errors. Reading through some similar questions, I see a lot of reference to having files owned by www-data, but on my 20.04 everything on the /var/www side is root, and everything on the user side is still owned by the user. No www-data.
At this point, I'm most curious as to how it worked before on 20.04 but with 22.04 gives nothing but 403/forbidden?
EDITED TO ADD: I didn't change any of the config files, just installed apache2. In particular I see the /etc/apache2/apache2.conf files are identical.
WRAPUP(?): In answer to my confusion about why it worked in previous Ubuntu (20.04) release but not in the newer (22.04) is that for whatever reason, in the past, a user's home directory is created with permissions of 755; but in the newer release of ubuntu it is created with 750... Changing it to 751 or 755 allows it to work as before.
/etc/apache2/apache2.conf
also identical? (Typically, it means all files in/etc/apache2/conf.d
and/etc/apache2/sites-enabled
directories) – raj Feb 05 '24 at 12:48