[Last Call] Learn about multicloud storage options and how to improve your company's cloud strategy. Register Now

x
?
Solved

Drupal 7 Fresh Install Keeps Directing to Apache index.html

Posted on 2013-01-23
5
Medium Priority
?
661 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 1000 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 1000 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

Learn Veeam advantages over legacy backup

Every day, more and more legacy backup customers switch to Veeam. Technologies designed for the client-server era cannot restore any IT service running in the hybrid cloud within seconds. Learn top Veeam advantages over legacy backup and get Veeam for the price of your renewal

Question has a verified solution.

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

It is possible to boost certain documents at query time in Solr. Query time boosting can be a powerful resource for finding the most relevant and "best" content. Of course the more information you index, the more fields you will be able to use for y…
In Solr 4.0 it is possible to atomically (or partially) update individual fields in a document. This article will show the operations possible for atomic updating as well as setting up your Solr instance to be able to perform the actions. One major …
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.:
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Suggested Courses

656 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