Solved

Drupal 7 Fresh Install Keeps Directing to Apache index.html

Posted on 2013-01-23
5
643 Views
Last Modified: 2013-01-24
Aloha,

I just did a fresh install of Drupal 7 on to a fresh install of Ubuntu 12.04. Everything went fine, no errors or issues through the install process.

Note: I am an Apache noob.

Ok, so when I go to load the site drupal.localhost I am redirected back to the Apache start page (index.html). I can load drupal.localhost/index.php just fine. But when I log in, I am again redirected back to the Apache start page. I have Googled and Googled for an answer, but have been getting nowhere. So, here I am.

There are no other websites being served by this box. I just want my main Drupal site to load to work properly using drupal.localhost.

Thanks in advance!
0
Comment
Question by:tlasoya808
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
5 Comments
 
LVL 12

Assisted Solution

by:sivagnanam chandrakanth
sivagnanam chandrakanth earned 250 total points
ID: 38813156
Check your htaccess file....

Try changing below line in htaccess by giving drupal path

RewriteBase /

Also check apache rewrite is enabled?
0
 
LVL 12

Accepted Solution

by:
junipllc earned 250 total points
ID: 38814599
Two things you can try:

First, make sure you have an .htaccess file in the Drupal root. You can't get any other pages but the front page if you don't.

Second, make sure that Apache is set to seek out .php index files before .html index files. Put this in your overall Apache config:

DirectoryIndex index.php index.html

Open in new window


I think one or both of these might be the problem, or lead to it.

Cheers!

Mike
0
 

Author Comment

by:tlasoya808
ID: 38815450
Aloha,

Thank for for the suggestions.

1. There is no RewriteBase option in my .htaccess file. Not sure if I should add one and if so, what the proper statement should look like.

2. Not sure where to ensure apache rewrite is enabled. Again, I am noob. I looked at the apache2.conf file and did not see anything obvious. There is a mods-enabled and a mods-available directory, The only reference to rewrite is in the mods-available directory, rewrite.load. Do I move that to the mods-available directory?

3. The .htaccess file is in the Drupal root, which is the webroot /var/www. And the DirectoryIndex index.php index.html statement exists in the .htaccess file. Does it need to be in apache2.conf as well?

What I think is odd is that in the /var/www directory, where index.php exists, there are no other Drupal files and there is no other Drupal directory. It very well could be that I botched my Drupal install somehow. I used these directions:

http://drupal.org/documentation/install/download

Thanks for all the suggestions. I may just try the install again. Thankfully I have a VM and can just revert to the snapshot I have prior to installing Drupal.

Tony
0
 

Author Comment

by:tlasoya808
ID: 38815669
Well, this fixed the redirect issue after login:

AllowOverride All (was set to none) in  /etc/apache2/sites-available/default.

Now just need to figure out how to get index.php to load automatically.
0
 

Author Comment

by:tlasoya808
ID: 38815699
Meh, cleared the cache in Chrome and it all works like it's supposed to. Going to split the points between the both of the responses as combined they got me where I needed to be.

Many thanks again!

Tony
0

Featured Post

The Ultimate Checklist to Optimize Your Website

Websites are getting bigger and complicated by the day. Video, images, custom fonts are all great for showcasing your product/service. But the price to pay in terms of reduced page load times and ultimately, decreased sales, can lead to some difficult decisions about what to cut.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Hi, in this article I'm going to teach you how to run your own site, and how to let people in (without IP). I'll talk about and explain each step... :) By the way, everything in this Tutorial is completely free and legal. This article is for …
Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…

687 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question