Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 8 of 8
  1. #1
    Member
    Join Date
    Mar 2003
    Posts
    604

    Default moved site to secondary drive, now getting errors on cgi scripts

    Hi,

    I was running out of space on a drive, so I added another drive. I then used the "mv" command to move a sites /home/user" folder to "/home2/user".

    I then made a ln -s /home2/user /home/user to point it to the new directory.

    Everything is working fine except the cgi-bin. Nothing in there seems to work, but was working fine before the move.

    I just get "premature end of script headers". I've checked all the permissions, users, everything. It was the "mv" command, so I'm sure it just moved them directly, so i wouldn't think it would be a binary/ascii issue...

    Anyone else had this problem before?
    Last edited by noimad1; 05-30-2008 at 05:58 PM.

  2. #2
    Member
    Join Date
    Mar 2003
    Posts
    604

    Default

    bump...i really need help on this one if anyone has any ideas...

    I've even tried going into my httpd.conf file and change the stanza for that domain to the /home2 directory....

  3. #3
    Member rhenderson's Avatar
    Join Date
    Apr 2005
    Location
    Oklahoma
    Posts
    742

    Default

    mv them back and use Main >> Account Functions >> Rearrange Accounts
    Regards,
    Randy
    Affordable Web Hosting
    _________________________

  4. #4
    Member viraj's Avatar
    Join Date
    Sep 2006
    Location
    India
    Posts
    209
    cPanel/Enkompass Access Level

    DataCenter Provider

    Thumbs up

    Quote Originally Posted by rhenderson View Post
    mv them back and use Main >> Account Functions >> Rearrange Accounts
    Correct, WebHost Manager enables you to change the location of an account at any time. This is usually used when the available disk space on a server is low and you need to move accounts to another partition or drive.

    Refer this link for more details :

    http://www.cpanel.net/docs/whm/Rearr...s_(normal).htm

  5. #5
    Member
    Join Date
    Mar 2003
    Posts
    604

    Default

    Ah man, I had no idea at all that was available....man, wish I would have known that before I moved this 8GB site!

  6. #6
    Member
    Join Date
    Mar 2003
    Posts
    604

    Default

    Ok, so here's the deal. I moved the site back to the /home directory, and just for the heck of it, tried the cgi-bin. It was working fine.

    I used the WHM tool to re-arrange the account to that drive, and guess what....cgi-bin isn't working now....

    So it has to be something with the configuration...I just can't figure it out?

  7. #7
    Member
    Join Date
    Mar 2003
    Posts
    604

    Default

    Ok...finally figured out the problem. Turns out the drive was mounted with noexec permissions....added the exec permissions and it worked right away!

  8. #8
    Member rhenderson's Avatar
    Join Date
    Apr 2005
    Location
    Oklahoma
    Posts
    742

    Default

    Glad to hear you got it!!
    Regards,
    Randy
    Affordable Web Hosting
    _________________________

Similar Threads & Tags
Similar threads

  1. Create accounts in a secondary drive ¿¿??
    By sh4ka in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 06-04-2007, 02:21 PM
  2. Using secondary drive for MySql
    By jeroman8 in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 02-14-2006, 06:08 AM
  3. secondary drive, NOT backup
    By Secret Agent in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 05-05-2005, 11:42 AM
  4. RAID / Secondary Hard Drive Backups
    By rweiss in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 04-12-2003, 08:48 AM
  5. Secondary Hard Drive and back up
    By Radio_Head in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 01-29-2003, 04:18 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube