Title: [Plugin: BulletProof Security] Cannot write to file
Last modified: August 20, 2016

---

# [Plugin: BulletProof Security] Cannot write to file

 *  Resolved [icing](https://wordpress.org/support/users/icing/)
 * (@icing)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/plugin-bulletproof-security-cannot-write-to-file-1/)
 * Getting the following notice on Edit/Upload/Download page.
 * > Cannot write to the secure.htaccess file. Minimum file permission required 
   > is 600.
   >  Cannot write to the default.htaccess file. Minimum file permission
   > required is 600. Cannot write to the maintenance.htaccess file. Minimum file
   > permission required is 600. Cannot write to the wpadmin-secure.htaccess file.
   > Minimum file permission required is 600. Cannot write to file: /home/ankhuran/
   > public_html/wp-content/plugins/bulletproof-security/admin/htaccess/secure.htaccess
   > Cannot write to file: /home/ankhuran/public_html/wp-content/plugins/bulletproof-
   > security/admin/htaccess/default.htaccess Cannot write to file: /home/ankhuran/
   > public_html/wp-content/plugins/bulletproof-security/admin/htaccess/maintenance.
   > htaccess Cannot write to file: /home/ankhuran/public_html/wp-content/plugins/
   > bulletproof-security/admin/htaccess/wpadmin-secure.htaccess Your root .htaccess
   > file is Locked with Read Only Permissions. Use the Lock and Unlock buttons 
   > below to Lock or Unlock your root .htaccess file for editing. Cannot write 
   > to file: /home/ankhuran/public_html/wp-admin/.htaccess
 * The lock/unlock button has disappeared. On searching the net, I found that it
   is something with Apache/CGI/PHP. And the problem is from hosting provider’s 
   end and not with BPS. What exactly do I need to ask of my hosting provider?
 * [http://wordpress.org/extend/plugins/bulletproof-security/](http://wordpress.org/extend/plugins/bulletproof-security/)

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [AITpro](https://wordpress.org/support/users/aitpro/)
 * (@aitpro)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/plugin-bulletproof-security-cannot-write-to-file-1/#post-3048231)
 * If you are not seeing the lock and unlock buttons then your Server API type is
   DSO and not CGI. And that would also explain the copy and write errors.
 * If your Server API type is DSO then you will need to do some manual file and 
   folder permission changes. You can check your Server API on the System Info tab
   in BPS and BPS Pro. If you see that your Server API is DSO then you will need
   to perform these installation steps for DSO. We are currently working on adding
   additional coding in BPS and BPS Pro for DSO configured Servers and will eventually
   release a BulletProof Security version that has full automation for DSO configured
   Servers.
 * AutoMagic is not working / not creating Master .htaccess files or you are unable
   to use the built in .htaccess file editor
 * Most likely the cause of this is your Server API is DSO and not CGI. You can 
   check your Server API on the System Info tab page. If your Server API is DSO 
   then some of the automated features in BPS will not work correctly because of
   the way ownerships permissions are handled on DSO configured Servers. You will
   unfortunately need to manually perform these steps below using FTP. At some point
   a future version of BPS will have coding that will compensate for this and the
   automation will also work for DSO configured Servers.
 * To Create the secure.htaccess file with AutoMagic – Change permissions of the
   secure.htaccess file to 777 – /wp-content/plugins/bulletproof-security/admin/
   htaccess/secure.htaccess.
    To Activate BulletProof Mode for your Root folder –
   Change permissions of your Root htaccess file to 777 – /your-website-root-folder/.
   htaccess. To Activate BulletProof Mode for you wp-admin folder – Change permissions
   of the wp-admin htaccess file to 777 – /your-website-root-folder/wp-admin/.htaccess.
   Activate Deny All htaccess Folder Protection For The BPS Master htaccess Folder–
   Change permissions of /wp-content/plugins/bulletproof-security/admin/htaccess
   folder to 777. Activate Deny All htaccess Folder Protection For The BPS Backup
   Folder – Change permissions of the /wp-content/bps-backup/htaccess file to 777.
   Backup Your Currently Active .htaccess Files – Change /bps-backup folder permissions
   to 777 – /wp-content/bps-backup. Backup Your BPS Master .htaccess Files – Change/
   master-backups folder permissions to 777 – /wp-content/bps-backup/master-backups.
 * Once you have completed these installation steps above then change the permissions
   of both htaccess files to 644 and change all of your folder permissions back 
   to 755 or whatever you previously had for those folder permissions. Another option
   is just to manually download the secure.htaccess file, wpadmin-secure.htaccess
   file and the deny-all.htaccess file and then just manually use FTP to upload 
   the files to where they should be.
 *  Thread Starter [icing](https://wordpress.org/support/users/icing/)
 * (@icing)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/plugin-bulletproof-security-cannot-write-to-file-1/#post-3048266)
 * Asked hosting provider to change Server API Type to CGI and that was enough. 
   Thanks a lot for your reply though, great plugin and awesome support.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘[Plugin: BulletProof Security] Cannot write to file’ is closed to new
replies.

 * ![](https://ps.w.org/bulletproof-security/assets/icon-128x128.png?rev=1731938)
 * [BulletProof Security](https://wordpress.org/plugins/bulletproof-security/)
 * [Support Threads](https://wordpress.org/support/plugin/bulletproof-security/)
 * [Active Topics](https://wordpress.org/support/plugin/bulletproof-security/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/bulletproof-security/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/bulletproof-security/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [icing](https://wordpress.org/support/users/icing/)
 * Last activity: [13 years, 8 months ago](https://wordpress.org/support/topic/plugin-bulletproof-security-cannot-write-to-file-1/#post-3048266)
 * Status: resolved