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
Solved

Drupal 7 Fresh Install Keeps Directing to Apache index.html

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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

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 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…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

839 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