⚠ 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

Linux server is it possible?



Higor Câmara Vaz da Costa

Higor Câmara Vaz da Costa
  • profile picture
  • Member

Posted 02 June 2015 - 16:25 PM

Hi people, Im very happy to know about Grocery Crud, it is wonderful an save me a lot o time.

 

Im my laptop with Win8 / Wamp it works like a charm but when I put the files on a shared host on Hostgator it cannot run and just says 404 Page Not Found.

 

I have also tried to install/run on my work's pc with Ubuntu 14.10 / Apache2 and had the same as above.

 

I tried all the known possibilities: chmod 777, remove htaccess and nothing, please help!

 

Peace from Brazil,

Higor

[attachment=954:Captura de tela 2015-06-02 13:23:45.jpg]

 


Amit Shah

Amit Shah
  • profile picture
  • Member

Posted 02 June 2015 - 17:31 PM

well check the config.php - if uhave set the base_url / site_url variables - it may cause the issue...

 

or - there is another possibility.... 

in linux - if u check the error logs - u will find on problem - the parent directory of the application - if writable by group - apache wont serve it .. meaning the permission on the apps folder if is 775 or 777 - it wont be processed .. the optimum permission should be 755..

 

secondly.. if the files - uploaded are at higher precedence level - like root .. it wont allow it to get executed - it will shoot 404 error....

check the error logs to understand the nature of the problem and then u can reach to the solution for the same

 

Happy GCing :)


Higor Câmara Vaz da Costa

Higor Câmara Vaz da Costa
  • profile picture
  • Member

Posted 02 June 2015 - 19:24 PM

 


Higor Câmara Vaz da Costa

Higor Câmara Vaz da Costa
  • profile picture
  • Member

Posted 02 June 2015 - 19:28 PM

Thanks for the answer!!!
 
The php is not generating error logs, only apache:
 
127.0.0.1 - - [02/Jun/2015:16:11:01 -0300] "GET /CodeIgniter-3.0.0/index.php/example HTTP/1.1" 404 1378 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:38.0) Gecko/20100101 Firefox/38.0"
 
The other explained possibilities are discarded.
 
Higor

salfredogonzalez

salfredogonzalez
  • profile picture
  • Member

Posted 03 June 2015 - 18:16 PM

Would you please clarify the meaning of the error, i guess we all know what a 404 means.

 

I use several times CodeIgniter, and Grocery CRUD a few, and i worked with different kind of local and hosted servers.

 

So i am not understanding the error 404 that your writing, is that Your Ubuntu server?,

can you find your example controller?

Can you see the CodeIgniter installation?

Are you publishing in public_html folder?

 

I guess you are uploading your files with a ftp user that have the permissions so i guess the problem is not the permissions of the file.


Higor Câmara Vaz da Costa

Higor Câmara Vaz da Costa
  • profile picture
  • Member

Posted 03 June 2015 - 20:42 PM

Would you please clarify the meaning of the error, i guess we all know what a 404 means.

 

I use several times CodeIgniter, and Grocery CRUD a few, and i worked with different kind of local and hosted servers.

 

So i am not understanding the error 404 that your writing, is that Your Ubuntu server?,

can you find your example controller?

Can you see the CodeIgniter installation?

Are you publishing in public_html folder?

 

I guess you are uploading your files with a ftp user that have the permissions so i guess the problem is not the permissions of the file.

Thanks for the answer.

It's my local server Ubuntu 14.04

CodeIgniter runs well (the welcome page) but the GC examples and user_guide no.

It's published at /var/www/html/CodeIgniter-3.0.0

 

The curious thing is that under Windows 8 with WAMP Server all the controllers are loading well, I also created others cruds.

 

Hope I'd been clear


Higor Câmara Vaz da Costa

Higor Câmara Vaz da Costa
  • profile picture
  • Member

Posted 04 June 2015 - 04:05 AM

Middle Resolved õ//

 

The "problem", I think, its a bug with the latest version o CI, after a lot of searches and tests I decided to use CI2 and voilà all worked well:

 

http://plusti.net/CI2/index.php/examples/multigrids

 

I even want to run with CI3 if anyone has any suggestion I thank.

 

Higor


Amit Shah

Amit Shah
  • profile picture
  • Member

Posted 04 June 2015 - 09:51 AM

yes - GC wont work smoothly with latest version of CI .. latest version have some constraints that needs to be met / amended with the GC to work.


debianhot

debianhot
  • profile picture
  • Member

Posted 29 June 2015 - 19:51 PM

Just happened the same to me, drove me crazy the free nights of a whole week.

Allso a newbie in CodeIgniter and using Linux Mint 17.2

 

Instructions and tutoriasl are very well done for the grocery crud , so simple.....

Tried one, two ... six .... dann! :blink:

Was thinking what I had done wrong and going to bed totaly frustrated :(

 

After the fourth night I searched for some other CodeIgniter tutorials  but this time without using GroceryCrud and found

http://code.tutsplus.com/series/codeigniter-from-scratch--net-17602

that were allso very clean and well done.

 

When I started to do the (super simple) exercises of lection one it did not work !!! :angry:

 

That was the moment when I decided to switch to CodeIgniter 2.2.2 and for my surprise it worked not only

with the exercises but GroceryCrud did allso work fine.

 

Jus to be completely shure I did a totaly fresh download and instal of CI 3.0.0 and the super simple example

of lection 1 in "codeigniter from scratch" didnt want to work.

 

So I signed in at the CI site and after looking arround the forum a little bit found a note that said:

 

" Starting with CodeIgniter 3.0, all class filenames (libraries, drivers, controllers and models) must be named in a Ucfirst-like manner or in other words - they must start with a capital letter. CodeIgniter User Guide"

 

So changed the name of the class of my super simple example to have first letter in capital first and BINGO ! :) :) :) :)

 

After that I installed GroceryCrud in CI 3.0.0 and it still did not want to go.

 

Renamed file /applications/controller/examples.php to /applications/controller/Examples.php and edited it to put the name

of the main class from "class examples extends CI_Controller" to "class Examples extends CI_Controller"

 

Now it partialy worked but complained that it did not find the Grocery_crud_modell so I renamed allso

applications/modells/grocery_crud_models.php to applications/modells/Grocery_crud_models.php

and now all seems to work fine for GroceryCrud 1.5.1 in CodeIgniter 3.0.0 :P :) :lol:

 

Hope it Helps !!

 

Rafa.

 

 

 

 

 


brasuca

brasuca
  • profile picture
  • Member

Posted 23 March 2017 - 09:28 AM

Hi people,

Good Morning,

I had the same problem reported by Higor and the solution was perform a downgrade to CodeIgniter to 2.2.2 and it worked very well.
 
Thanks  for your help.
Patricia

mckaygerhard

mckaygerhard
  • profile picture
  • Member

Posted 30 May 2017 - 16:03 PM

the grocery crud and some other in CI are very bad writen.

 

seems focused to run in weack systems like ruindows..

 

that's why some issues related to case-sensityve names of files..