Sorry if I repeat the question but I can’t find a way to solve my problem in the forum or on the internet.
In Ubuntu 18.04 with lampp I have installed two sites: /var/www/html/grav-admin/ /var/www/html/grav/
I give these permissions: sudo chown -R www-data.www-data /var/www/html/grav-admin sudo chown -R www-data.www-data /var/www/html/grav
I can only access grav installed in /var/www/html/grav/, the other site gives me an 404 error.
I don’t want to create virtual hosts, is there a way for both sites to work?
Also I have a project in php in /var/www/html/phpprojet an I can’t access.
The separator between user and group needs to be a colon, so your chown’s should be sudo chown -R www-data:www-data /var/www/html/grav-admin
You could probably shorten this and run the command over your while html directory, instead of each sub-directory individually : sudo chown -R www-data:www-data /var/www/html
The other thing you could do is set the file and directory permissions
sudo find /var/www/html -type d -exec chmod 755 {} \;
sudo find /var/www/html -type f -exec chmod 644 {} \;
Sorry to hear that your problem is still there. There are a couple of possible reasons, namely server configuration, or a software installation that didn’t execute as needed. The fact that you have a third project in /var/www/html/phpprojet which doesn’t work neither indicates that it’s not basically a Grav problem, and you may need to find someone competent for solving your installation problems. Or google around “software installation in sub-folders”.