Support » Plugin: BulletProof Security » Problem with 500 internal server error

  • Resolved pratikrawal

    (@pratikrawal)


    I was trying to increase the upload file size in .htaccess file.

    I checked here on this forum, someone said, you first restore your .htaccess files from “Backup & Restore” option then go to security modes select the “Default Mode” and activate it and “Delete wp-admin” htaccess file.

    As soon as I did that, I got 500 internal server error. I had two site in this public_html folder, those sites also went down. Even I was unable to login into WordPress. I called go daddy and they did something so website homepage was running but inside links were not working at all.

    After that I was able to login into WordPress site and I restore the .htaccess file and everything was up and running.

    But I need to know why it happened.

    When we delete wp-admin htaccess file , I am unable to go back and restore it. so how I can make my WordPress site up and running if same thing happens in future.

    Thanks in advance for your help.

    https://wordpress.org/plugins/bulletproof-security/

Viewing 15 replies - 1 through 15 (of 35 total)
  • Plugin Author AITpro

    (@aitpro)

    I was trying to increase the upload file size in .htaccess file.

    If you have Shared Hosting on Go Daddy you would increase your file upload size limitation in a php5.ini file (php.ini files for PHP version 5 and higher versions are named php5.ini on Go Daddy). If you try to add php_flag and php_value htaccess directives in an htaccess file on Go Daddy your website will crash with a 500 Internal Server error.

    Very few Host Servers allow using php_flag and php_value directives in an htaccess file. That is most likely what crashed your website and NOT anything else in the sequence of using Backup & Restore, “Default Mode” or using Delete wp-admin” htaccess file.

    You can delete your wp-admin htaccess file and/or your root htaccess file on Go Daddy and can still login to your website. We have Go Daddy Hosting. And actually that would be the correct step to do if you have added invalid/incorrect code in your root .htaccess file and cannot login to your website: https://wordpress.org/support/topic/setup-steps-removal-steps-requirements-and-compatibility?replies=1

    Not sure where you got that information about how Backup & Restore would be used and the other procedural things you stated, but that information is not correct. Click on the BPS Read Me help buttons in BPS to get the correct usage help information.

    Thread Starter pratikrawal

    (@pratikrawal)

    Thanks for prompt reply.

    I have installed moodle app, which is app for putting online video and some other stuff. When I am trying to add my existing video, it says,
    “the uploaded file exceeds the upload_max_filesize directive in php.ini.”

    my file is 35MB. I was searching online for the solution, I found I have to write something like,

    ########
    php_value upload_max_filesize 50M
    php_value post_max_size 50M
    php_value max_execution_time 500
    php_value max_input_time 500
    #########

    in .htaccess file.

    now I am confused since I installed BPS, what should I do to write this?

    I can see “htaccess file editor” tab under BPS plugin, and I can see secure.htaccess and default.htaccess tab and code respectively.

    Should insert above code into both the tab?

    I would like to buy this BPS pro version, but I need to know do you guys support via telephone if I do that.?

    Thanks.
    Pratik.

    Plugin Author AITpro

    (@aitpro)

    You cannot use a php_value directive (or php_flag) in an htaccess file on Go Daddy and most other Host Servers. You would instead create a php5.ini file, add the directives you want in that php5.ini file and upload it to your Hosting account root folder.

    https://support.godaddy.com/help/article/1475/what-is-the-php-upload-limit-on-linux-hosting-accounts

    1. Create a new plain text file using Notepad or Notepad++ (do NOT use Word or any other Word processing application)
    2. Copy these directives below into your new text file (change the size to whatever you want):

    file_uploads = On
    post_max_size = 50M
    upload_max_filesize = 50M

    3. Save the file with this file name: php5.txt.
    4. Upload the php5.txt file to your website hosting account root folder: /xxxx/html/php5.txt and then rename the php5.txt file to php5.ini.

    Note: the /html/ folder name is not visible when you are in your hosting account root folder because you are already in the /html/ folder.

    We try to avoid phone support as much as possible and do everything in the BulletProof Security Forum or email. From experience, it takes 10 times as long to do something via a phone conversation vs posting Q&A in the BulletProof Security Forum: http://forum.ait-pro.com/ Typically the answer to most questions will exist in the BulletProof Security forum already and you would just search the Forum to find that solution.

    Plugin Author AITpro

    (@aitpro)

    Is this issue/problem resolved? If so, please resolve this thread. If not, please post any additional information.

    Thread Start Date: 10-8-2014 – 10-9-2014
    Current Date: 10-10-2014

    I have the same problem.

    Internal Server Error

    The server encountered an internal error or misconfiguration and was unable to complete your request.

    Please contact the server administrator at webmaster@website.net to inform them of the time this error occurred, and the actions you performed just before this error.

    More information about this error may be available in the server error log.

    Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request

    I’m using Stablehost hosting and admins told me that they can’t do anything because problem is somewhere else.

    Plugin Author AITpro

    (@aitpro)

    A 500 Internal Server Error could be caused by lots of different things.

    Do the “Unable to login into your website” general troubleshooting steps here: http://forum.ait-pro.com/forums/topic/read-me-first-free/ to get your website back up.

    After your website is back up then explain in exact specific details what caused the problem. What were you doing at the time that that problem occurred? Be very specific with exact specific details.

    I uninstalled BPS step by step. After that i deleted .htaccess files via FTP. The i downloaded and activated BPS again via WordPress admin panel. I created secure.htaccess file and then when i created ROOT .htaccess file…500 Internal Server Error appeared.

    I removed ROOT .htaccess file via FTP and website working fine.

    p.s. maybe you should contact Stablehost and ask them about server configuration or something like that.. i’m not an IT expert. Maybe in future build versions you could include Stablehost support.

    I like this plugin very much and i really appreciate your hard work – 5 stars! 🙂

    Plugin Author AITpro

    (@aitpro)

    Some Web Hosts do not allow you to use the “Options” Directive in .htaccess files. If you see a 500 Internal Server Error then comment out the “Options” Directive by adding a pound sign (#) in front of Options -Indexes in your Root .htaccess file as shown below.

    http://forum.ait-pro.com/forums/topic/read-me-first-free/#500-error-custom-code

    If this is not the cause of the problem above, then continue reading all the possible problems starting from the top of that Forum Topic and see if one of the other known issues is causing the problem.

    Thread Starter pratikrawal

    (@pratikrawal)

    Guys,

    I talk to go daddy..they include one file I guess user.ini and It worked for me..

    Thanks
    Pratik.

    Plugin Author AITpro

    (@aitpro)

    I believe Go Daddy only uses php.ini (PHP4.x) and php5.ini (PHP5.x) files, but glad to hear everything is now working. Please resolve this thread. Thanks.

    Could you please suggest me which options do i need enable on my webserver?

    I talked with Stablehost senior admin:

    If you are trying to modify a setting that is not on that page, please let us know which setting and we can look into adding it to the PHP configuration page.

    Thank you!
    Mau T
    Senior Administrator

    Thread Starter pratikrawal

    (@pratikrawal)

    Hi Anoraak,

    The following solution worked for me!

    I added user.ini file into my wordpress home directory!

    Example http://www.xxxx.com/user.ini

    I wrote following code!

    post_max_size = 40M
    upload_max_filesize = 40M
    memory_limit = 128M
    max_input_time = 600
    max_execution_time = 600

    and it worked for me!

    Thanks.

    Plugin Author AITpro

    (@aitpro)

    @pratikrawal – since your issue is resolved and this is “your” thread that you started then I have resolved this thread since everything is ok now.

    @anoraak – even though this thread is not “your” thread since it was not started by you and you have a completely unrelated issue/problem (I think?), we can still assist you even though pratikrawal’s thread has been resolved. I do not understand your question. Are you trying to create a php.ini file? Are you trying to change settings in a php.ini file? Please be very specific with what you are trying to do and asking about.

    Plugin Author AITpro

    (@aitpro)

    https://support.godaddy.com/help/article/8913/what-filename-does-my-php-initialization-file-need-to-use

    Looks like Go Daddy does use .user.ini files depending on which web hosting account type you have. I did not know that. 😉

    http://php.net/manual/en/configuration.file.per-user.php
    .user.ini files were supposed to be the new PHP configuration file to replace php.ini files, but there were/are a lot of complications with .user.ini files so most hosts opt to still use a php.ini file vs a .user.ini file.

    This is my php.ini file:

    expose_php = Off
    allow_url_fopen = Off
    allow_url_include = Off
    safe_mode = Off
    register_globals = Off
    memory_limit = 256M
    magic_quotes_gpc = Off
    post_max_size= 40M
    upload_max_filesize = 10M
    max_execution_time=30
    mysql.allow_persistent= Off
    output_handler = Off
    zlib.output_compression = On
    zlib.output_handler = ob_gzhandler
    file_uploads = On

    Bulletproof plugin not working because something causing error on my webserver. Admins says that problem/error is-> bullet proof .htaccess file. I have Apache webserver and PHP 5.5 version.

Viewing 15 replies - 1 through 15 (of 35 total)
  • The topic ‘Problem with 500 internal server error’ is closed to new replies.