• Resolved MonCoeurCetteMachine

    (@progresstination)


    after installation (using the automagic buttons and making suggested backups) I can log on to my page and see the homepage but every link is broken and I get:

    Internal Server Error

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

    so in my panic I deleted the plugin (it’s reinstalled now though) and deleted the htaccess-file, but still my site isn’t working anymore. please help, as I can’t figure out the problem, although I guess it’s something with the permalinks.

    Website Root Folder: https://eva.progresstination.net/portfolio
    Document Root Path: /home/progr468/public_html/eva
    Server / Website IP Address: 69.90.163.150
    Host by Address: hp62.hostpapa.com
    DNS Name Server: ns2.hostpapa.com
    Public IP / Your Computer IP Address: 90.30.125.80
    Server Type: Apache
    Operating System: Linux
    Server API: cgi-fcgi – Your Host Server is using CGI.

    WHAT’S TO DO?

    https://www.ads-software.com/extend/plugins/bulletproof-security/

Viewing 11 replies - 16 through 26 (of 26 total)
  • Plugin Author AITpro

    (@aitpro)

    LOL Well a subdomain with subfolder site setup is just more complex so i imagine that most folks do not even know they can do something like this. ?? Almost done with the manual WordPress installation on the test site.

    Thread Starter MonCoeurCetteMachine

    (@progresstination)

    I’ll attend to some other business concerning some food. however, thanks for putting me on the right track and for your fast and engaged way of helping.

    Let me know if you stumble across some useful information during your quest through sub.domain/subfolder-hell…

    good night and good luck, eva

    Plugin Author AITpro

    (@aitpro)

    I ran into some whacky problems with installing a DB under one of subdomain sites – could not get the DB to connect at all on that subdomain subfolder site and could not log into the DB with phpMyAdmin either? Strangest problem i have ever seen. I checked with my Host and they did not see anything wrong, but obviously something is wrong. Anyway i threw in the towel on that experiment. I looked around the GoogleHood and i do not see info about this anywhere so not sure what to tell you at this point.

    Thread Starter MonCoeurCetteMachine

    (@progresstination)

    Strangest problem i have ever seen

    …makes me smile the sad evil way man…
    I knew something isn’t quite right after once trying to move my wordpress-page, but leaving the db at it’s place(localhost). although setting new paths to wordpress, database etc. i lost access to wordpress-admin-page entirely. i think the only reason why it works in the first place is that I’ve installed wordpress via a software my host is providing (softaculous). I simply choose my subdomain, add a foldername that doesn’t exist (portfolio) and a db-name, the rest is done by the software…
    now I’m getting afraid of future problems…guess my ignorance is paying off now, hehe

    have a good day with problems that are solvable! yours thankfully, eva

    Plugin Author AITpro

    (@aitpro)

    Ok got the MySQL DB problem figured out and it was a very strange one afterall. For whatever reason the automated DB creator on my Host did not like the #14 or that i was creating a 14th new DB. When i created a 15th new DB with exactly the same setup/settings it worked fine. Being a coder I imagine that there is some coding check somewhere that just did not like a combination of things or maybe just the #14 is unlucky when creating MySQL DB’s. LOL

    Ok so yep creating a subdirectory site under a subdomain is exactly the same as any other scenario and there is nothing special about it. Everything worked perfectly fine and as expected.

    Under Settings >>> General
    WordPress Address (URL): https://sub.example.com/private
    Site Address (URL): https://sub.example.com/private

    Permalink: /%postname%/

    WordPress generates this .htaccess code

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /private/
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /private/index.php [L]
    </IfModule>
    # END WordPress

    BPS generates this .htaccess code (only posting a snippet)

    RewriteEngine On
    RewriteBase /private/
    RewriteRule ^wp-admin/includes/ - [F,L]
    RewriteRule !^wp-includes/ - [S=3]
    RewriteRule ^wp-includes/[^/]+\.php$ - [F,L]
    RewriteRule ^wp-includes/js/tinymce/langs/.+\.php - [F,L]
    RewriteRule ^wp-includes/theme-compat/ - [F,L]
    
    RewriteEngine On
    RewriteBase /private/
    RewriteRule ^index\.php$ - [L]
    ...
    ...
    ...
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /private/index.php [L]

    Plugin Author AITpro

    (@aitpro)

    i was working on my new wordpress-portfolio, which I installed under
    eva.progresstination.net/portfolio. after finishing this site I meant to simply redirect from eva.progresstination.net (my old subdomain-portfolio) to eva.progresstination.net/portfolio (new one).

    I think this above is where the problem is going to be. Are you doing any kind of additional redirect from somewhere else? ie your Control panel or another .htaccess file or in some php coding?

    Thread Starter MonCoeurCetteMachine

    (@progresstination)

    ha(rdcore)!
    you picked up the towel!
    stuff like your db-bug with #14 is the reason why i find coding just as irritating as real life…

    so BPS is working for you?
    from what you where posting, I;ve the same setup (wordpress .htaccess file)

    my BPS .htaccess file (after I made the changes which resulted in me not having access to my dashboard anymore – which is probably because I haven’t done any automagic buttong klicking before?) said pretty much the same as yours, just this:

    RewriteCond %{REQUEST_METHOD} POST
    RewriteCond %{REQUEST_URI} (wp-comments-post\.php)
    #RewriteCond %{HTTP_REFERER} !^.*demo5.local.* [OR]
    RewriteCond %{HTTP_USER_AGENT} ^$
    RewriteRule .* - [F]

    seems to be a bit different.

    REDIRECTING:
    since today (a few hours ago) I redirect from
    eva.progresstination.net TO
    eva.progresstination.net/portfolio
    but did wasn’t the case when the problem with BPS occured!!! There were no redirections at that time.

    You think I should try the plugIn again?

    Plugin Author AITpro

    (@aitpro)

    Yep coding can sometimes be an adventure and not just a job. LOL

    yep BPS is working fine on that subdirectory/subdomain site here – forum.ait-pro.com/private if you want to check it out. I only created one test Post and it worked fine. All the Default WP Pages that come with a standard WP installation are working fine too.

    Are you clicking the AutoMagic buttons before Activating BulletProof Modes? The code you are showing above is what “ships” with BPS and is just a placeholder file. When you use AutoMagic it creates new Master .htaccess files that are specific for your website. ie your valid info. and activating BulletProof Modes just copies and renames the Master files and puts them where they are supposed to go.

    It’s up to you whether or not you want to use BPS or not. ?? Just wanted to get my findings posted as an official record since i was curious about this myself. And if anyone ever asks this question again. ?? BPS works fine installed on a subdirectory site installed under a subdomain site. Thanks.

    Thread Starter MonCoeurCetteMachine

    (@progresstination)

    cool, I’ll give it an other go, maybe I just messed up something stupid during the installing process. I’ve your code snippet to compare with the result at my side. (thanks for posting your findings during the process!!!)

    just a last question, if you don’t mind (because I’m not familiar with how BPS exactly works):
    I also have a wordpresspage running on my main domain (progresstination.net). If I’d install BPS there, would that have any effect (like some kind of protection) on my subdomains? Thank you!

    Plugin Author AITpro

    (@aitpro)

    htaccess files work in a heirarchical way. If an .htaccess exists in a folder then it apply those security rules recursively to all subfolders UNLESS a subfolder has its own .htaccess file. then that subfolder will follow the rules in its own .htaccess file.

    /.htaccess
    /websiteA/.htaccess
    /websiteB/.htaccess
    /websiteB/websiteC/.htaccess

    website C will follow the .htaccess rules in the .htaccess file that exists in the websiteC folder and not the .htaccess rules in the .htaccess file that exists in the websiteB folder.

    So if you have an .htaccess file in the main domain then it will try to apply those security rules recursively to all subfolders. If the subfolders or other sites have their own .htaccess files then they will follow the rules in their .htaccess files.

    That is why when you have a mix of site types you would also want to create/add an HTML version or a php version of the secure.htaccess file and upload it to those sites/folders. All of your sites will be compartmentalized and have their own .htaccess files / security rules per directory.

    Your subdomain sites are in their own folders so the hiearchical methods explained above would be the same since the subdomain sites have separate directories/folders.

    Thread Starter MonCoeurCetteMachine

    (@progresstination)

    alright, got it! you helped (and taught) me a lot man. thank you very much! eva

Viewing 11 replies - 16 through 26 (of 26 total)
  • The topic ‘Internal Server Error after installation’ is closed to new replies.