Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: This page does not exist after installing. #1404

Closed
p00rt opened this issue Mar 11, 2021 · 1 comment
Closed

Bug: This page does not exist after installing. #1404

p00rt opened this issue Mar 11, 2021 · 1 comment

Comments

@p00rt
Copy link

p00rt commented Mar 11, 2021

grocy version: latest (3.0.1)
apache2 version 2.4.38
php version 7.4
debian 10

I've been trying to install grocy on a VPS. I unpacked it, changed the permissions and edited the config.php. This is what I'm getting:
2021-03-11-125537_1364x767_scrot

I created 2 configs for apache:

<VirtualHost *:80>
	ServerName	my.tld
	RewriteEngine on
	RewriteCond %{SERVER_NAME} =*.my.tld [OR]
	RewriteCond %{SERVER_NAME} =my.tld
	RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]

	LogLevel warn 
	ErrorLog ${APACHE_LOG_DIR}/grocy-error.log
	CustomLog ${APACHE_LOG_DIR}/grocy-access.log combined
</VirtualHost>

<VirtualHost *:443>
	ServerName my.tld

	DocumentRoot /var/www/my.tld/public
	
	<Directory /var/www/grocy/public>
		Options Indexes FollowSymLinks MultiViews
		AllowOverride All
		Order allow,deny
		allow from all
	</Directory>

	LogLevel warn ssl:warn
	ErrorLog /var/log/apache2/grocy-error.log
	CustomLog /var/log/apache2/grocy-custom.log combined

	Include /etc/letsencrypt/options-ssl-apache.conf
	SSLCertificateFile /etc/letsencrypt/live/my.tld/fullchain.pem
	SSLCertificateKeyFile /etc/letsencrypt/live/my.tld/privkey.pem
</VirtualHost>

And here are the important parts from config:

 Setting('BASE_PATH', '/index.php');
Setting('BASE_URL', '/');
Setting('DISABLE_URL_REWRITING', false);
@berrnd
Copy link
Member

berrnd commented Mar 11, 2021

This here is the issue tracker, this is more than obviously not a bug - please use the subreddit for general questions/help as also mentioned in README and on the issue template.

Most probably a problem about BASE_PATH - there are a lot of things about that here and on the subreddit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

2 participants