WordPress.org

Ready to get started?Download WordPress

Forums

BulletProof Security
[resolved] I can`t Back up my currently active .htaccess files (12 posts)

  1. alby111
    Member
    Posted 1 year ago #

    I can`t Back up my currently active .htaccess files from my root and /wp-admin folders, using the backup and restore button from Bullet proof, it gives me a warning. The /wp-content/bps-backup folder permissions is set to 755.
    I dont´t have an .htaccess in the wp-admin folder, only in the root with 755 permission

    Warning: copy(/home/mysite.com/public_html/wp-content/bps-backup/root.htaccess) [function.copy]: failed to open stream: Permission denied in /home/mysite.com/public_html/wp-content/plugins/bulletproof-security/admin/options.php on line 249
    Failed to Backup Your Root .htaccess File! File copy function failed. Check the folder permissions for the /wp-content/bps-backup folder. Folder permissions should be set to 755.

    http://wordpress.org/extend/plugins/bulletproof-security/

  2. AITpro
    Member
    Plugin Author

    Posted 1 year ago #

    Most likely your website/Server is using DSO instead of CGI.

    Go to the BPS System Info page and post this info in your reply.

    Server Type:
    Operating System:
    Server API:

  3. alby111
    Member
    Posted 1 year ago #

    Server Type: Apache/2.0.64 (Unix) mod_ssl/2.0.64 OpenSSL/0.9.8e-fips-rhel5 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 PHP/5.3.8

    Operating System: Linux

    Server API: apache2handler - Your Host Server is using DSO or another SAPI type.

  4. AITpro
    Member
    Plugin Author

    Posted 1 year ago #

    Yep DSO. You cannot perform any copy functions from your WP Dashboard on a DSO configured Server.

    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.

  5. alby111
    Member
    Posted 1 year ago #

    Hey !!! that was a so fast support that I have to say congratulations!
    I wonder if the premiun also have the same problem with the DSO?

  6. AITpro
    Member
    Plugin Author

    Posted 1 year ago #

    We are working on coding to compensate for DSO configured Servers in both BPS and BPS Pro. DSO is problematic for BPS, BPS Pro, All other WordPress plugins that need write and copy abilities and WordPress itself. We are working on a new concept that should be able to overcome all the problems that come with DSO Servers. It has had very low priority since 99% of all websites are using CGI, but we will eventually create a solution for the other 1% of folks who are using DSO.

  7. alby111
    Member
    Posted 1 year ago #

    Thanks a lot for your new real quick response I use a VPS I will ask my hosting provider for the possibility of using CGI also , thanks again, real cool people you are =)

  8. alby111
    Member
    Posted 1 year ago #

    One more if I may, you said 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. I wonder after I download them where this files should be uploaded :

    secure.htaccess -> ?
    wpadmin-secure.htaccess -> ?
    deny-all.htaccess -> ?

  9. alby111
    Member
    Posted 1 year ago #

    I placed
    secure.htaccess -> In root Folder
    wpadmin-secure.htaccess -> In wp-admin folder
    deny-all.htaccess -> in /wp-content/bps-backup/
    deny-all.htaccess -> /wp-content/bps-backup/master-backups

    I change the names of all of them to .htaccess but I still get:

    Deny All protection NOT activated for BPS Master /htaccess folder

    I made also a htaccess /wp-content/bps-backup/master-backups/htaccess and placed the deny-all.htaccess and renamed .htaccess but I get the same error

  10. AITpro
    Member
    Plugin Author

    Posted 1 year ago #

    All the file paths/file locations are correct except for the BPS Master /htaccess folder.

    the BPS Master /htaccess folder path is - /wp-content/plugins/bulletproof-security/admin/htaccess/. The path should be displayed to you on the Security Modes page for both CGI and DSO configured Servers. If the path is not being displayed to you then please let me know. Thanks.

  11. alby111
    Member
    Posted 1 year ago #

    thanks for you quick response,
    I placed the deny-all.htaccess and renamed .htaccess in /wp-content/plugins/bulletproof-security/admin/htaccess/
    and the error is gone .

    I do have the indication displayed in the Security Modes page, but I got confused with this line :
    "Copies the file deny-all.htaccess to the BPS Master htaccess folder and renames the file name to just .htaccess"

    Now everything seems to be OK but I steel have :

    Your Current Root .htaccess file is NOT backed up yet
    Your Current wp-admin .htaccess file is NOT backed up yet
    Your BPS Master default.htaccess file is NOT backed up yet
    Your BPS Master secure.htaccess file is NOT backed up yet
    Your BPS Master wpadmin-secure.htaccess file is NOT backed up yet
    Your BPS Master maintenance.htaccess file is NOT backed up yet
    Your BPS Master bp-maintenance.php file is NOT backed up yet
    Your BPS Master bps-maintenance-values.php file is NOT backed up yet

    Is this because I used the manual way for DSO ?
    Can I add this files in some folder so I have the files backed up in the place they are suppost to be ?

  12. AITpro
    Member
    Plugin Author

    Posted 1 year ago #

    Since Backup and Restore is not currently automated for DSO then you can either just ignore these file checks or if you want to make the warning messages go away then just create dupe files.

    create a text file and name it root.htaccess and upload it to /bps-backup/root.htaccess and then copy it and rename it to wpadmin.htaccess. The general idea is that since Backup and Restore does not work on DSO Servers then you are just duping the file checks.

    /bps-backup/root.htaccess
    /bps-backup/wpadmin.htaccess

    and do the same thing for these dupe files

    /bps-backup/master-backups/backup_default.htaccess
    /bps-backup/master-backups/backup_secure.htaccess
    /bps-backup/master-backups/backup_wpadmin-secure.htaccess
    /bps-backup/master-backups/backup_maintenance.htaccess
    /bps-backup/master-backups/backup_bp-maintenance.php
    /bps-backup/master-backups/backup_bps-maintenance-values.php

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic