Solved

Drupal 7 Fresh Install Keeps Directing to Apache index.html

Posted on 2013-01-23
5
641 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

If you've heard about htaccess and it sounds like it does what you want, but you're not sure how it works... well, you're in the right place. Read on. Some Basics #1. It's a file and its filename is .htaccess (yes, with a dot in the front). #…
Google Drive is extremely cheap offsite storage, and it's even possible to get extra storage for free for two years.  You can use the free account 15GB, and if you have an Android device..when you install Google Drive for the first time it will give…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

739 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