Skip to content
Grav 2.0 is officially stable. Read the announcement →

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

Installation & Hosting

2 clean local installation and just work one of them

Started by susana 6 years ago · 4 replies · 811 views
6 years ago

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

Thanks for your help.

6 years ago

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

BASH
sudo find /var/www/html -type d -exec chmod 755 {} \;
sudo find /var/www/html -type f -exec chmod 644 {} \;
6 years ago

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.

Regards.

6 years ago

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 !

6 years ago

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

Suggested topics

Topic Participants Replies Views Activity
Installation & Hosting · by antoinep, 19 hours ago
7 72 57 minutes ago
Installation & Hosting · by Jürgen Dietrich, 7 months ago
0 65 7 months ago
Installation & Hosting · by rappluk, 8 months ago
0 65 8 months ago
Installation & Hosting · by N, 12 months ago
3 76 12 months ago
Installation & Hosting · by Youle, 1 year ago
1 64 1 year ago