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
Minimal Ubuntu 20.04 system setup with nginx, grocy > 2.6.0, php 7.4 #649
Comments
Great thanks, I will replace/update the link on https://grocy.info/links |
Really good tutorial, I was able to get Grocy running on my RaspberryPi.
Thanks again @emk2203! |
@robertopreste Thanks for the suggestions and spotting the errors. I have updated the instructions. |
@emk2203 @robertopreste These are great instructions, thanks. Do you mind if I pull some of your I'm aiming to stabilize and narrow down the |
If you run php7.4-fpm, you need to install php7.4-gd, which is not including with php-fpm and not added in your tutorial. |
Yes, I needed to update it, done now. The requirement for |
Of course, because nothing has changed regarding dependencies and we still use nothing special, it's technically still just a simple PHP application... |
One additional question: How would I have to install any future update when it comes out? |
That's mentioned in README. |
I successfully followed your guide, but I found out that I already had port 80 in use, so this could probably useful for somebody who running also Pihole on the machine where grocy will be installed: I found today this guide regarding the subfolder issue: #694 (comment) but how have this applied after a successful installation regarding your guide above?!? |
Hi I have really massive problems with this guide https://www.youtube.com/watch?v=pOUA5zofM0g&t=225s then followed the guide above with looking at the correction Is it possible to do a script or 2 that will set all up correctly? |
If anyone comes across this in the future, the instructions above are confusing and jumbled (why are there like 3 different
|
Many THX for making it clear now Here My steps Creating a CL in Proxmox then
HowTo to solve this? |
@pconwell I installed successfully according to the first guide. Is there anything completly wrong with the first guide from your point of view? I tried to compare both guides but I'm not an expert. I only see the following differences:
Will installation according to the first guide cause some trouble in the future?!? |
I think to concentrate on pconwell's I will remove all my stuff on this and SART clear WHAT could be the problem with Update as shown above? |
@ovz93br43v7 First, sorry for coming across snippy - I was very annoyed trying to get this working yesterday and I let my frustrations get to me. To answer your question, there is nothing "wrong" with the first set of instructions, it's just written in a way that can be a little confusing and it's easy to miss a step. The only thing that is actually incorrect (but may still work) is the sites-available config file is missing a couple lines. @witzker Something is wrong with your network and it cannot reach the debian servers to download updates. The Debian 10.5 CT is the right one (when you successfully update, it will update to 10.7). I'm not sure how to help as I don't know what is wrong with your network. To help narrow down the issue, try this: inside the container, |
"something is wrong with your DNS" `cp /var/www/html/config-dist.php /var/www/html/data/config.php cp: cannot stat '/var/www/html/config-dist.php': No such file or directory Pls help |
@witzker It's not able to find the file to copy it. Did you download and unzip the latest grocy files? If your DNS was (is) messed up, then the file probably didn't download. What does this do:
|
Now moving Data directory from my Synology installation of Grosy |
Today my grocy/nginx don't run anymore:
Anybody a hint?!? |
@ovz93br43v7 not much to work with. Did you make any changes to your What is in your |
@pconwell Thanks for your answer, I made nginx work again. EDIT: |
My solution:
|
@pconwell Did you install grocy in a sub directory? |
@pconwell May I ask you to tell me HowTo update. Is it possible to log in with putty and run commands that will update Grocy without losing the data? |
@witzker See section "How to update" here: https://github.com/grocy/grocy |
@ovz93br43v7 Pls. Be so kind and list them here (like in the Guide above) that I can follow you 1 Login with putty THX |
@witzker If you want to use the update script just run: According the content of the script which you can find here: https://github.com/grocy/grocy/blob/master/update.sh a backup is created automatically. |
How did YOU Update? |
@witzker I updated without backup. I deleted everything and made a complete re-installation according to the above guide. |
Hi |
Thanks! Docker images didn't work for me (I had 502 errors, only the login page showed up, crashed on "no users table"), and this did on my Odroid C2. Awesome! |
Starting with grocy 2.6.1 and the switchover from the Slim framework v3 to v4, you cannot install in a subdirectory anymore.
Here the updated instructions which work for me on a minimum Ubuntu 20.04 install on a ARM system:
Install nginx, php, sqlite on minimal system
Get root, ideally with
sudo -i
.Install
nginx
and check status, should be up and running. You can make extra sure withsystemctl enable nginx
that this survives a reboot.If you are not starting from a minimal system, make sure that the firewall (
ufw
or other) don't interfere with thenginx
install:and check with
ufw status
. This opens the firewall for HTTP and HTTPS on ports 80 and 443.Now you can install sqlite with
apt install sqlite3
.To install only php without the Apache dependency, install
php-fpm
together withphp-gd
. Don't forgetphp-sqlite3
.The standard www root directory is
/var/www/html/
, the user for nginx is set to 'www-data'.The files served need to belong to this user.
Now is the time to do the edits to customize your installation.
Important: BASE_PATH and BASE_URL need to be setup like this:
Do not try and put grocy in a subdirectory. This seems not to work at the moment with Slim v4 and Grocy 2.6.1.
Test your install with http://localhost or http://<intranet_server_name> from elsewhere. The default nginx landing page should come up to indicate that the web server part is running.
Now to configure the server and php. There are several .ini and .conf files now in your
/etc/php
folder, you can leave them alone. Same goes for the/etc/nginx/nginx.conf
file. What you want to do is to make a file/etc/nginx/conf.d/fastcgi_params
to setup your installed system correctly:Make sure that the last line fits your installed php version. Test with
php --version
if necessary.To set the web root, do the following:
Now edit the
grocy
file with the following changes:Again, make sure that the line to be edited fits your installed php version like above.
On reload of nginx with
systemctl restart nginx.service
, you should be able to access the grocy pages now. Or, if necessary, reboot. I also had issues with my Chrome browser which mandated a cache deletion. Grocy should now work without issues.If anyone can add to this how to install in a subdirectory of the webserver root, I would be happy to amend the above.
Originally posted by @emk2203 in #201 (comment)
The text was updated successfully, but these errors were encountered: