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 mod_userdir broken since cPanel 66

Discussion in 'EasyApache' started by Kent Brockman, Aug 28, 2017.

  1. Kent Brockman

    Kent Brockman Well-Known Member

    Joined:
    Jan 20, 2008
    Messages:
    1,156
    Likes Received:
    3
    Trophy Points:
    68
    Location:
    Buenos Aires, Argentina
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello guys, I want to report a possible bug starting on cPanel 66: since the upgrade from version 64, all the IP/hostname accesses that used to work normally are now showing the "not supported" message.

    This must be something broken in this release. I noticed this happens specifically with WordPress sites. Folders with PHP sites without .htaccess files are working ok.

    Can you try to reproduce this?

    Thanks!
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

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

    Internal case CPANEL-15459 is open to address an issue where enabling the recommend "search /home directory and below" setting for the .htaccess optimization feature in cPanel version 66 breaks Mod_Userdir functionality. I'll monitor this case and update this thread with more information as it becomes available. In the meantime, you can browse to "WHM >> Home >> Service Configuration >> Apache Configuration >> Global Configuration" and set "Optimize .htaccess (AllowOverride)" to "Search "/" and below (No optimization, Search Full Path)" as a workaround.

    Thank you.
     
  3. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    38,165
    Likes Received:
    1,371
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hi @Kent Brockman,

    It looks something else might have lead to the issue you are facing, as we have been unable to reproduce this issue in a test environment. Could you let us know the output from the below commands on an affected system?

    Code:
    rpm -qa|grep passenger
    rpm -qa|grep ruid2
    rpm -qa|grep itk
    /usr/local/cpanel/bin/rebuild_phpconf --current
    ls -al /var/cpanel/templates/apache2_4/|grep local
    Thank you.
     
  4. Kent Brockman

    Kent Brockman Well-Known Member

    Joined:
    Jan 20, 2008
    Messages:
    1,156
    Likes Received:
    3
    Trophy Points:
    68
    Location:
    Buenos Aires, Argentina
    cPanel Access Level:
    Root Administrator
    Twitter:
    OK, here it is.

    On cPanel 66, where mod_userdir is broken:

    Code:
    [root ~]# rpm -qa|grep passenger
    [root ~]# rpm -qa|grep ruid2
    [root ~]# rpm -qa|grep itk
    [root ~]# /usr/local/cpanel/bin/rebuild_phpconf --current
    DEFAULT PHP: ea-php70
    ea-php54 SAPI: cgi
    ea-php55 SAPI: suphp
    ea-php56 SAPI: cgi
    ea-php70 SAPI: cgi
    ea-php71 SAPI: cgi
    [root ~]# ls -al /var/cpanel/templates/apache2_4/|grep local
    -rw-r--r-- 1 root root   200 May  1 22:46 000-local_template_check.json
    
    On cPanel 64, where mod_userdir does work well:

    Code:
    [root ~]# rpm -qa|grep passenger
    [root ~]# rpm -qa|grep ruid2
    [root ~]# rpm -qa|grep itk
    [root ~]# /usr/local/cpanel/bin/rebuild_phpconf --current
    DEFAULT PHP: ea-php70
    ea-php55 SAPI: suphp
    ea-php56 SAPI: cgi
    ea-php70 SAPI: cgi
    ea-php71 SAPI: cgi
    [root ~]# ls -al /var/cpanel/templates/apache2_4/|grep local
    -rw-r--r-- 1 root root   200 May  1 22:19 000-local_template_check.json
    
    Any other places to look for differences?
     
    #4 Kent Brockman, Aug 29, 2017
    Last edited: Aug 30, 2017
  5. Edward Solomon

    Edward Solomon Registered

    Joined:
    Aug 30, 2017
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    London, UK
    cPanel Access Level:
    Root Administrator
    I've been encountering the same problem. Here is the output of the same set of commands on my VPS:
    Code:
    root@vps [~]# rpm -qa|grep passenger
    root@vps [~]# rpm -qa|grep ruid2
    root@vps [~]# rpm -qa|grep itk
    root@vps [~]# /usr/local/cpanel/bin/rebuild_phpconf --current
    DEFAULT PHP: ea-php70
    ea-php55 SAPI: suphp
    ea-php56 SAPI: suphp
    ea-php70 SAPI: suphp
    root@vps [~]# ls -al /var/cpanel/templates/apache2_4/|grep local
    -rw-r--r--  1 root root   200 May  1 21:50 000-local_template_check.json
    
     
  6. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

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

    Thanks for the additional information. We were able to reproduce the issue after further testing. I'll update this thread again once we publish a resolution.

    Thank you.
     
    Kent Brockman likes this.
  7. Mikhail

    Mikhail Member

    Joined:
    Jan 1, 2017
    Messages:
    6
    Likes Received:
    1
    Trophy Points:
    1
    Location:
    Melbourne, Australia
    cPanel Access Level:
    DataCenter Provider
    Do we have an update on this it's killing my business!
     
    Fraser-Hannah likes this.
  8. Fraser-Hannah

    Fraser-Hannah Registered

    Joined:
    Sep 5, 2017
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Cumbria, UK
    cPanel Access Level:
    Root Administrator
    This is causing us a real issue as well - is there any idea of a timescale to get this fixed?
     
  9. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    38,165
    Likes Received:
    1,371
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    The resolution should be included in the next cPanel 66 build that's published. We don't have a specific time frame to offer, but I'll update this thread as soon as it's released.

    Thank you.
     
  10. edgemyster

    edgemyster Registered

    Joined:
    Mar 18, 2017
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    California
    cPanel Access Level:
    Root Administrator
    This is also a problem for me. The temporary workaround that has worked for me in meantime has been to change the PHP Handler for the various versions from CGI to SUPHP... and then enabling PHP-FPM for any sites that are still having problems.
     
  11. edgemyster

    edgemyster Registered

    Joined:
    Mar 18, 2017
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    California
    cPanel Access Level:
    Root Administrator
    UPDATE: Given my symptoms were the same and the problem sprouted up at the same time, I assumed I had a similar issue. The problem compounded itself when I noticed that scripts in the cgi-bin directories were now failing whereas they worked fine before the update. However, I was able to fix this issue in the following way. I went into EasyApache 4 ("Customize") to look at the status of mod_cgid and discovered that MANY of the packages listed there indicated they could be "Updated." Once I provisioned the update across these packages, everything began functioning properly again. Sorry if this is unrelated, but I wanted to post this in the event it helped someone else.
     
  12. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

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

    This is fixed in the most recent EasyApache 4 update:

    1.0-111 - EA-6733: Ensure .htaccess is read with mod_userdir and htaccess optimizations

    You can use the "yum update" command to update your system to the latest EA4 RPMs if automatic updates are disabled.

    Thank you.
     
  13. kenlaws

    kenlaws Registered

    Joined:
    Sep 8, 2017
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Los Angeles
    cPanel Access Level:
    Root Administrator
    Hey, sorry to be dense about this, but I want to be sure that a) I have this problem and b) I know how to fix this problem.

    I have "standard" WordPress installs, up-to-date, with the standard WordPress .htaccess files at the root public_html level, successfully running on PHP 7.1 up until a few days ago.

    Now, while the target post loads, none of the theme or js files load. (i.e., /wp-content/themes/klog/styles.css.) 404 not found.

    This is the problem we're talking about here, correct?

    Michael: Thank you for keeping us up-to-date on a fix. Sadly, since I am a dunce, can you give me some slightly more step-by-step instructions? I tried running System Update as well as yum update, but both claim I'm up-to-date.

    I'm running v66.0.18.
     
  14. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    38,165
    Likes Received:
    1,371
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Are you accessing the URL with Apache Mod_Userdir (e.g. IP/~username/)? If not, the issue you described seems more likely to relate to the following thread:

    SOLVED - Latest cPanel Update causes 404 errors

    Thank you.
     
Loading...

Share This Page