Post by tcratius » Mon Jan 28, 2019 11:40 am

As the title says I am trying to install OpenCart from the source repository, https://github.com/opencart/opencart, onto Raspberry PI ARMHF v7 which, runs Debian 9 and Nginx 1.10.3. Nginx config file contains the following:

Code: Select all

server {
               listen 80 default_server;
               listen [::]:80 default_server;
               root /var/www;
    server_name myapp.domain.com;

    location /opencart/upload/install {
        proxy_pass http://localhost:8080;
        proxy_set_header Host $host;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header X-Forwarded-Proto $scheme;
    }
}
I am using NameCheap and it is set to "Web Hosting DNS" as advised by their support service.

When I put the http://localhost/:8080 into my desktop pc as instructed by this webpage, https://www.digitalocean.com/community/ ... 20-36-8080, It comes up with:

Code: Select all

This page isn’t working 127.0.0.1 didn’t send any data.
ERR_EMPTY_RESPONSE
I tested the nginx config and restarted the server prior to testing if I could connect to local host.

Code: Select all

sudo service nginx configtest
[ok] Testing nginx configuration:.
sudo service ngnix restart
"No error message" was output to screen from Raspberry PI

Basically, I am a little confused as to how to install opencart on linux machines?

And no, I do not wish to install it on Amazons or any other hosting service.

Newbie

Posts

Joined
Sun Jan 27, 2019 7:21 am

Post by Johnathan » Mon Jan 28, 2019 10:39 pm

I don't have any advice for you, other than if you're going to use a github version, make sure it's an official release. If you use the master code it's always changing, and you're likely to end up with a broken and/or buggy store.

Image Image Image Image Image


User avatar
Administrator

Posts

Joined
Fri Dec 18, 2009 3:08 am


Post by tcratius » Tue Jan 29, 2019 4:18 am

Hi Jonathon,

I've been on Github for a while now and that is the first time anyone has told me that but seems logical and always handy to learn something new :). Is the released Opencart, [url]https://github.com/opencart/opencart/re ... rt.zip[url], the thing you are talking about when you say not to use the master copy?

Newbie

Posts

Joined
Sun Jan 27, 2019 7:21 am

Post by Johnathan » Tue Jan 29, 2019 11:17 pm

You generally want to download the official release from the Resources > Download menu at the top of the page. However, OpenCart doesn't do a good job of releasing bugfix versions, so both OpenCart 3.0.2.0 and 3.0.3.1 have some bugs in them that need to be fixed. There are fixes for most of these on github and the forum, but you'll want to apply them manually, not using the current github version. (And yes, everybody knows Daniel needs to do a better job of releasing bugfix versions, we're all waiting on that.)

Currently, I'm recommending people use OpenCart 2.3.0.2 for live stores. It has fewer bugs, and doesn't have the added hassle of Twig caching or moving the "storage" directory. If you know you need a feature from the 3.0 branch then it's still stable enough to use, I just don't recommend it if you don't need any of the features it added (which weren't very many).

Image Image Image Image Image


User avatar
Administrator

Posts

Joined
Fri Dec 18, 2009 3:08 am


Post by tcratius » Wed Jan 30, 2019 6:13 am

Considering I still haven't installed it yet, I will take your advice and download the 2.x version, thank you for that. :) To be honest, upon searching, opencart 2 was recommended to be installed, I just couldn't resolve my issue and became lazy. However, considering that I have only been programming for 3 years, I consider whatever Daniel does to be above my pay grade and certainly a lot better than anything I can do. People have forgotten patients in this new world we live in.

Ok, well good and bad news, after speaking with the domain name provider I didn't know you needed a hosting server for the domain name that you buy, extremely new to networking. Debian operating systems support Bind9 which, acts as a DNS hosting by taking IP addresses and allowing names to be associated. It also grants root access to talk to the other server(s) and database, i.e in my case Nginx and MariaDB. See Bind9 Wiki for a comprehensive guide to setting it up.

At this stage, I still haven't resolved the install and now have two issues to fix today, download and copy 2.x files and finalise Bind9 hosting, yet it is clear this is not an Opencart issue as such and quite happy for this post to be deleted if it doesn't meet certain criteria.

Newbie

Posts

Joined
Sun Jan 27, 2019 7:21 am
Who is online

Users browsing this forum: No registered users and 370 guests