• markemark

    (@markemark)


    I keep seeing error

    Unable to write to your .htaccess or nginx.conf file. If the problem persists contact support.

    the log file is simply the header information so no information on what is causing it.

    I am on a Amazon hosted system, so this may be the cause, it would be useful if the output would tell me what changes are required to the .htaccess then I can manually update as required ?

    https://wordpress.org/plugins/better-wp-security/

Viewing 15 replies - 31 through 45 (of 61 total)
  • lgustaw

    (@lgustaw)

    Wombat solution in my case solved the problem.

    Blublkgal

    (@blublkgal)

    my goodness! what a mess! I’ve just updated today, a few hours ago – the most frustrating few hours about spending almost 24 hours reconfiguring a site that crashed!

    on top of all the same problems you’ve all been having, the damn plugin is constantly making me do the same settings over!

    tried Wombats solution but it’s not working because it keeps undoing all my settings

    rolling back to ver 3.6

    Ingrid Moyle

    (@heartharmony)

    Hi rwnfrnnd – yes I did all the usual configurations including grant access to write to .htaccess. I am either rolling back yet again to version 3.6 that continues to work correctly or working through how to fully uninstall (not a simple one-click uninstall process unfortunately) and putting in other solutions. I was a rabid supporter of this plug-in (and happily donated for its support)- not any more.

    Ingrid Moyle

    (@heartharmony)

    Finally gave up and uninstalled it from across my sites and all my client’s sites (after manually having to delete code from htaccess files that were not removed after the uninstall).

    I put in Wordfence. Smooth install, no buggy code, and the paid option already has working 2 factor identification & geoblocking. Thanks for whoever in these threads put me onto it – a much better option.

    Given the increased vulnerability across the web at the moment, the risk of buggy code was too great.

    Wombat

    (@lewismedia)

    I ran into this again this morning on another site… the solution to the “It looks like another process might already be working on the file” error is to check the box at the bottom of the first section: “Disable File Locking”.

    I have this issue as well.
    I worked through all the solutions here and the only one that worked was disabling file locking.
    Its as if the plugin is locking itself out of .htaccess.
    I disabled file locking, made my changes to the settings and saved them.
    The htaccess file was indeed written to so I enabled file locking again since I believe it should be used to avoid the htaccess corruption issues that older version had if the site came under a big brute force attack causing multiple writes to the file.

    phile2

    (@phile2)

    Same “Unable to release a lock on your .htaccess or nginx.conf file. If the problem persists contact support.” Error after upgrade to 4.0.12 (from 3.6.6) on WP 3.8.1

    I forgot to disable iThemes Security on this particular site before the plugin upgrade. It was the 3rd site I was upgrading and I did not get this error on the other two (which did have the plugin disabled before the upgrade)
    I too only noticed the error when the DB backup email had no attachment in the scheduled backup. Again working fine on the other sites.

    I decided to apply the new update 4.0.21 a few days after the release and monitoring this site.
    Thought I would disable the plugin before the update this time and was promptly locked out of my site.
    Attempts to access the site showed forcing to https: (I had not made any changes to ssl, previously used ssl or system tweaks)
    Checked wp-config.php and found the following had been added apparently when I attempted to disable iTS:

    define( ‘FORCE_SSL_LOGIN’, true );
    define( ‘FORCE_SSL_ADMIN’, true );
    define( ‘DISALLOW_FILE_EDIT’, true );

    Set all 3 to false and was able to get back in to wp-admin
    Deleted iTS plugin from the admin panel
    Installed the new iTS 4.0.21 and all appears fine so far… can update settings, backup working again, etc.

    natostanco

    (@natostanco)

    including the new nginx rules generated by the plugin into nginx does not work for me. Nginx error:
    invalid hostname or wildcard “*”

    Part of the file responsible is :

    location /wp-comments-post.php {
    
                    valid_referers jetpack.wordpress.com/jetpack-comment/ *;
    
                    set $rule_0 0;
    
                    if ($request_method ~ "POST"){ set $rule_0 1$rule_0; }
    
                    if ($invalid_referer) { set $rule_0 2$rule_0; }
    
                    if ($http_user_agent ~ "^$"){ set $rule_0 3$rule_0; }
    
                    if ($rule_0 = "3210") { return 403; }
    
                }
    hai3009

    (@hai3009)

    Same error here.

    WordPress was unable to save the your options to .htaccess or nginx.conf file.

    I have the newest version 4.0.21 and WordPress 3.8.2
    hmmm…
    What to do, i’m confused.

    I ran into this again this morning on another site… the solution to the “It looks like another process might already be working on the file” error is to check the box at the bottom of the first section: “Disable File Locking”.

    Wombat comes through again: The “Disable File Locking” solution above worked like a charm!!

    Shinobi128

    (@shinobi128)

    I am here because I received the error as well, but I seemed to have fixed it from my end. Hopefully it will work for you too.

    When I’m not maintaining my sites, I enable “Remove File Writing Permissions.” Part of my conflict is that I also use W3 Total Cache, but here is what I did.

    1. Deactivate iThemes Security.
    2. Empty all the page caches from within W3 Total Cache.
    3. Reactivate iThemes Security.
    4. Test by enabling/disabling “Remove File Writing Permissions.”

    Good luck.

    Dee S

    (@ezinsider)

    This is really annoying guys – appreciate that iThemes are trying to improve their product but these issues should have been tested before the rollout given that so many people are having them. We are configuring a couple of client sites each with the “cannot write to .htaccess etc.” issue and have rolled back to V 4.08 of the plugin in the meantime since it’s working as expected.

    Will hold off on upgrading any of our sites until we hear any positive feedback on this thread.

    digibobdeluxe

    (@digibobdeluxe)

    So annoying.

    It does not write my IP to the whitelist and locks me out all the time. The amount of time I have wasted is ridiculous.

    Tim Reeves

    (@tim-reeves)

    Damn. I’ve nursed about 5 sites into working with iTS, by manually editing .htaccess and/or wp-config.php, after I edit once it seems to work from then on.
    But now I just created a NEW subdomain (Ubuntu 12.04 Plesk 11.5, secured with a good cert) and loaded WP 3.9 (German) and iTS 4.0.23 (no other plugins or theme), and as very first action tried to move my wp-content: Unable to write to your .htaccess or nginx.conf file.
    This is really frustrating, especially since I’m using fastCGI and WP runs with the uid/gid of the Plesk Workspace, same as FTP. In other words, PHP certainly CAN write those files, but iTS won’t, even after I selected “Disable File Locking”.
    I’ve not tried the Wombat solution since I just don’t see that it should be neccessary on a completely virgin installation.
    Instead I deactivated iTS and installed WordFence.
    WordFence (I did’nt know it before) concentrates on keeping attackers out by blocking them, and repairing compromised installations. It does NOT do a lot of the things which iTS does to prevent them from ever getting in, so I would really prefer to use iTS – IF it would work!
    Finally, my sympathies to the developer(s), I’m sure you’re doing your very best and I wish you quick success with finding and repairing the root cause of these problems.

    Tim Reeves

    (@tim-reeves)

    Just a hint to the developer: When iTS should write .htaccess or wp-config.php, the files mtime gets updated to now, but the content is not changed.

    Other than that, I just did a fall-back to BWPS 3.6.6 – works like a dream, I’ll stick with that a while.

Viewing 15 replies - 31 through 45 (of 61 total)
  • The topic ‘Unable to write to your .htaccess or nginx.conf file.’ is closed to new replies.