The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Strange directory format

Discussion in 'General Discussion' started by paralard, Aug 6, 2005.

  1. paralard

    paralard Well-Known Member

    Joined:
    Mar 2, 2003
    Messages:
    114
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Austin Texas
    I have a client that says his forums are crashing and it is because the server is acting strange by messing uo the order of his directorys..... He has given me an example below. I have no idea what may be causing this. Does anyone have any ideas what it may be or were I should start to troube shoot it?

    The below...

    05-08-02
    05-07-30
    05-07-19
    ..
    05-07-31
    .
    05-07-29
    05-07-14

    should look like...

    ..
    .
    05-08-02
    05-07-30
    05-07-19
    05-07-31
    05-07-29
    05-07-14
     
  2. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    It entirely depends on how you are listing the directories. If they're through a scripting language, then they will usually be in creation order and it is the responsibility of the script, in any case, to sort them appropriately.

    If you're liosting them from shell, it entirely depends on which parameters you use with ls.

    I would guess that it is a bug in the script involved.
     
  3. paralard

    paralard Well-Known Member

    Joined:
    Mar 2, 2003
    Messages:
    114
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Austin Texas
    We recently moved servers and he says the problem began when we made the move. There is a big difference in the two servers and that is that on the new server we are running phpsuexe and we were not running it on the old server.

    Do you think this could be a product of phpsuexe?


    Thanks for your response........ :)
     
  4. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    No, phpsuexec would have nothing to do with it. It sounds like a bug in the script that is not sorting the directory input correctly and which is making assumptions which it shouldn't about returned file order.
     
  5. paralard

    paralard Well-Known Member

    Joined:
    Mar 2, 2003
    Messages:
    114
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Austin Texas
    The problem did not occur untill after the server move. I have no complaints from him for over a year, the after we move the trouble starts.

    Could it be the server configuration?
     
  6. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    No. It's a bug in the script. I would guess that when the account was restored the files weren't created in the same order as they had originally been. However, because of the bug in the clients script, it's failing to sort them correctly.
     
  7. paralard

    paralard Well-Known Member

    Joined:
    Mar 2, 2003
    Messages:
    114
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Austin Texas
    That makes good sense.
    He has conceded the problem is his script but now he thinks a server move will correct it.

    Thanks for all of your help.....
     
  8. webignition

    webignition Well-Known Member

    Joined:
    Jan 22, 2005
    Messages:
    1,880
    Likes Received:
    0
    Trophy Points:
    36
    I entirely agree with Chirpy's diagnosis.

    A server move may fix the issue by nothing other than sheer luck, however the coding bug will persist and may possibly display its symptoms at a later date. A server move fixing the issue depends on the relevant files being written to the disk drive in the order the script expects, when instead the order shouldn't matter and the script should be sorting the list correctly. The chance of a server move fixing this is so small its silly.

    I wouldn't take your client's consideration to move server as him accepting the fact that his script is at fault - quite the opposite! I therefore wish you luck in convincing your client that a server move won't fix the issue as it most likely won't and will only end up wasting your client's time!
     
  9. paralard

    paralard Well-Known Member

    Joined:
    Mar 2, 2003
    Messages:
    114
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Austin Texas
    Well put and I agree 100%

    Thanks for your help.
     
Loading...

Share This Page