ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

CodeIgniter & GoDaddy

May 10, 2008 2:13pm

Subscribe [3]
  • #1 / May 10, 2008 2:13pm

    RobbieL

    43 posts

    So I’m just setting up my new hosting I got through GoDaddy a few weeks, and just got done installing CodeIgniter 1.6.1 on there. When I go to the usual CI welcome page it displays just fine, but there is an error about it saying “fclose(): supplied argument is not a valid stream resource” found in CI’s Common.php file.

    I didn’t get any issue like this when using CI 1.6.1 locally, so is this some a GoDaddy induced error? Any else experienced an issue like this with GoDaddy?


    Cheers.

  • #2 / May 10, 2008 2:19pm

    RobbieL

    43 posts

    A quick update: Just had a little browse in the Common.php file, and above the line with the error is makes note that the problem is probably related to my hosting being on a Windows server.

    Anyone know how to fix the error on a Windows box? Or is it easier to ask GoDaddy about changing my hosting from Windows to Linux?

  • #3 / May 10, 2008 3:00pm

    Tom Glover

    493 posts

    Is your local server windows or nix?

  • #4 / May 10, 2008 3:39pm

    RobbieL

    43 posts

    It’s Windows, running here off my laptop.

  • #5 / May 10, 2008 3:41pm

    Tom Glover

    493 posts

    PHP, Apache, MySQL versions on local and remote?

  • #6 / May 10, 2008 4:01pm

    RobbieL

    43 posts

    Local: PHP 5.2.5, Apache 2.0.59, MySQL 5.0.41.

    Remote: PHP 5.2.5, MySQL 5.0.41.

    Had a look on GoDaddy, and it seems it’s running IIS and not Apache. The version of IIS is 6.0.

  • #7 / May 10, 2008 4:03pm

    Tom Glover

    493 posts

    IIS may be your problem.

  • #8 / May 10, 2008 4:07pm

    RobbieL

    43 posts

    D’oh! Was afraid of that. You recommend getting in touch with GoDaddy and asking for a switch over to Linux?

  • #9 / May 10, 2008 8:29pm

    Derek Jones

    7561 posts

    GoDaddy’s not exactly a high quality host, so that in itself may be the problem.  CI should still work fine on IIS, and it shouldn’t be making to fclose() unless a valid resource was created.  Try removing the @ symbols from in front of the fopen() commands in is_really_writable() in Common.php, so any related errors aren’t being suppressed.  It sounds like fopen() is failing, but is not returning FALSE.  Maybe add a var_dump($fp) just after the fopen() too, so you can see exactly what was returned.

  • #10 / May 11, 2008 6:34am

    RobbieL

    43 posts

    Thanks for the tip Derek, it’s certainly shown that there is more problems. After removing the @ symbols, these errors also appeared:

    fopen() has been disabled for security reasons - codeigniter/Common.php (line 49)

    fclose(): supplied argument is not a valid stream resource - codeigniter/Common.php (line 54)

    chmod(): Unable to access d:\hosting\robbiedlaw\uploadr/system/cache/d645920e395fedad7bbbed0eca3fe2e0 - codeigniter/Common.php (line 55)

    chmod(): No such file or directory - codeigniter/Common.php (line 55)

    unlink(d:\hosting\robbiedlaw\uploadr/system/cache/d645920e395fedad7bbbed0eca3fe2e0): No such file or directory - codeigniter/Common.php (line 56)

    Looks like GoDaddy block the use of fopen. What are the chances of them lifting that block for my hosting? I imagine unlikely. Does anyone have any recommendations on a new host I could move over to?

  • #11 / May 11, 2008 9:01am

    RobbieL

    43 posts

    Another little update: GoDaddy just got back to me. They claim that 99% of PHP is disabled on their Windows hosting. No idea why. But they gave me instructions to switching my hosting over to Linux/Apache were there aren’t the daft PHP restrictions.

    It apparently takes 24hrs for the switch to happen, so will let you know how it goes.

  • #12 / May 11, 2008 12:02pm

    Derek Jones

    7561 posts

    Heh, weird.  I’m not sure that I would even bother with a host that behaves like that, but obviously that’s personal opinion.  There are a number of people using CI on GoDaddy, though; I guess they are just using their Linux hosting.

  • #13 / May 12, 2008 5:02am

    RobbieL

    43 posts

    Just got an email through that my hosting was switched to Linux, and everything seems to be working fine now. A few problems, like PATH_INFO not working but sticking a ? at the end of index.php fixed that.

    Ridiculous situation GoDaddy have going over there, but at least it’s fixed for the time being. Thanks everyone for the help, really appreciate.

  • #14 / Jul 19, 2008 11:34pm

    LNS

    10 posts

    @RobbieL: Can you help me! I use CI 1.6.1 on Linux Godaddy hosting. But my website don’t works (see detail: http://ellislab.com/forums/viewthread/85559/ ). Can you provide your php.ini configuration on hosting? Thanks very much!

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases