Giter Site home page Giter Site logo

Comments (6)

berrnd avatar berrnd commented on June 3, 2024

Both is there - see the .htaccess file in the public directory for apache and the note in README for nginx - the changes from commit f0f84b3.

What's not working for you?

from grocy.

cavebeat avatar cavebeat commented on June 3, 2024

I'm not sure if i should bother you with this. I guess i am missing a silly no-brainer step.

I'm on a clean&fresh Debian 9.5 Stretch system
apt-get install nginx php-fpm unzip php-sqlite

unzipped latest to and my sites-available/default looks like this
https://bin.cavebeat.org/?c19d5321a60c4aaa#/h5tsy6hSUwZeIG/fV5ALk3noLDEspPZIk1bcoKEB8Y=
data is set writeable to user/group www-data,
copied config-dist.php to data/config.php

phpinfo already works and also shows sqlite modules loaded.

though i still have a blank page when opening my url now.

from grocy.

berrnd avatar berrnd commented on June 3, 2024

No problem, see #20 for example, are you sure you run PHP 7.2?
(Debian stable is still on PHP 7.0 I think...)

from grocy.

cavebeat avatar cavebeat commented on June 3, 2024

You are right, it's php7.0, is v7.2 necessary or just untested with 7.0?

PHP Version 7.0.30-0+deb9u1

SQLite3 support | enabled
SQLite3 module version | 7.0.30-0+deb9u1
SQLite Library | 3.16.2

PDO support | enabled
PDO drivers | sqlite

root@grocy:/var/log/nginx# cat error.log
2018/09/18 19:43:26 [error] 22927#22927: *1 FastCGI sent in stderr: "PHP message: PHP Fatal error: Uncaught TypeError: Return value of Tuupola\Middleware\CorsMiddleware::origin() must be an instance of Tuupola\Middleware\void, none returned in /var/www/html/vendor/tuupola/cors-middleware/src/CorsMiddleware.php:165
Stack trace:
#0 [internal function]: Tuupola\Middleware\CorsMiddleware->origin(Array)
#1 /var/www/html/vendor/tuupola/cors-middleware/src/CorsMiddleware.php(119): call_user_func(Array, Array)
#2 /var/www/html/vendor/tuupola/cors-middleware/src/CorsMiddleware.php(51): Tuupola\Middleware\CorsMiddleware->hydrate(Array)
#3 /var/www/html/routes.php(113): Tuupola\Middleware\CorsMiddleware->__construct(Array)
#4 /var/www/html/app.php(69): require_once('/var/www/html/r...')
#5 /var/www/html/public/index.php(3): require_once('/var/www/html/a...')
#6 {main}
thrown in /var/www/html/vendor/tuupola/cors-middleware/src/CorsMiddleware.php on line 165" while reading response header from upstream, client: 192.168.100.45, server: _, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php7.0-fpm.sock:", host: "grocy.cavebeat.lan"

from grocy.

berrnd avatar berrnd commented on June 3, 2024

It's untested and obviously necessary as per the reported problems in the past...

from grocy.

cavebeat avatar cavebeat commented on June 3, 2024

thanks for your help!
i've moved to Ubuntu 18.04 LTS | Bionic Beaver which includes php7.2 and i am now at admin/admin.

i guess the issues appears with apache and Debian 9.x until any php backports are ready.

from grocy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.