Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 10 of 10
  1. #1
    Member
    Join Date
    May 2008
    Posts
    9

    Default /scripts folder empty

    Silly me accidentally removed all the content of the scripts folder on my server ...
    All is still running but if the server reboots I believe it will not work properly.
    How can I download all the scripts?
    I have seen that to install I can wget http://layer1.cpanel.net/latest
    then sh latest but I did not do it as I am not sure of the impact on my current config.
    If you had any suggsetion Iit would be greatly appreciated
    I am running 11.24 CURRENT on CentOS4.7
    Last edited by yemgi; 11-13-2008 at 02:32 PM.

  2. #2
    Member
    Join Date
    Jul 2006
    Posts
    38

    Default

    Are you already running sites on the server?

  3. #3
    Member
    Join Date
    May 2008
    Posts
    9

    Default

    Yes there are websites runnning on the server it is not a new install, I was just clearing some space on the disk but I did a rm -Rf * in the scripts folder by mistake I can't believe I forgot to check my location before doing it ...

  4. #4
    cPanel Product Evangelist Infopro's Avatar
    Join Date
    May 2003
    Location
    Pennsylvania
    Posts
    7,894
    cPanel/Enkompass Access Level

    Root Administrator

    Lightbulb

    Force a cPanel update. I think it would replace any files it needs that are not there or out of date as needed.

    Let us know for sure, after..
    Fav cPlinks this week: Blog - cPanel & WHM 11.32 we love it! | cPanel University study for it! | Attracta is coming! we want this!

  5. #5
    Member
    Join Date
    May 2008
    Posts
    9

    Default

    I wish I could but upcp was in the scripts folder

  6. #6
    Member
    Join Date
    May 2008
    Posts
    9

    Default

    OK, I found a way, I used the following command
    rsync --timeout=1000 -av rsync://rsync.cpanel.net/scripts /scripts
    This populated my /scripts folder with all the scripts.

    I am currently running /scripts/upcp in the hope that it will help to solve any potential issue due to this.

  7. #7
    Member
    Join Date
    May 2008
    Posts
    9

    Default

    Well, it looks like all is not working properly after this. The WHM does not seem to have the rights to run the scripts

    What should be the rights on the /scripts content, ewhen I look on my server some are owned by root some are owned by webadmin

    Here is what I get when I try to force an update via the CLI:
    Code:
    [root@vps scripts]# /scripts/upcp --force
    Can't locate cPScript/CPAN/URI/Escape.pm in @INC (@INC contains: /usr/local/cpanel /scripts /usr/lib/perl5/5.8.8/i686-linux /usr/lib/perl5/5.8.8 /usr/lib/perl5/site_perl/5.8.8/i686-linux /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl/5.8.5 /usr/lib/perl5/site_perl/5.8.4 /usr/lib/perl5/site_perl/5.8.3 /usr/lib/perl5/site_perl/5.8.2 /usr/lib/perl5/site_perl/5.8.1 /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl .) at /scripts/cPScript/Encoder.pm line 11.
    BEGIN failed--compilation aborted at /scripts/cPScript/Encoder.pm line 11.
    Compilation failed in require at /scripts/cPScript/HttpRequest.pm line 15.
    BEGIN failed--compilation aborted at /scripts/cPScript/HttpRequest.pm line 15.
    Compilation failed in require at /scripts/upcp line 15.
    BEGIN failed--compilation aborted at /scripts/upcp line 15.
    Last edited by yemgi; 11-14-2008 at 02:00 PM. Reason: added the logs

  8. #8
    Member
    Join Date
    Dec 2006
    Posts
    113

    Default

    Code:
    Can't locate cPScript/CPAN/URI/Escape.pm in @INC
    It sounds like you still need to grab the other directories that exist inside the /scripts directory.

    For example, the error above is saying that this file is missing:
    /scripts/cPScript/CPAN/URI/Escape.pm

    The directories that exist inside the /scripts directory are shown below, taken from a box running a somewhat recent version of STABLE:

    [root@host:/scripts]# find -type d -maxdepth 1
    ./cPScript
    ./cpan_sandbox
    ./php_sandbox

    The cPScript directory also contains other directories as well as files, so you will need those as well.

    I've seen some files owned by webadmin in the /scripts directory before, but all the ones I'm looking at now are uid.gid root.root. It's probably safe to leave the ownership as it is on the files owned by webadmin. As long as cPanel can read from the files or execute the files (whichever it may need to do), it's probably ok to leave things as they are.

  9. #9
    Member
    Join Date
    May 2008
    Posts
    9

    Default

    Thanks,
    I have re -rsync the scripts folder and I have then been able to launch /scripts/upcp --force instead of just /scripts/upcp as I did yesterday, it is still running at the moment but I can see in the logs thatit is retrieving the folders you pointed out and their content. Hopefully that will do the trick

  10. #10
    Member
    Join Date
    Mar 2008
    Location
    Karachi,Pakistan
    Posts
    49

    Default linux thirst

    Hello ,

    I think you need to reinstall the cpanel
    Quote Originally Posted by yemgi View Post
    Thanks,
    I have re -rsync the scripts folder and I have then been able to launch /scripts/upcp --force instead of just /scripts/upcp as I did yesterday, it is still running at the moment but I can see in the logs thatit is retrieving the folders you pointed out and their content. Hopefully that will do the trick

Similar Threads & Tags
Similar threads

  1. Help! Mail folder empty... it seems...
    By cecilchen in forum New User Questions
    Replies: 0
    Last Post: 11-12-2008, 08:20 AM
  2. Cannot empty trash folder in cpanel file mgr
    By happywestie in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 08-30-2007, 12:45 PM
  3. Looking for script that empty spambox folder!
    By wimp in forum cPanel and WHM Discussions
    Replies: 14
    Last Post: 08-06-2007, 04:16 PM
  4. Deleting a non-empty folder from SSH ???
    By checked in forum New User Questions
    Replies: 7
    Last Post: 05-05-2004, 06:57 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube