Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Results 1 to 12 of 12
  1. #1
    Member
    Join Date
    Nov 2003
    Posts
    521

    Question Make Server Compatible with Wordpress automatic updates and plugin installations

    Greetings,

    I'm basically pulling my hair out because I'm not exactly sure how to solve this problem.

    I've transferred over 30 wordpress websites to my server and each one have the same issue. Before the move they were all able to install plugins and update from the Wordpress dashboard without needing FTP credentials.

    Now every website is asking for FTP credentials, and even though it goes through the plugin update procedure... the plugins never actually get updated. As well as several other issues.

    I'm trying to figure out where to start looking on my server to make it compatible without wordpress while not needing to use FTP to utilize the dashboard automatic installation method.

    The updates work when I switched my FTP server to Pro-ftpd instead of the pure ftp server. However I would prefer not to use FTP at all and just let Wordpress do it's thing naturally.

    ----
    My Server config is:
    - Latest RELEASE version of CPanel
    - PHP Version 5.2.11 w/ PHPsuexec
    - CentOS
    - eAccelerator+Zend+suhosin+suphp

    The following PHP functions are disabled:
    - dl
    - passthru
    -proc_open
    -proc_close,
    -system,
    -virtual,
    -show_source,
    -pclose,
    -posix_kill,
    -proc_get_status,
    -proc_nice,
    -proc_terminate,
    -escapeshellarg,
    -highlight_file,
    -leak,
    -diskfreespace,
    -show_source,
    -ini_alter,
    -ini_restore,
    -getrusage,
    -get_current_user,
    -set_time_limit,
    -getmyuid,
    -getmypid

    Thank you in advance for any replies.

  2. #2
    Member
    Join Date
    Nov 2003
    Posts
    521

    Default

    Okay been doing research on other forums as well. Some people claim the Server settings that Wordpress needs to accomplish this without the FTP method via the dashboard opens up a huge security risk.

    Can anyone advise?

  3. #3
    Member
    Join Date
    Nov 2003
    Posts
    521

    Default

    Would having the libssh2 php extension installed resolve this issue? Been browsing the Wordpress files and in the "class-wp-filesystem-ssh2.php" file it mentions this.

    I'm still reading multiple posts but not directly related to my issue, but very similar. Am I correct assuming that for Wordpress to use the autoinstaller without needing FTP credentials, it uses the SSH2 function?

    I guess maybe if I understand what type of method wordpress uses when it is able to autoinstrall without needing FTP credentials, I might have a better idea on where to look to fix the issue on my server.

  4. #4
    Member
    Join Date
    Nov 2003
    Posts
    521

    Default

    I finally solved the issue but I did multiple things at once so not sure which one specifically solved the situation but I'm guessing it was enabling getmyuid and getmypid in my php functions.

    Basically i re-enabled these functions and removed eaccerlator.

    1. pclose
    2. set_time_limit
    3. getmyuid
    4. getmypid

    Now it never asks me for FTP information when trying to update from Admin, and so far everything upgrades perfectly with no errors and no issues.

    But thank you to everyone who participated in my quest for the answer lol . Much appreciated.

    Finally i can rest!! for a bit.

  5. #5
    Member
    Join Date
    Dec 2004
    Posts
    9

    Default

    Quote Originally Posted by damainman View Post
    I finally solved the issue but I did multiple things at once so not sure which one specifically solved the situation but I'm guessing it was enabling getmyuid and getmypid in my php functions.

    Basically i re-enabled these functions and removed eaccerlator.

    1. pclose
    2. set_time_limit
    3. getmyuid
    4. getmypid


    Now it never asks me for FTP information when trying to update from Admin, and so far everything upgrades perfectly with no errors and no issues.

    But thank you to everyone who participated in my quest for the answer lol . Much appreciated.

    Finally i can rest!! for a bit.
    where do i find these??
    i cant seem to find them anywhere in order to enable/disable them

  6. #6
    Member
    Join Date
    Jun 2008
    Location
    Indiana, USA
    Posts
    104

    Default

    Those settings would have been specifically disabled (i.e. if you don't know where to find them, they're probably not disabled).

    More often than not WordPress not updating automatically has more to do with the server not running suPHP (so the files execute as "nobody") than anything else.

    If you're running suPHP then you may have other configuration issues.
    Michael Denney
    MDDHosting LLC
    http://www.mddhosting.com/

  7. #7
    Member
    Join Date
    Dec 2004
    Posts
    9

    Default

    Quote Originally Posted by MikeDVB View Post
    Those settings would have been specifically disabled (i.e. if you don't know where to find them, they're probably not disabled).

    More often than not WordPress not updating automatically has more to do with the server not running suPHP (so the files execute as "nobody") than anything else.

    If you're running suPHP then you may have other configuration issues.
    perfect thank you,, ill investigate that angle

    thx mate

  8. #8
    Member
    Join Date
    Dec 2004
    Posts
    9

    Default

    Quote Originally Posted by MikeDVB View Post
    Those settings would have been specifically disabled (i.e. if you don't know where to find them, they're probably not disabled).

    More often than not WordPress not updating automatically has more to do with the server not running suPHP (so the files execute as "nobody") than anything else.

    If you're running suPHP then you may have other configuration issues.
    yup that was it, suPHP
    works perfectly now thank you

  9. #9
    Registered User
    Join Date
    Sep 2010
    Posts
    1

    Default

    Hi,

    I am having the same issue and I tried following your guidelines but still doesn't work.

    It still asks me for the FTP information everytime.

    Are you able to let me know where do I enable suPHP from the WHM ?

    Thank you very much for your help.

  10. #10
    cPanel Staff cPanelJared's Avatar
    Join Date
    Feb 2010
    Location
    Houston, TX
    Posts
    1,032

    Default PHP handler

    The PHP handler is selected in the WebHost Manager in Main >> Service Configuration >> Apache Configuration >> PHP and SuExec Configuration. suPHP is one of four possible PHP handlers on a cPanel server, in addition to CGI, FCGI and DSO. Not all handlers may be listed on all servers, depending on what is compiled using EasyApache.
    For hands-on assistance, please reference our new support information page: Where should I go for support?
    cPResources: Support Options - Submit a ticket here - Additional Support Options - Forums Search - Mailing Lists(Alt) - Documentation


    -- Jared Ryan, Technical Analyst, cPanel Technical Support

  11. #11
    Member
    Join Date
    Jun 2008
    Location
    Indiana, USA
    Posts
    104

    Default

    Quote Originally Posted by cPanelJared View Post
    The PHP handler is selected in the WebHost Manager in Main >> Service Configuration >> Apache Configuration >> PHP and SuExec Configuration. suPHP is one of four possible PHP handlers on a cPanel server, in addition to CGI, FCGI and DSO. Not all handlers may be listed on all servers, depending on what is compiled using EasyApache.
    This is absolutely correct. If you don't know how to do this without having to post on a forum you may want to look at obtaining server management from your provider, a third party, or shifting to a fully managed service.
    Michael Denney
    MDDHosting LLC
    http://www.mddhosting.com/

  12. #12
    Member
    Join Date
    Mar 2002
    Posts
    442

    Default Re: Make Server Compatible with Wordpress automatic updates and plugin installations

    Just sharing the love... with help from a colleague we've just been able to solve this issue (or what appears to be the same issue) by installing this plugin:

    WordPress › FTP Upgrade Fix « WordPress Plugins

    We *don't* have suphp installed on the server in question, but with this fix, assuming permissions generally are set correctly (which they were all the time), hopefully auto-updating should become more reliable/stable.
    • Web Design Perth .:. Itomic Business Website Solutions of Perth, Western Australia

Similar Threads & Tags
Similar threads

  1. Planned for 11.36 Make cPanel IPV6 Compatible [Case 10334]
    By brentp in forum Feature Requests for cPanel/WHM
    Replies: 110
    Last Post: Yesterday, 06:37 PM
  2. mod_security and a WordPress Plugin
    By ruicruz in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 07-11-2011, 05:53 AM
  3. Automatic Wordpress updates usually fail. Anyone found a solution?
    By spaceman in forum cPanel and WHM Discussions
    Replies: 5
    Last Post: 04-15-2011, 02:28 PM
Tags for this Thread
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube