Advice Wordpress

New Install of WordPress on 1and1 Appears as Forbidden When You Try To Access From A Browser

This has been an issue I’ve run into during the last 3 installs of WordPress on 1and1. I’ve sought out this issue online and have found zippo written.

Maybe I should be using the automated installer that 1and1 offers? Oh wait, I can’t seem to find that feature anymore. 1and1 keeps changing their dashboard. I don’t know. All I know is that I needed a fix, and I found one. So here it is.

You’ve run the WordPress installer on your server. From a file and folder standpoint all looks good. But when you hit the URL from your browser you’re told Das ist Verboten!

At first you might be thinking (as I was) that this error might have something to do with the .htaccess file. A year or so ago, the .htaccess file WAS the problem (when you needed to tell 1and1 server to use php 5 (I guess I never wrote about that!). Sorry, Charlie. No dice. You’ll need to place your .htaccess file anyway, but something else is amiss.

You don’t have permission to access /foldername/ on this server.”
This problem got me again when I was trying to install a fresh WordPress site for my nephew. It’s about time someone in my family took more than just a Facebook interest in how the Internet works. But I digress

The Problem: the index.php file is missing from your ROOT WordPress directory. Why? I have no idea. I discovered this when I sat and did a file-by-file comparison between my scottallen.com site files and the new install.

The Fix: You need to grab an index.php file from a working WordPress site. If you don’t have access to the files on a working WordPress site, you might try cutting and pasting the following code (exactly as it is here) into a fresh Notepad or TextWrangler file. Title it index.php. Pop that file into the root directory of your WordPress install. Cross your fingers. Hopefully this code snippet works for you.

I’d be very curious if anyone else is having this problem.

If you don’t have access to the files for a Working WordPress site, copy this into a new file and name it index.php:
[code lang=”php”]
/**
* Front to the WordPress application. This file doesn’t do anything, but loads
* wp-blog-header.php which does and tells WordPress to load the theme.
*
* @package WordPress
*/

/**
* Tells WordPress to load the WordPress theme and output it.
*
* @var bool
*/
define(‘WP_USE_THEMES’, true);

/** Loads the WordPress Environment and Template */
require(‘./wp-blog-header.php’);
?>
[/code]

Bad Behavior has blocked 4336 access attempts in the last 7 days.