Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    Dec 2010
    Posts
    3

    Default I canīt see my files in cPanel

    Hello Guys,

    I mounted a new VPS and I'm having some problems:

    1 - When I get the files via FileZilla, there is no problems, connection ok, but when I open my cPanel, the folder / public_html shown as empty!

    "This directory is empty."

    2 - I did the test in FileZilla, I put an - test.html - file via ftp - with the text "enabled", and runs perfect. But still this does not appear in the test.html file manager in cPanel.

    Another detail is when I try to run a PHP file, I get the error message 500 - Internal Server Error

    Is it some setting in whm?? I'm lost ... again!

    If you can, help me!

  2. #2
    Registered User
    Join Date
    Dec 2010
    Posts
    1

    Default Re: I canīt see my files in cPanel

    I've had the same problems as you are having. I managed to fix the Server 500 error easily but not the best of solutions. With this problem your current php handler is not present or non-functional. Go into WHM under
    Service Configuration->Configure PHP and SuExec
    and change the php handler.

    Here's my settings at the moment.
    Default PHP Version (.php files) 5
    PHP 5 Handler dso
    PHP 4 Handler none
    Apache suEXEC off
    As for the other problem with File Manager under CPanel the directory listing is not shown - not sure how to fix this. (There are few search results from google for this term.)

    ps: I am running WHM 11.28.52 [TRIAL]
    CENTOS 5.5 x86_64

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

    Default Re: I canīt see my files in cPanel

    When you see an "internal server error" on one of your sites, first check the PHP handler. You are probably using suPHP. Find which PHP handler you are using by clicking, in the WebHost Manager, Main >> Service Configuration >> Configure PHP and SuExec.

    If you are using suPHP, the exact error will be logged to either the error_log or suphp_log, but most likely error_log. Log into the shell as root, and use the tail -f command to watch the log file while you try to load the site in your browser. Use the following command:

    Code:
    # tail -f /usr/local/apache/logs/error_log
    This will show you the contents of the log file while it is being written. Now try to load the page. You can press Ctrl+C to stop the tail command and return to the shell command prompt. You can use the same command to monitor the suphp_log, which can also be helpful. Simply replace /usr/local/apache/logs/error_log with /usr/local/apache/logs/suphp_log in the tail -f command.

    Most likely, an internal server error in suPHP will be caused by a permissions or ownerships problem. By looking directly at the log, you can find the exact problem, with no need to guess. Directories used under suPHP need 755 permissions or less, and files used under suPHP need 644 permissions or less. Neither files nor directories should be writable by everybody (the last digit in the three-digit permissions values). Also, all files and directories used under suPHP need to be owned by the account user and group, not root or nobody.

    If you upload your files via FTP as the cPanel account user, the required permissions and ownerships will be applied automatically. If you use any other method to place your files on your server, such as uploading as root, permissions and ownerships are likely to be suspect and will probably need to be changed.

    You may find the following sections of our documentation helpful:

    Apache PHP Request Handling

    Apache PHP Request Handling
    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

  4. #4
    Member wayne_mu's Avatar
    Join Date
    Dec 2009
    Posts
    12

    Default Re: I canīt see my files in cPanel

    The 500 - Internal Server Error is mostly caused due to incorrect file permissions or the ownership for the particular files/directories. (on SUPHP server) . Make sure that the permissions for files is 644 and 755 for the directories.

    You can investigate the exact issue by checking the error logs you get in :-

    /usr/local/apache/logs/error_log
    Also, another possibility is the .htaccess code (if any) .

    esds Data Center

Similar Threads & Tags
Similar threads

  1. Office 2007 Files Downloading as ZIP Files in Internet Explorer
    By crazyaboutlinux in forum cPanel and WHM Discussions
    Replies: 10
    Last Post: 08-06-2011, 07:08 AM
  2. SuPHP Question - making .html files behave as .php files
    By Doug E in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 09-02-2010, 09:47 AM
  3. Replies: 3
    Last Post: 06-22-2010, 08:57 AM
  4. Replies: 0
    Last Post: 02-18-2010, 08:29 PM
  5. Cpanel files
    By Dias in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 03-16-2003, 07:40 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube