• Resolved asgllc.cb

    (@asgllccb)


    I installed this on a site I am testing on a wamp server and after activation and running the setup wizard (all indicators green by the way) I am getting a 500 internal server error response on everything else in the back end as well as for the front end in general. I have the setup wizard screen, but even if I reload that page, it gives me the error. So in essence, the sites now dead.

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

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

    (@aitpro)

    Delete the root and wp-admin .htaccess files first to get the site up.

    Source: http://stackoverflow.com/questions/19718919/500-internal-error-with-rewriteengine-on-htaccess-on-localhost-with-wamp
    Then check your httpd.conf file and make sure that the mod_rewrite module is being loaded in your http.conf file. You should see this module loading code: LoadModule rewrite_module modules/mod_rewrite.so If it is commented out then uncomment that line of code. If you do not see that line of code then add it. You will need to reboot your Apache server after making any changes to your httpd.conf file in order to load the new changes.

    Plugin Author AITpro

    (@aitpro)

    Also something else that was not mentioned in the StackOverflow link could be the problem. If the “Options” directive is not allowed or being restricted then you will see 500 errors. This code below is from a XAMPP httpd.conf file, but the general principle is the same. AllowOverride should be set/configured to: AllowOverride All and Options should be set/configured to: Options Indexes FollowSymLinks Includes ExecCGI

    <Directory "C:/xampp/htdocs">
        #
        # Possible values for the Options directive are "None", "All",
        # or any combination of:
        #   Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
        #
        # Note that "MultiViews" must be named *explicitly* --- "Options All"
        # doesn't give it to you.
        #
        # The Options directive is both complicated and important.  Please see
        # http://httpd.apache.org/docs/2.4/mod/core.html#options
        # for more information.
        #
        Options Indexes FollowSymLinks Includes ExecCGI
    
        #
        # AllowOverride controls what directives may be placed in .htaccess files.
        # It can be "All", "None", or any combination of the keywords:
        #   AllowOverride FileInfo AuthConfig Limit
        #
        AllowOverride All
    
        #
        # Controls who can get stuff from this server.
        #
        Require all granted
    </Directory>
    Plugin Author AITpro

    (@aitpro)

    If you have setup Virtual Hosts/vhost (this is typically an advanced setup thing that you have to do yourself and is not enabled/setup by default). This code is from a XAMPP vhost conf file, but the general principle is the same. The Options and AllowOverride directives should be set/configured to: Options All and AllowOverride All

    ## Demo site
    <VirtualHost demo.local:80>
        ServerAdmin postmaster@localhost
        DocumentRoot "C:/xampp/htdocs27/demo"
        ServerName demo.local
        ServerAlias demo.local
        <Directory "C:/xampp/htdocs27/demo">
       	#Options Indexes FollowSymLinks Includes ExecCGI
    	Options All
        	AllowOverride All
        	Require all granted
            #Order allow,deny
            #Allow from all
    </Directory>
    </VirtualHost>
    Thread Starter asgllc.cb

    (@asgllccb)

    Thank you,
    I followed all the instructions up to the LoadModule instructions and the site was working right again….

    However, after the LoadModule in httpd.conf instructions, I removed the comment out and restarted Apache…but now Apache is not restarting. I also turned off all of wamp and tried to restart and everything is restarting except for Apache. I also went back in and re-added the comment and it still wont start.
    Bummer huh?
    :/

    Plugin Author AITpro

    (@aitpro)

    The process can get hung and you need to manually kill it in Task Manager. For XAMPP the process is httpd.exe. Look for a similar naming convention that starts with htt…

    Plugin Author AITpro

    (@aitpro)

    Guess I should explain the Windows Task Manager just in case. Hit your control + alt + delete keys and select Start Task Manager. Then go to the Processes tab, right mouse click on the htt… process and click End Process.

    Thread Starter asgllc.cb

    (@asgllccb)

    There’s no processes listed in there like that.

    Plugin Author AITpro

    (@aitpro)

    The only other thing I can think of is either you entered something invalid (not a # sign and used something else that is not valid to comment out the code), a blank space or some other invalid thing in your httpd.conf file. Check your Apache server log file for errors to see if it tells you what is wrong/where the mistake is. Other than that I can’t think of anything else besides rebooting your computer.

    Plugin Author AITpro

    (@aitpro)

    Actually I did think of one other thing to check. If you have a security application installed on your computer that has firewall and/or port protection then make sure you are allowing port 80 and 443 to either not be blocked for Apache or to prompt you to allow Apache on port 80 and 443.

    Thread Starter asgllc.cb

    (@asgllccb)

    Ok…I got Apache working again by replacing the httpd.conf file; However, wordpress is not coming up anymore.

    Getting this error: Webpage not available ERR_CONNECTION_REFUSED

    Thread Starter asgllc.cb

    (@asgllccb)

    Not using Virtual Hosts/vhost

    Thread Starter asgllc.cb

    (@asgllccb)

    So apache is running but I cant access the database – phpmyadmin either

    Plugin Author AITpro

    (@aitpro)

    You didn’t edit your httpd.conf file in Word or WordPad or another application like that did you? Using Word or WordPad will corrupt the httpd.conf file with hidden formatting characters. The httpd.conf file and htaccess files should only be edited with Notepad or Notepad++ (ASCII editors) or they will become corrupted and unusable.

    Check that you have started the mysql service. Make sure you are using Port 80 and not some other Port. Check that you are not blocking Ports. Check that your wp-config.php file has the correct database connection information.

    Thread Starter asgllc.cb

    (@asgllccb)

    Did it in notepad

    mysql is running

    Port 80 tests as not being used…this is with wamp showing green

    wp-config.php shows localhost as the database connection

    Plugin Author AITpro

    (@aitpro)

    hmm not sure what else it could be sorry. Maybe there is something wrong with the WAMP setup??? You will also not be able to use htaccess files either since you are unable to load the mod_rewrite module in the httpd.conf file.

Viewing 15 replies - 1 through 15 (of 19 total)

The topic ‘Bullet proof 500 Internal server error everywhere after install’ is closed to new replies.