⚠ In case you've missed it, we have migrated to our new website, with a brand new forum. For more details about the migration you can read our blog post for website migration. This is an archived forum. ⚠

  •     

profile picture

[SOLVED] How to setup nginx to run Grocery CRUD



davidoster

davidoster
  • profile picture
  • Member

Posted 25 June 2013 - 20:41 PM

Hello to all.

Recently I got the brilliant Raspberry Pi and I am playing around with it.

The first thing I did was to install NMP services (this means Nginx MySQL PHP services!!!).

But since my knowledge is limited with nginx...

I got this far,

 

- root of the nginx server: http://rpi.eletter.gr - STATUS : WORKING

- CodeIgniter 2.1.3 installation with "welcome", http://rpi.eletter.gr/ci/index.php - STATUS : WORKING

- Grocery CRUD 1.3.3 installation with sample database, http://rpi.eletter.gr/gc/index.php - STATUS : WORKING 

- Grocery CRUD 1.3.3 installation with sample database, http://rpi.eletter.gr/gc/index.php/examples/customers_management - STATUS : NOT WORKING

 

 

Any ideas?


davidoster

davidoster
  • profile picture
  • Member

Posted 25 June 2013 - 21:08 PM

I had to modify under /etc/nginx/sites-available the default file to contain the following (there must be a better way of doing this though...!!!)

location /gc/ {
                try_files $uri $uri/ /gc/index.php;

        }