I was following this installation guide. He uses apache2, mariadb, myphpadmin, and a bunch of PHP stuff.
I am attempting the install on a fresh Ubuntu (normal desktop) install on an old (but wiped) PC.
I am also hosting it on my own IP, and do not want to pay for a domain name.
Instead of using the default /www/var/html/data folder, I am mounting an 8TB logical volume (comprised of 2 4TB HDDs) to /home/jollyj/server, and changed the web client accordingly.
EDIT: Have just realised that these HDDs are NTFS, which have caused issues for others. I have added to fstab this line which has been suggested by others, but it does not seem to be working for me.
/dev/LogicalVolume1/Volume1 /home/jollyj/server ntfs defaults,uid=33,grid=33,umask=007 0 1
EDIT 2: the copy-pastaed solution above was for someone else whose UID was 33. I checked mine by typing id
into terminal, and mine were 1000. So replace 33 with 1000.
Now I have a problem with umask making the mounted directory unreadable by everyone… Will try to figure that out
2 problems:
-
Potentially minor problem that hasn’t been a problem yet: I did not have .htaccess and .user.ini files (mentioned around 14:35) in the video. Yes I checked with ls -al.
-
Major problem stopping me from continuing: The website (accessed via my external IP) says
Error
Your data directory is readable by other users Please change the permissions to 0770 so that the directory cannot be listed by other users.
What I’ve tried:
sudo chmod 0770 /home/jollyj/server/
sudo chown www-data:www-data /home/jollyj/server/
chown -R www-data:www-data /home/jollyj/server/
find /home/jollyj/server/ -type d -exec chmod 750 {} \;
find /home/jollyj/server/ -type f -exec chmod 640 {} \;
None of the above worked or changed anything, I’m getting the same error screen.
Anyone know of a solution?