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.

Problem trying to upgrade script

Discussion in 'General Discussion' started by Biddango, Mar 18, 2010.

  1. Biddango

    Biddango Registered

    Joined:
    Jan 7, 2010
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    Hi, I did a search for this issue and was unsuccessful finding the exact same problem, so forgive me if I missed it...

    I get an email every night that a software script needs upgrading. It is for wordpress, and it says that I have 2.8.5 and need to upgrade to 2.9.2. When I click on the link in the email (and log in), it comes to a screen that states this:

    "Could not prepare working directory: No such file or directory"

    I get the same thing if I go in through the normal manner of cpanel - software scripts - wordpress - upgrade.

    Does anyone have an idea what causes this? and how can I get it corrected?

    Thanks!
     
  2. YasminTiara

    YasminTiara Member

    Joined:
    Mar 18, 2010
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    great job. I had been looking and thinking about compiling a script to get this done for a while, but never came around. Im glad you finally did, its mid stream right now, but I've been following it closely and it looks like it will be flawless. great job! thanks!
     
  3. Jorel

    Jorel Well-Known Member

    Joined:
    Aug 15, 2003
    Messages:
    45
    Likes Received:
    0
    Trophy Points:
    6
    I'm having this same problem. Is there a fix for this?
     
  4. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    If anyone here has root access to the cPanel/WHM server, feel welcome to contact our technical analysts.

    If you are not the server administrator, please have your web hosting provider contact us so we can work with them to diagnose and resolve this issue.
     
  5. rachelm

    rachelm Well-Known Member

    Joined:
    Jan 26, 2005
    Messages:
    94
    Likes Received:
    1
    Trophy Points:
    8
    best solution I found was to do the following:

    #1 Make sure the wp-content/upgrade folder exists

    #2 chmod it to 777

    #3 do the upgrade from within the wp admin area

    #4 chmod wp-content/upgrade back to 755

    Problem is usually that the upgrade folder needs to be chmod 777 in order for WP to access the files and move them around, then chmod back to 755 afterward to ensure security.

    No idea why WP hasn't coded this into their upgrade routine on their own but took me ages to figure it out lol.
     
  6. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    Just a head's up, chmoding to 777 will break scripts on systems running SuPHP since SuPHP does not allow scripts with such insecure permissions to run on the server.
     
  7. nyjimbo

    nyjimbo Well-Known Member

    Joined:
    Jan 25, 2003
    Messages:
    1,125
    Likes Received:
    0
    Trophy Points:
    36
    Location:
    New York
    We are having the same issues. If we run it from the clients account with their username and password we ge the

    ""Could not prepare working directory: No such file or directory"" ​


    stuff. If we do the steps you list above then go to the WP admin and I click update to 2.9.2 in the wordpress admin I get:

    You do not have sufficient permissions to access this page.​


    If I go to the WHM control panel and try to do it from manage addons I get:

    Upgrading xxxxxxxxxx cPanel::Blogs::WordPress.0.yaml installation here...

    cPAddon cPanel::Blogs::WordPress
    This is a cPanel packaged module. (v0.4)

    Website WordPress › Blog Tool and Publishing Platform


    but it doesnt do anything else.

    I am stumped and my customers are furious that they cannot upgrade WP and the one that is there doesnt seem to be supporting the plugins that are coming out now.
     
  8. Spiral

    Spiral BANNED

    Joined:
    Jun 24, 2005
    Messages:
    2,023
    Likes Received:
    7
    Trophy Points:
    0
    David, you beat me to the punch line! :) (was getting read to point out the same thing)

    Anyway though David is correct ....

    On phpSuExec (CGI w/ SuExec), SuPHP, or FCGI based servers you cannot have any file or folder setup with 777 permissions in your web space or you will at best slow down your site drastically and at worst crash your site completely with Error 500 conditions.

    Everyone should keep in mind that anytime you see anyone say to use '777' permissions anywhere, they are **ALWAYS** referring to DSO based servers only (and even then it is still not particularly recommended)

    Just for the record --> Use 755 instead of 777 with these other systems.
     
  9. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator


    Are you upgrading the installation available on the server (the "Install cPAddons" screen), or the individual installation on an individual account (the "Manage cPAddons" screen)?

    Users can upgrade their own cPAddons by going into Site Software, selecting the software they want to upgrade and clicking the upgrade link at the bottom of the page (below the installation information form).​
     
  10. ahmedshuja

    ahmedshuja Registered

    Joined:
    Nov 12, 2010
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1

    I am my server's administrator and I can access WHM as root. No matter where I try to update Wordpress from (cpAddons, Site Software) I get what I have included in the attachment. What do I do?

    - Ahmed
     

    Attached Files:

  11. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    If you are running an old version of MySQL (older than 5.0), you will need to upgrade to MySQL 5.0 or 5.1. Upgrading MySQL can be done through WHM by clicking on "MySQL Upgrade" in the Software section of WHM.

    If you are running MySQL 5.0 or 5.1 and still see this, please let me know.
     
  12. DimensionZero

    DimensionZero Member

    Joined:
    Jul 26, 2007
    Messages:
    11
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Vancouver, BC
    Hi,

    Looks like I'm having this problem with upgrading wordpress on a client's site. MySQL 5.0.91 is installed and I was able to upgrade from Wordpress 2.7 to 2.8, but after that I received the error, Could not prepare working directory: No such file or directory.

    I've checked the permissions like others had mentioned earlier but those are fine as well so that doesn't seem to be the problem.

    Any other ideas?

    Update: I checked the cPanel error log and found this repeated about 6 times. I reset the mysql root password via WHM but still get this error.

    Hope this helps
    Code:
    DBD::mysql::db do failed: Access denied for user 'root'@'localhost' to database 'carlecom\_%' at /usr/local/cpanel/Cpanel/Mysql.pm line 1093.
    DBD::mysql::db do failed: Access denied for user 'root'@'localhost' to database 'carlecom\_%' at /usr/local/cpanel/Cpanel/Mysql.pm line 1093.
    [2010-12-07 16:54:28 -0800] warn [mysqladmin] FAILED GRANT: GRANT ALL ON `carlecom\_%`.* TO 'carlecom'@'localhost' IDENTIFIED BY PASSWORD '(removed)'; at /usr/local/cpanel/Cpanel/Mysql.pm line 405
            Cpanel::Mysql::add_dbowner_to_all(Cpanel::Mysql=HASH(0x1d66e580), 'carlecom', '(removed)', 1) called at /usr/local/cpanel/Cpanel/Mysql.pm line 446
            Cpanel::Mysql::updateprivs(Cpanel::Mysql=HASH(0x1d66e580)) called at /usr/local/cpanel/bin/mysqladmin line 99
    
     
    #12 DimensionZero, Dec 7, 2010
    Last edited: Dec 7, 2010
Loading...

Share This Page