Skip to main content

[Resolved] [Case 95621] Optimize Website - No longer working

Comments

17 comments

  • vanessa
    Based on what the code on that line is trying to do, it's possible that perhaps your .htaccess is not writeable. Check .htaccess in public_html and make sure it's owned by user:user and is at least 644. Then tell cPanel how cute they are.
    0
  • lukapaunovic
    .htaccess file in /home/user/.htaccess is owned by user:user and has 0644 premissions. What else could be the problem?
    0
  • cPanelMichael
    Hello :) An internal case is open to address the issue you have reported. For reference, the case number is 95621. There is currently no time frame available on when a resolution might be released, but feel free to monitor the change log for that case number. One temporary workaround you could try is renaming the existing .htaccess file and then trying to enable/disable website optimization to see if it adds the correct entries. Remember to add back any additional entries to the .htaccess file (e.g. Mod_Rewrite rules). Thank you.
    0
  • cPanne
    If you see this issue, there is no /home/[cPanel user]/.htaccess file or the /home/[cPanel user]/.htaccess file is completely empty Here is a temporary solution: To be certain you are not over-writing any existing data: # mv /home/[cPanel user]/.htaccess /home/[cPanel user]/.htaccess.bak
    To fix the issue with Optimize Website: # echo > /home/[cPanel user]/.htaccess; chown [cPanel user].[cPanel user] /home/[cPanel user]/.htaccess
    cPanel >> Software/Services >> Optimize Website should work as expected once there is an existing .htaccess file with some content in /home/[cPanel user]/.htaccess
    0
  • nunomigpe
    Hi all I try this solutions but i have something like: .htaccess: Permission denied I delete with Fillezilla with root login, in the cpanel etc... but the fille keeps appearing Don"t know why Best Regards
    0
  • cPanelMichael
    [quote="nunomigpe, post: 1617261">I delete with Fillezilla with root login, in the cpanel etc... but the fille keeps appearing
    What permissions/ownership values is the file created with? Thank you.
    0
  • nunomigpe
    The permissions are 0644 I can change them but even then if i delete it appears again with 0644 Best Regards
    0
  • cPanelMichael
    The .htaccess file is required if you want to use the "Optimize Website" feature. Were you able to review this post to see if that helped? Thank you.
    0
  • egillette
    I have the same exact issue. . . Here is the contents of my .htaccess file: # BEGIN WordPress RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] # END WordPress
    In addition: -rw-r--r--. 1 money money 236 Apr 15 17:42 .htaccess
    And the public_html directory above it? drwxr-xr-x. 8 money money 4.0K Apr 15 17:41 public_html/
    cPanel user is obviously "money" -- I'm running Apache 2.x with MOD_RUID2 (security) and PHP as a DSO (speed). This is actually the first server I've noticed this issue on. . . Here is the output from httpd / php: root@tres [/home/money]# httpd -v Server version: Apache/2.2.27 (Unix) Server built: Apr 10 2014 11:15:25 Cpanel::Easy::Apache v3.24.15 rev9999 root@tres [/home/money]# php -v PHP 5.3.28 (cli) (built: Apr 10 2014 11:21:59) Copyright (c) 1997-2013 The PHP Group Zend Engine v2.3.0, Copyright (c) 1998-2013 Zend Technologies with eAccelerator v0.9.6.1-ea, Copyright (c) 2004-2012 eAccelerator, by eAccelerator with the ionCube PHP Loader v4.4.1, Copyright (c) 2002-2013, by ionCube Ltd., and with Zend Guard Loader v3.3, Copyright (c) 1998-2010, by Zend Technologies root@tres [/home/money]#
    Please advise. . .
    0
  • WilliamIsted
    I too am having this problem with a newly created account and .htaccess file. Any progress?
    0
  • cPanelMichael
    Please keep in mind the .htaccess file at the root of the problem is not in the public_html directory. It's the .htaccess file within the /home/username directory. A resolution is scheduled for inclusion with a future build of cPanel, but in the meantime, I have verified that Anne's workaround in the post above works as intended. Temporary Workaround for Case 95621 Thank you.
    0
  • egillette
    Michael, Thanks -- you know honestly I completely overlooked that. I thought the issue was with the public_html/.htaccess file and not the one above the public_html directory. I'll implement this fix on my machines -- thanks so much!
    0
  • pueblosnet
    Where can I subscribe to get a notification when this case will be finally fixed?
    0
  • cPanelMichael
    [quote="pueblosnet, post: 1633191">Where can I subscribe to get a notification when this case will be finally fixed?
    We do not send out notifications for specific cases, but you are welcome to monitor our change log: cPanel - Change Log Thank you.
    0
  • Serra
    I too am seeing this problem. cPanel creates a lock file, but then can't do anything. I've tried creating an empty file and also tried deleting it turning it on without a file there. Anyway, a work around is to take the code from another .htaccess and put it in the one you want to turn this on for and that will turn it on.
    0
  • cPanelPeter cPanel Staff
    Hello, Please don't just create an empty file (0 bytes). The file must be greater than 0. So something like this: # echo "" > /home/CPUSERNAME/.htaccess
    should fix the issue. if your .htaccess file is NOT 0 bytes, then don't run the command above. It will erase everything within the file.
    0
  • JaredR.
    This problem is fixed in cPanel 11.42.1.15. To fix this problem, all you need to do is update cPanel. You can update at any time by running this command: # /usr/local/cpanel/scripts/upcp --force
    You can see that 95621 is one of the cases that was fixed in 11.42.1.15, by viewing our changelog:
    0

Please sign in to leave a comment.