Forums

[resolved] Internal server error for Multisite (7 posts)

  1. rcwatson
    Member
    Posted 9 months ago #

    I'm fairly certain I've read and followed everything in other posts, but I'm still having trouble setting up multisite on a fresh 3.2.1 install.

    PROBLEM: When I update wp-admin.php with the code recommended by the network installer, but NOT the .htaccess code recommended (blank .htaccess file), the base site works fine. New sites don't work, though. However, as soon as I add the recommended .htaccess code, I get Internal Server 500 errors for every URL.

    SETUP:

    1. documentroot is not named "wordpress"
    2. I DO want a subdirectory install, NOT a subdomain install.
    3. My obfuscated wp-config.php file, which is in documentroot and has 775 permissions: http://pastebin.com/kVwkzG7v
    4. My .htaccess file, which is in the documentroot and has 775 permission: http://pastebin.com/PcvxFuPR
    5. Added AllowOverride ALL: http://pastebin.com/Deug2n5g
    6. and restarted Apache: http://pastebin.com/1a0p3AHB

    Anything else I can try?

  2. Ipstenu
    Half-Elf Support Rogue & Mod
    Posted 9 months ago #

    If you get error 500 on .htaccess, the file's not being read correctly.

    The permissions (775 etc) aren't the problem. That's all in the httpd.conf setup. And yes, you HAVE to have the .htaccess working for pretty permalinks and for multisite.

  3. rcwatson
    Member
    Posted 9 months ago #

    Thanks for clarifying on whether it was truly .htaccess. Now that it's narrowed down, can you offer any advice, based on the code I linked to, as to what might not be in place in .htaccess or my vhost settings?

  4. rcwatson
    Member
    Posted 9 months ago #

    SOLVED! I tailed the error log for this instance when .htaccess contains the code above, which triggers the Internal Server 500 error.

    The error message in the log is:

    [Thu Aug 18 02:02:21 2011] [alert] [client nnn.nnn.nnn.n] /usr1/webroot/example/.htaccess: Invalid command '\xef\xbb\xbf#', perhaps misspelled or defined by a module not included in the server configuration

    Searching on the Invalid command string, I found this article, which solved the issue handily.

    I hate Windows.

  5. Ipstenu
    Half-Elf Support Rogue & Mod
    Posted 9 months ago #

    UGH! Okay, what text editor are you using? Notepad++ if you're on windows is the best to use.

  6. rcwatson
    Member
    Posted 9 months ago #

    I used Notepad++ and also an editor that is built into SmartFTP. Same as I always do with no problems. But somewhere along the way, Windows character codes got into it and weren't visible and Notepad++ couldn't shake them, so I kept editing and uploading in ignorance. It was only when I used pure vi and typed it all out by hand that I was able to have success. Lesson learned.

    Thanks for all the help the past couple of days, though.

  7. Ipstenu
    Half-Elf Support Rogue & Mod
    Posted 9 months ago #

    and also an editor that is built into SmartFTP

    I would stop using that one. NotePad++ when set to Unix mode (there's a way to do that) is safe as houses ;)

Reply

You must log in to post.

About this Topic