Comments (6)
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.
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.
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.
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.
It's untested and obviously necessary as per the reported problems in the past...
from grocy.
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)
- Feature Request: Transfer a specific stock entry from its current location instead of product's default location HOT 1
- Feature Request: Unidirectional unit conversions/abstract units HOT 3
- Bug: HOT 3
- Feature Request: Allow filenames with non-ASCII characters HOT 1
- Feature request: Fridge camera with ai object recognition HOT 1
- Bug: SQLSTATE[HY000]: General error: 1 duplicate column name: qu_id_consume HOT 3
- Bug: Android App crashes when adding a new product group HOT 1
- Feature Request: opengtindb HOT 1
- Bug: Table options columns are reset after some time when Grocy is not used HOT 12
- Bug: Scanmode is not able to fill all fields sometimes. Next time, it works with the same barcode. HOT 1
- Bug: Scanmode is not able to fill all fields sometimes. Next time, it works with the same barcode. HOT 4
- Feature Request: Put the recipe name in the produced stock entry note
- Bug: No shopping list view after upgrading to 4.2.0 HOT 3
- Feature Request: Using Grocy for more than food - Consumable hardware, electronics and tools for projects? HOT 1
- Feature Request: QR Codes and Product Page for individual items HOT 1
- mysql-Database HOT 5
- Feature Request: less mandatory fields for products HOT 1
- Feature Request: API integration for store products etc HOT 1
- Bug: A server error occured while processing your request HOT 1
- Feature Request: Allow "decimal places" settings > 18 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from grocy.