2 clean local installation and just work one of them

Hi everyone thanks in advace for your help.

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:
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.

Thanks for your help.

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 {} \;

Hi Andrass, thanks for you reply.
Sorry, this don’t work, i got the same message:

Not Found

The requested URL was not found on this server.
Apache/2.4.29 (Ubuntu) Server at localhost Port 80

I’ve restart apache after the changes.

If it’s necessary more data, please, tell me.


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”.

Keep us informed how it’s going !

Thank you Andrass,
I will review what you tell me and if I can solve it I will comment here.