Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

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.

SOLVED Root Ownership problem

Discussion in 'General Discussion' started by Sametto Chan, Dec 19, 2016.

  1. Sametto Chan

    Sametto Chan Well-Known Member

    Joined:
    Jun 24, 2016
    Messages:
    260
    Likes Received:
    24
    Trophy Points:
    93
    cPanel Access Level:
    Root Administrator
    Twitter:
    "Forbidden
    You don't have permission to access /index.php on this server.
    Server unable to read htaccess file, denying access to be safe

    Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.
    "

    public_html user:user

    All folder are same user:user

    But folder > folder it's different root.

    I need this to default cpanel permissions / ownership by username.

    I used EasyApache 4.

    Code:
    Apache 2.4
    config
    
    config-runtime
    
    mod_asis
    
    mod_bwlimited
    
    mod_cgi
    
    mod_deflate
    
    mod_env
    
    mod_expires
    
    mod_headers
    
    mod_mpm_prefork
    
    mod_proxy
    
    mod_proxy_http
    
    mod_security2
    
    mod_ssl
    
    mod_suexec
    
    mod_suphp
    
    mod_unique_id
    
    mod_version
    
    tools
    
    PHP 7.1
    pear
    
    php-cli
    
    php-common
    
    php-devel
    
    php-ftp
    
    php-iconv
    
    php-litespeed
    
    php-posix
    
    php-xml
    
    runtime
    
    Others
    apr
    
    apr-util
    
    cpanel-tools
    
    documentroot
    
    libmcrypt
    
    modsec-sdbm-util
    
    php-cli
    
    php-cli-lsphp
    
    profiles-cpanel
    
    
     
    #1 Sametto Chan, Dec 19, 2016
    Last edited by a moderator: Dec 19, 2016
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    38,659
    Likes Received:
    1,428
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    Could you let us know the output to /usr/local/apache/logs/error_log when this happens?

    Please also see this thread:

    SOLVED - Permissions and Ownerships issues

    Thank you.
     
    Samet Chan likes this.
  3. Sametto Chan

    Sametto Chan Well-Known Member

    Joined:
    Jun 24, 2016
    Messages:
    260
    Likes Received:
    24
    Trophy Points:
    93
    cPanel Access Level:
    Root Administrator
    Twitter:
    I just fixed it, Today i deleted all folder and php script for root:root, then i uploaded from cPanel file manager only. Then extract unzip it's works fine.

    --------------------------------

    But i got keep for error

    ErrorException: Fatal Error: Cannot use lexical variable $eventName as a parameter name -

    I enabled debug mode by library/config.php

    I use PHP 7.1 (EasyApache 4)

    MySQL Version: 10.1.20-MariaDB
     
    #3 Sametto Chan, Dec 20, 2016
    Last edited: Dec 20, 2016
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    38,659
    Likes Received:
    1,428
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    It's possible you are installing a version of the script that doesn't support PHP 7.1. However, this error doesn't relate to the cPanel software itself. You should contact the support team for the script you are installing or post on their support forums for help with that error message.

    Thanks!
     
    Samet Chan likes this.
  5. Sametto Chan

    Sametto Chan Well-Known Member

    Joined:
    Jun 24, 2016
    Messages:
    260
    Likes Received:
    24
    Trophy Points:
    93
    cPanel Access Level:
    Root Administrator
    Twitter:
    However, Another my shared server ultimate from Namecheap, it's on PHP 7.0 it's works fine, there no error.

    I moved to vps server happens enabled for PHP 7.1, it's getting error. You told me this must to addon disable.

    I disabled all addon, it's keep error,

    Code:
    Template Errors: PAGE_CONTAINER
    [LIST=1]
    [*]A non-numeric value encountered in /home/xxxxxxx/public_html/library/XenForo/Template/Abstract.php(265) : eval()'d code, line 505:
    504: $headerTabHeight_outer = '';
    505: $headerTabHeight_outer .= (XenForo_Template_Helper_Core::styleProperty('headerTabHeight') + XenForo_Template_Helper_Core::styleProperty('navTabs.border-top-width') + XenForo_Template_Helper_Core::styleProperty('navTabs.border-bottom-width') + XenForo_Template_Helper_Core::styleProperty('navTabs.padding-top') + XenForo_Template_Helper_Core::styleProperty('navTabs.padding-bottom'));
    506: $__compilerVar6 .= '
    
    
    [*]A non-numeric value encountered in /home/xxxxxxx/public_html/library/XenForo/Template/Abstract.php(265) : eval()'d code, line 505:
    504: $headerTabHeight_outer = '';
    505: $headerTabHeight_outer .= (XenForo_Template_Helper_Core::styleProperty('headerTabHeight') + XenForo_Template_Helper_Core::styleProperty('navTabs.border-top-width') + XenForo_Template_Helper_Core::styleProperty('navTabs.border-bottom-width') + XenForo_Template_Helper_Core::styleProperty('navTabs.padding-top') + XenForo_Template_Helper_Core::styleProperty('navTabs.padding-bottom'));
    506: $__compilerVar6 .= '
    
    
    [*]A non-numeric value encountered in /home/xxxxxxx/public_html/library/XenForo/Template/Abstract.php(265) : eval()'d code, line 509:
    508: $uix_fixedNavigationHeight_outer = '';
    509: $uix_fixedNavigationHeight_outer .= (XenForo_Template_Helper_Core::styleProperty('uix_fixedNavigationHeight') + XenForo_Template_Helper_Core::styleProperty('uix_fixedNavigation_style.border-top-width') + XenForo_Template_Helper_Core::styleProperty('uix_fixedNavigation_style.border-bottom-width') + XenForo_Template_Helper_Core::styleProperty('uix_fixedNavigation_style.padding-top') + XenForo_Template_Helper_Core::styleProperty('uix_fixedNavigation_style.padding-bottom'));
    510: $__compilerVar6 .= '
    
    
    [*]A non-numeric value encountered in /home/xxxxxxx/public_html/library/XenForo/Template/Abstract.php(265) : eval()'d code, line 509:
    508: $uix_fixedNavigationHeight_outer = '';
    509: $uix_fixedNavigationHeight_outer .= (XenForo_Template_Helper_Core::styleProperty('uix_fixedNavigationHeight') + XenForo_Template_Helper_Core::styleProperty('uix_fixedNavigation_style.border-top-width') + XenForo_Template_Helper_Core::styleProperty('uix_fixedNavigation_style.border-bottom-width') + XenForo_Template_Helper_Core::styleProperty('uix_fixedNavigation_style.padding-top') + XenForo_Template_Helper_Core::styleProperty('uix_fixedNavigation_style.padding-bottom'));
    510: $__compilerVar6 .= '
    
    
    [*]A non-numeric value encountered in /home/xxxxxxx/public_html/library/XenForo/Template/Abstract.php(265) : eval()'d code, line 509:
    508: $uix_fixedNavigationHeight_outer = '';
    509: $uix_fixedNavigationHeight_outer .= (XenForo_Template_Helper_Core::styleProperty('uix_fixedNavigationHeight') + XenForo_Template_Helper_Core::styleProperty('uix_fixedNavigation_style.border-top-width') + XenForo_Template_Helper_Core::styleProperty('uix_fixedNavigation_style.border-bottom-width') + XenForo_Template_Helper_Core::styleProperty('uix_fixedNavigation_style.padding-top') + XenForo_Template_Helper_Core::styleProperty('uix_fixedNavigation_style.padding-bottom'));
    510: $__compilerVar6 .= '
    
    
    [*]A non-numeric value encountered in /home/xxxxxxx/public_html/library/XenForo/Template/Abstract.php(265) : eval()'d code, line 509:
    508: $uix_fixedNavigationHeight_outer = '';
    509: $uix_fixedNavigationHeight_outer .= (XenForo_Template_Helper_Core::styleProperty('uix_fixedNavigationHeight') + XenForo_Template_Helper_Core::styleProperty('uix_fixedNavigation_style.border-top-width') + XenForo_Template_Helper_Core::styleProperty('uix_fixedNavigation_style.border-bottom-width') + XenForo_Template_Helper_Core::styleProperty('uix_fixedNavigation_style.padding-top') + XenForo_Template_Helper_Core::styleProperty('uix_fixedNavigation_style.padding-bottom'));
    510: $__compilerVar6 .= '
    
    
    [*]A non-numeric value encountered in /home/xxxxxxx/public_html/library/XenForo/Template/Abstract.php(265) : eval()'d code, line 514:
    513: $uix_tabLinksHeight_outer = '';
    514: $uix_tabLinksHeight_outer .= (XenForo_Template_Helper_Core::styleProperty('uix_tabLinksHeight') + XenForo_Template_Helper_Core::styleProperty('uix_tabLinks_style.padding-top') + XenForo_Template_Helper_Core::styleProperty('uix_tabLinks_style.padding-bottom') + XenForo_Template_Helper_Core::styleProperty('uix_tabLinks_style.border-bottom-width') + XenForo_Template_Helper_Core::styleProperty('uix_tabLinks_style.border-top-width'));
    515: $__compilerVar6 .= '
    
    
    [*]A non-numeric value encountered in /home/xxxxxxx/public_html/library/XenForo/Template/Abstract.php(265) : eval()'d code, line 514:
    513: $uix_tabLinksHeight_outer = '';
    514: $uix_tabLinksHeight_outer .= (XenForo_Template_Helper_Core::styleProperty('uix_tabLinksHeight') + XenForo_Template_Helper_Core::styleProperty('uix_tabLinks_style.padding-top') + XenForo_Template_Helper_Core::styleProperty('uix_tabLinks_style.padding-bottom') + XenForo_Template_Helper_Core::styleProperty('uix_tabLinks_style.border-bottom-width') + XenForo_Template_Helper_Core::styleProperty('uix_tabLinks_style.border-top-width'));
    515: $__compilerVar6 .= '
    
    
    [*]A non-numeric value encountered in /home/xxxxxxx/public_html/library/XenForo/Template/Abstract.php(265) : eval()'d code, line 518:
    517: $uix_tabLinksHeightSticky_outer = '';
    518: $uix_tabLinksHeightSticky_outer .= (XenForo_Template_Helper_Core::styleProperty('uix_tabLinksHeightSticky') + XenForo_Template_Helper_Core::styleProperty('uix_tabLinksSticky_style.padding-top') + XenForo_Template_Helper_Core::styleProperty('uix_tabLinksSticky_style.padding-bottom') + XenForo_Template_Helper_Core::styleProperty('uix_tabLinksSticky_style.border-bottom-width') + XenForo_Template_Helper_Core::styleProperty('uix_tabLinksSticky_style.border-top-width'));
    519: $__compilerVar6 .= '
    
    
    [*]A non-numeric value encountered in /home/xxxxxxx/public_html/library/XenForo/Template/Abstract.php(265) : eval()'d code, line 518:
    517: $uix_tabLinksHeightSticky_outer = '';
    518: $uix_tabLinksHeightSticky_outer .= (XenForo_Template_Helper_Core::styleProperty('uix_tabLinksHeightSticky') + XenForo_Template_Helper_Core::styleProperty('uix_tabLinksSticky_style.padding-top') + XenForo_Template_Helper_Core::styleProperty('uix_tabLinksSticky_style.padding-bottom') + XenForo_Template_Helper_Core::styleProperty('uix_tabLinksSticky_style.border-bottom-width') + XenForo_Template_Helper_Core::styleProperty('uix_tabLinksSticky_style.border-top-width'));
    519: $__compilerVar6 .= '
    
    
    [*]A non-numeric value encountered in /home/xxxxxxx/public_html/library/XenForo/Template/Abstract.php(265) : eval()'d code, line 518:
    517: $uix_tabLinksHeightSticky_outer = '';
    518: $uix_tabLinksHeightSticky_outer .= (XenForo_Template_Helper_Core::styleProperty('uix_tabLinksHeightSticky') + XenForo_Template_Helper_Core::styleProperty('uix_tabLinksSticky_style.padding-top') + XenForo_Template_Helper_Core::styleProperty('uix_tabLinksSticky_style.padding-bottom') + XenForo_Template_Helper_Core::styleProperty('uix_tabLinksSticky_style.border-bottom-width') + XenForo_Template_Helper_Core::styleProperty('uix_tabLinksSticky_style.border-top-width'));
    519: $__compilerVar6 .= '
    
    
    [*]A non-numeric value encountered in /home/xxxxxxx/public_html/library/XenForo/Template/Abstract.php(265) : eval()'d code, line 523:
    522: $userBar_headerTabHeight_outer = '';
    523: $userBar_headerTabHeight_outer .= (XenForo_Template_Helper_Core::styleProperty('uix_userBarHeight') + XenForo_Template_Helper_Core::styleProperty('uix_userBar_style.border-top-width') + XenForo_Template_Helper_Core::styleProperty('uix_userBar_style.border-bottom-width') + XenForo_Template_Helper_Core::styleProperty('uix_userBar_style.padding-top') + XenForo_Template_Helper_Core::styleProperty('uix_userBar_style.padding-bottom'));
    524: $__compilerVar6 .= '
    
    
    [*]A non-numeric value encountered in /home/xxxxxxx/public_html/library/XenForo/Template/Abstract.php(265) : eval()'d code, line 523:
    522: $userBar_headerTabHeight_outer = '';
    523: $userBar_headerTabHeight_outer .= (XenForo_Template_Helper_Core::styleProperty('uix_userBarHeight') + XenForo_Template_Helper_Core::styleProperty('uix_userBar_style.border-top-width') + XenForo_Template_Helper_Core::styleProperty('uix_userBar_style.border-bottom-width') + XenForo_Template_Helper_Core::styleProperty('uix_userBar_style.padding-top') + XenForo_Template_Helper_Core::styleProperty('uix_userBar_style.padding-bottom'));
    524: $__compilerVar6 .= '
    
    
    [*]A non-numeric value encountered in /home/xxxxxxx/public_html/library/XenForo/Template/Abstract.php(265) : eval()'d code, line 523:
    522: $userBar_headerTabHeight_outer = '';
    523: $userBar_headerTabHeight_outer .= (XenForo_Template_Helper_Core::styleProperty('uix_userBarHeight') + XenForo_Template_Helper_Core::styleProperty('uix_userBar_style.border-top-width') + XenForo_Template_Helper_Core::styleProperty('uix_userBar_style.border-bottom-width') + XenForo_Template_Helper_Core::styleProperty('uix_userBar_style.padding-top') + XenForo_Template_Helper_Core::styleProperty('uix_userBar_style.padding-bottom'));
    524: $__compilerVar6 .= '
    
    
    [*]A non-numeric value encountered in /home/xxxxxxx/public_html/library/XenForo/Template/Abstract.php(265) : eval()'d code, line 523:
    522: $userBar_headerTabHeight_outer = '';
    523: $userBar_headerTabHeight_outer .= (XenForo_Template_Helper_Core::styleProperty('uix_userBarHeight') + XenForo_Template_Helper_Core::styleProperty('uix_userBar_style.border-top-width') + XenForo_Template_Helper_Core::styleProperty('uix_userBar_style.border-bottom-width') + XenForo_Template_Helper_Core::styleProperty('uix_userBar_style.padding-top') + XenForo_Template_Helper_Core::styleProperty('uix_userBar_style.padding-bottom'));
    524: $__compilerVar6 .= '
    
    
    [*]A non-numeric value encountered in /home/xxxxxxx/public_html/library/XenForo/Template/Abstract.php(265) : eval()'d code, line 527:
    526: $userBar_uix_fixedNavigationHeight_outer = '';
    527: $userBar_uix_fixedNavigationHeight_outer .= (XenForo_Template_Helper_Core::styleProperty('uix_fixedUserBarHeight') + XenForo_Template_Helper_Core::styleProperty('uix_fixedUserBar_style.border-top-width') + XenForo_Template_Helper_Core::styleProperty('uix_fixedUserBar_style.border-bottom-width') + XenForo_Template_Helper_Core::styleProperty('uix_fixedUserBar_style.padding-top') + XenForo_Template_Helper_Core::styleProperty('uix_fixedUserBar_style.padding-bottom'));
    528: $__compilerVar6 .= '
    
    
    [*]A non-numeric value encountered in /home/xxxxxxx/public_html/library/XenForo/Template/Abstract.php(265) : eval()'d code, line 527:
    526: $userBar_uix_fixedNavigationHeight_outer = '';
    527: $userBar_uix_fixedNavigationHeight_outer .= (XenForo_Template_Helper_Core::styleProperty('uix_fixedUserBarHeight') + XenForo_Template_Helper_Core::styleProperty('uix_fixedUserBar_style.border-top-width') + XenForo_Template_Helper_Core::styleProperty('uix_fixedUserBar_style.border-bottom-width') + XenForo_Template_Helper_Core::styleProperty('uix_fixedUserBar_style.padding-top') + XenForo_Template_Helper_Core::styleProperty('uix_fixedUserBar_style.padding-bottom'));
    528: $__compilerVar6 .= '
    
    
    [*]A non-numeric value encountered in /home/xxxxxxx/public_html/library/XenForo/Template/Abstract.php(265) : eval()'d code, line 527:
    526: $userBar_uix_fixedNavigationHeight_outer = '';
    527: $userBar_uix_fixedNavigationHeight_outer .= (XenForo_Template_Helper_Core::styleProperty('uix_fixedUserBarHeight') + XenForo_Template_Helper_Core::styleProperty('uix_fixedUserBar_style.border-top-width') + XenForo_Template_Helper_Core::styleProperty('uix_fixedUserBar_style.border-bottom-width') + XenForo_Template_Helper_Core::styleProperty('uix_fixedUserBar_style.padding-top') + XenForo_Template_Helper_Core::styleProperty('uix_fixedUserBar_style.padding-bottom'));
    528: $__compilerVar6 .= '
    
    
    [*]A non-numeric value encountered in /home/xxxxxxx/public_html/library/XenForo/Template/Abstract.php(265) : eval()'d code, line 527:
    526: $userBar_uix_fixedNavigationHeight_outer = '';
    527: $userBar_uix_fixedNavigationHeight_outer .= (XenForo_Template_Helper_Core::styleProperty('uix_fixedUserBarHeight') + XenForo_Template_Helper_Core::styleProperty('uix_fixedUserBar_style.border-top-width') + XenForo_Template_Helper_Core::styleProperty('uix_fixedUserBar_style.border-bottom-width') + XenForo_Template_Helper_Core::styleProperty('uix_fixedUserBar_style.padding-top') + XenForo_Template_Helper_Core::styleProperty('uix_fixedUserBar_style.padding-bottom'));
    528: $__compilerVar6 .= '
    [/LIST]
    
    I need change to PHP 7.0? Will be working?
     
    #5 Sametto Chan, Dec 20, 2016
    Last edited by a moderator: Dec 20, 2016
  6. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    38,659
    Likes Received:
    1,428
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    This is an issue with the specific PHP script as opposed to the cPanel/WHM software. You can try enabling PHP 7.0 for that account via "WHM >> MultiPHP Manager" to see if it works under PHP 7.0.

    Thank you.
     
    Samet Chan likes this.
  7. Sametto Chan

    Sametto Chan Well-Known Member

    Joined:
    Jun 24, 2016
    Messages:
    260
    Likes Received:
    24
    Trophy Points:
    93
    cPanel Access Level:
    Root Administrator
    Twitter:
    SenpaiMichael!

    Thank you, it's worked issue.

    How i do install a imagick and latest version?
     
  8. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    38,659
    Likes Received:
    1,428
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    There's a thread on that at:

    Installing Imagick CentOS 7

    Thanks!
     
    Samet Chan likes this.
Loading...

Share This Page