Apache2 folders permissions - Ubuntu 20.04
Hi fellows: I have this Ubuntu server 20.04 with apache2. I have it configured for php5.6, php7.1, php7.2, have one site domains for every one of this php versions, and all its very good for that domains. (except for the php5.6)
I have some problem whit one php5.6 site, simply dont run. Specifically have the site fine, took the db and folders from an 18.04 server funcionally and put it on 20.04 but doenst run while the other sites go fine. In this apache2 over 20.04 i have noticed that permissions hae so meny little problems because, with one of these other sites, i had to modify some folders to www-data permissions to work fine (while in 18.4 never needed to modify folder permissions).
But that aside i give yo my actual permissions structure:
/var/www myuser root (755)
/var/www/html myuser root (755)
/var/www/html/public_html myuser myuser (755)
|__index.php myr myr 664
The other sites are with the same permissions and working.
Domain is working fine, restarted apache2, with html file “hello world” is working fine…
Right now im verificating php5.6 because noticed that only have sites working on php7.1 and php7.2, none on php5.6 (and trying with other php5.6 site and some values changed few days ago)
I hope some ideas guys, tks.
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.×