Jump to content


Linux server is it possible?

linux server host error 404

  • Please log in to reply
10 replies to this topic

#1 Higor Câmara Vaz da Costa

Higor Câmara Vaz da Costa

    Newbie

  • Members
  • Pip
  • 6 posts
  • LocationBrasília, Brazil

Posted 02 June 2015 - 04: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

Captura de tela 2015-06-02 13:23:45.jpg

 



#2 Amit Shah

Amit Shah

    grocery CRUD Master

  • Advanced Member
  • PipPipPip
  • 1,192 posts
  • LocationMumbai, India

Posted 02 June 2015 - 05: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 :)



#3 Higor Câmara Vaz da Costa

Higor Câmara Vaz da Costa

    Newbie

  • Members
  • Pip
  • 6 posts
  • LocationBrasília, Brazil

Posted 02 June 2015 - 07:24 PM

 


Edited by Higor Câmara Vaz da Costa, 02 June 2015 - 07:29 PM.


#4 Higor Câmara Vaz da Costa

Higor Câmara Vaz da Costa

    Newbie

  • Members
  • Pip
  • 6 posts
  • LocationBrasília, Brazil

Posted 02 June 2015 - 07: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


#5 salfredogonzalez

salfredogonzalez

    Newbie

  • Members
  • Pip
  • 2 posts

Posted 03 June 2015 - 06: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.



#6 Higor Câmara Vaz da Costa

Higor Câmara Vaz da Costa

    Newbie

  • Members
  • Pip
  • 6 posts
  • LocationBrasília, Brazil

Posted 03 June 2015 - 08: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



#7 Higor Câmara Vaz da Costa

Higor Câmara Vaz da Costa

    Newbie

  • Members
  • Pip
  • 6 posts
  • LocationBrasília, Brazil

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/CI...ples/multigrids

 

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

 

Higor



#8 Amit Shah

Amit Shah

    grocery CRUD Master

  • Advanced Member
  • PipPipPip
  • 1,192 posts
  • LocationMumbai, India

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.



#9 debianhot

debianhot

    Newbie

  • Members
  • Pip
  • 1 posts
  • LocationCanary Islands , SPAIN

Posted 29 June 2015 - 07: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...atch--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.

 

 

 

 

 



#10 brasuca

brasuca

    Newbie

  • Members
  • Pip
  • 1 posts

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


#11 mckaygerhard

mckaygerhard

    Member

  • Members
  • PipPip
  • 16 posts

Posted 30 May 2017 - 04: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.. 







0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users