WordPress.org

Ready to get started?Download WordPress

Forums

BulletProof Security
[resolved] Issues after moving to a new host (16 posts)

  1. jawes
    Member
    Posted 2 years ago #

    Hi,

    I used BPC in all of my wordpress websites without any technical issues.
    Now I moved to a new host and I get all sorts of error messages.
    Even after removing and reinstalling the plugin.

    Here are some of the messages:

    After trying to create de default htaccess
    The file /home/.../domains/.../public_html/wp-content/plugins/bulletproof-security/admin/htaccess/default.htaccess is not writable or does not exist.
    Check that the file is named default.htaccess and that the file exists in the /bulletproof-security/admin/htaccess master folder. If this is not the problem click here for more help info.

    After resolving the issue above and trying to activate the plugin:
    Warning: chmod() [function.chmod]: Operation not permitted in /home/.../domains/.../public_html/wp-content/plugins/bulletproof-security/admin/options.php on line 109

    Warning: copy(/home/.../domains/.../public_html/.../.htaccess) [function.copy]: failed to open stream: Permission denied in /home/.../domains/.../public_html/wp-content/plugins/bulletproof-security/admin/options.php on line 110

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

  2. AITpro
    Member
    Plugin Author

    Posted 2 years ago #

    It appears that several php functions that are needed by BPS are being blocked either by by your Web Host or there is a folder permissions problem.

    This is Apache Linux Hosting correct and not Windows IIS hosting? Is your SAPI DSO by any chance on this new web host? If so, you should switch to CGI if your new host allows this. Contact them to switch you over to CGI. I don't think PHP4 would cause these errors, but check to ensure that you are using PHP5. And i don't think not setting a custom permalink structure would cause this, but check your permalinks. Also having 401 directory permissions might cause this type of problem, but i don't think so.

    The next things to check are your folder permissions. If your folder permissions are set too restrictive then it would block these php functions. Do you have any plugins installed that would block other plugins from performing these functions? If you do not find any of these issues to be the problem then check with your new Web Host and ask them why php functions such as copy and chmod would be blocked in your hosting account.

    Let me know the result. Thank you.

  3. jawes
    Member
    Posted 2 years ago #

    Hi,

    Thanks for giving your feedback on these error messages.
    I have a VPS with Apache Linux. Because of the technical dept of this issue I informed the host about your feedback.
    I will check the plugins for blocking issues or so. I have chmod folders to 755 and files to 644. Only the cache/temp got 777 chmod.

    I will let you know about the results.

  4. AITpro
    Member
    Plugin Author

    Posted 2 years ago #

    The BPS System Info page checks and displays info about what Server API and PHP version is in use on your website. Is this a HostGator VPS Hosting account by any chance? I recently noticed that HG is adding new VPS Hosting accounts to Apache Servers that are running PHP as an Apache Module / DSO.

  5. jawes
    Member
    Posted 2 years ago #

    Hi,

    I just got feedback from my host and they let me know that the server PHP and API is:

    5.2.17 CLI

    Can you confirm that this is the issue why the plugin is not working properly?

    Thanks!

  6. AITpro
    Member
    Plugin Author

    Posted 2 years ago #

    Yes it is quite likely that however they have CLI (Command Line Interface) configured on their Servers that this could be the issue. So what you need to ask them next is would CLI directly interfere with copy and chmod from within BPS. BPS is actually a GUI (Graphical User Interface) so depending on their Server Config then yeah at this point this is most likely the issue. If it turns out that your Host's CLI config will not allow these php functions to be processed from a GUI then you will not be able to use some of the automated features in BPS and will have to do those things manually. Old school copy and paste / upload and download. ;)

  7. jawes
    Member
    Posted 2 years ago #

    Hi,

    Well this is very helpful!
    I informed my host and have to wait if they confirm this.
    If so I probably will go for a switch to CGI, then changing all my websites with copy and paste.

  8. AITpro
    Member
    Plugin Author

    Posted 2 years ago #

    You should not have to change anything about your existing websites. This would be a Server change / move normally. Typically Hosts have several Servers that are pre-configured with different environments, settings, etc. And what Hosts normally do is just move your Hosting Account / sites to another Server that has what you want.

  9. jawes
    Member
    Posted 2 years ago #

    Hi,

    I only meant the manual way copy, past and upload as you mentioned for the plugin to work ;-)

    Thanks you are a pro!

  10. AITpro
    Member
    Plugin Author

    Posted 2 years ago #

    Oh yeah whoops. Went too deep on that one. ;)

    Yeah and in a CLI environment you could probably change file and folder permissions temporarily in order to use the automated things in BPS, but this is kind of the same thing and actually in the end it might be more time consuming to use that approach / method. For example changing file and folder permissions temporarily to 777 / 666 respectively in order to allow writing, copying, chmod, etc. I think the simpler road is just to put the files where they should go manually. ;)

  11. jawes
    Member
    Posted 2 years ago #

    I am really looking forward on reactivating your great plugin and all the upgrades!!!

  12. AITpro
    Member
    Plugin Author

    Posted 2 years ago #

    Cool! Thanks. :)

    And it looks like there is a growing trend in bringing back / using CLI Server configs so I will research this some more and see why this is and if this trend is increasing significantly then I'll see if i can create some new coding that will make BPS automated in a CLI environment. Maybe something like temporarily being able to change folder permissions if CLI / DSO is detected and then change them back after whatever automated BPS function is completed. This will depend on whether or not a folder permission change would even work from a GUI in this environment of course. ;) Thanks.

  13. jawes
    Member
    Posted 2 years ago #

    Well that would surely increase the compatibility of your plugin!

    Success with your research!

  14. jawes
    Member
    Posted 2 years ago #

    Hi,

    I have an update about the issue. My host discovered that the Mod_ruid was missing. Now it is working again without error messages!

  15. AITpro
    Member
    Plugin Author

    Posted 2 years ago #

    Wow this is a new issue that i have never heard of before and was not aware of. I will look into this module some more to see all that it does. Makes sense from this tidbit of info i found on the Net >>> "...uid and gid of requested filename(script)/directory this is good if you use mod_vhost_alias for virtual hosting...". Thank you for this info.

  16. jawes
    Member
    Posted 2 years ago #

    You are welcome!
    Good to provide some new data for your plugin.
    All my sites are running again with Bulletproof Security ... what a relief!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic