Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    Jul 2011
    Posts
    2

    Default changing php handler from suPHP to FCGi gives permission problem

    Hi All,

    I am trying to change my php handler from suphp to FCGI which is fine and changes and websites run, however now I am experiencing permission errors.

    In wordpress media manager when you try to upload an error using the flash uploader you get a http error, and the browser uploader gives a 500 error.

    Wordpress is able to update it's files and update plugins but file uploads just won't work any more. I've checked the folder and it has a 755 permission. I've tried with 777 permissions and that doesn't work either.

    I then created a test php upload script and that gives a 500 error so it seems to be uploading. I have checked the error logs and they are not capturing the problem.

    I'm stumped as to what this can be, and googling has found nothing direct that works.

    Any body have any ideas:

    It's a vps running Cpanel v 11.30.1 (build 4)
    php v5.3.6 running as fcgi, with suexec on (I have tried with it on and off and neither makes a difference)
    Apache v 2.2

    Everything else works except files uploads.

    Thanks in advance

    Tom

  2. #2
    cPanel Staff cPanelTristan's Avatar
    Join Date
    Oct 2010
    Location
    somewhere over the rainbow
    Posts
    6,305
    cPanel/Enkompass Access Level

    Root Administrator

    Default Re: changing php handler from suPHP to FCGi gives permission problem

    Could you provide details on the exact plugin name for this Flash uploader or a link to it? I would like to install a copy of WordPress, switch my machine to FCGI and then check using that plugin, but I'm not familiar with it in WordPress and want to ensure I have the correct one I would be using for testing.
    cPResources: Support Options | More Support Options | Forums Search | cPanel.net Site Search | Mailing Lists(Alt) | Docs
    -- Tristan, Forums Technical Analyst, cPanel Tech Support

    Submit a ticket | Check an existing ticket

  3. #3
    Registered User
    Join Date
    Jul 2011
    Posts
    2

    Default Re: changing php handler from suPHP to FCGi gives permission problem

    Hi Tristan,

    The uploader is just the media flash uploader that is included as standard in Wordpress. I am using wordpress v3.2.1

    if you install wordpress and the go to media in the menu and the click Add new and upload a picture and if it doens't work http error appears in red, or if you switch the browser upload, it gives the 500 error.

    Thanks!

    Tom

  4. #4
    Registered User
    Join Date
    Jan 2012
    Posts
    4
    cPanel/Enkompass Access Level

    Reseller Owner

    Default Re: changing php handler from suPHP to FCGi gives permission problem

    I'm posting this for future reference, it might help someone that wil google this thread.

    I had the same problem with WordPress and it turned out this was the culprit.
    In your php.conf update this
    Code:
    FcgidMaxRequestLen 15728640
    This will allow you to upload files up to 15 MB via PHP forms.
    The default FastCGI setting is limited somewhere around 120kb - at least it was in our installation.

Similar Threads & Tags
Similar threads

  1. Individual php.ini files for PHP FCGI and PHP CGI
    By Miraenda in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 08-22-2011, 08:55 AM
  2. Error 504 after changing SuPHP to FCGI
    By Massoud in forum cPanel and WHM Discussions
    Replies: 6
    Last Post: 02-21-2011, 02:38 PM
  3. Replies: 10
    Last Post: 12-11-2010, 05:43 PM
  4. suPHP install-sh permission denied problem on freebsd 4.11
    By mattmattt in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 07-14-2008, 05:21 PM
  5. Problem with PHP: "Cannot find save handler files"
    By amaltemara in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 07-03-2008, 06:16 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube