question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

404 Not Found - Slim\Exception\HttpNotFoundException

See original GitHub issue

Hello, I am making a plugin for the home automation system. I’m looking to install grocy from the plugin. Grocy can be found in the 3rdparty directory. Installed from https://releases.grocy.info/latest.

I want have this url:

http://myinstancesmarthome/grocy

image

here is the apache configuration:

<VirtualHost *:80>
        ServerAdmin webmaster@localhost
        DocumentRoot /var/www/html
        ErrorLog /var/www/html/log/http.error

	Alias /grocy /var/www/html/plugins/grocy/3rdparty/grocy/public

	<Directory /var/www/html/plugins/grocy/3rdparty/grocy/public>
		Options Indexes FollowSymLinks MultiViews
		AllowOverride All
		Order allow,deny
		allow from all
	</Directory>

       ProxyPass /grocy/ http://localhost/plugins/grocy/3rdparty/grocy/public/
       ProxyPassReverse /grocy/ http://localhost/plugins/grocy/3rdparty/grocy/public/
</VirtualHost>

If i check the documentroot with php since index file, i have: /var/www/html

my data/config.php

Setting('BASE_PATH', '/var/www/html/plugins/grocy/3rdparty/grocy/');

Setting('BASE_URL', '/grocy');

Setting('DISABLE_URL_REWRITING', true);

Have you got any idea ?

Thanks

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
berrndcommented, Mar 25, 2020

I think the subbredit is the better place to ask for setup problems and most probably your reach more who could help there…

0reactions
berrndcommented, Apr 4, 2020

The general problem about subdirectory installations is now resolved (in fact there was never an issue, it was just unclear how to configure everything properly).

See for Apache: https://github.com/grocy/grocy/issues/694#issue-592850273

See for nginx: https://github.com/grocy/grocy/issues/694#issuecomment-609079721

For specific setups / shared hosting environments / etc., please better ask this on the subbredit if there are still problems.

Read more comments on GitHub >

github_iconTop Results From Across the Web

PHP Slim\Exception\HttpNotFoundException 404 Not Found ...
What is the address you entered in the address bar that resulted in a 404 error? · I'm using PHPStorm, after saving the...
Read more >
Slim 4 - HttpNotFoundException
Hey, I still get Not found error on Slim version 4. ... Details Type: Slim\Exception\HttpNotFoundException Code: 404 Message: Not found.
Read more >
404 after installation: Slim\Exception\HttpNotFoundException
While trying to set up grocy an my server I get the following message: 404 Not Found The application could not run because...
Read more >
Setting HTTP status code based on Exception in Slim 4
Ideally we want the status code to be 404. Option 1: Use an HttpException. The simplest solution is to use one of Slim's...
Read more >
Php – Slim\Exception\HttpNotFoundException - iTecNote
Slim Application Error: The application could not run because of the following error: Error Details Type: Slim\Exception\HttpNotFoundException Code: 404 ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found