Skip to content
New issue

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

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

Already on GitHub? # to your account

404 error running rapberrypi debian 12 #49

Open
SugaComa opened this issue Dec 14, 2023 · 0 comments
Open

404 error running rapberrypi debian 12 #49

SugaComa opened this issue Dec 14, 2023 · 0 comments

Comments

@SugaComa
Copy link

SugaComa commented Dec 14, 2023

after installing I am getting 404 error - now I think this is Apache being slightly different build for raspberrypi.

my error log says:

PHP Fatal error: Uncaught Error: Failed opening required 'nova-themes//index.php' (include_path='.:/usr/share/php') in /var/www/mysite.com/public_html/content/gallery/nova-base/core/Template.php:15\nStack trace:\n#0 /var/www/mysite.com/public_html/content/gallery/nova-base/app/router.php(38): Template::render()\n#1 /var/www/mysite.com/public_html/content/gallery/nova-base/core/Router.php(136): {closure}()\n#2 /var/www/mysite.com/public_html/content/gallery/nova-base/app/router.php(42): Router::run()\n#3 /var/www/mysite.com/public_html/content/gallery/nova-base/init.php(60): require('...')\n#4 /var/www/mysite.com/public_html/content/gallery/index.php(11): require_once('...')\n#5 {main}\n thrown in /var/www/mysite.com/public_html/content/gallery/nova-base/core/Template.php on line 15

my htaccess file is as follows

`
RewriteEngine on
RewriteBase /gallery/

Deny direct access to the next directories

RewriteRule ^nova-config/.$ - [R=404,L]
RewriteRule ^nova-base/.
$ - [R=404,L]
RewriteRule ^nova-languages/.*$ - [R=404,L]

All URL process by index.php

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*) index.php [PT,L]

Deny direct access to the next directories

RewriteRule ^nova-config/.$ - [R=404,L]
RewriteRule ^nova-base/.
$ - [R=404,L]
RewriteRule ^nova-languages/.*$ - [R=404,L]

All URL process by index.php

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*) index.php [PT,L]`

the issue I think is that the everythings needs to see files in the /var/www/mysite.com/content/gallery to function as it is a self contained environment, but raspberrypi version of apache redirect us to /usr/share/php

how can redirect it to look in the right folder path

please note this is a completely fresh instal - i am also seeing similar errors using budit

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant