I've spent a good few hours getting as far as I have, but that's okay because I'm learning as I go.
I've finally managed to get the index.php page to display correctly. However when I click on any internal link displayed by that page, I get the default apache placeholder page coming up. Anyone know why that might be?

Comments

jibrael’s picture

Firstly how is apache setup? Are you running drupal from inside the serverroot directory or are you running a directory alias, or have you setup a virtualserver?

--
My blog

jbrauer’s picture

As the other comment said, please tell us a little more about how you're setup.

Are you using Clean URL's? Or have you gotten that far?

Can you give a specific example of the link you click on and the URL it takes you to?

Are you logged in when this happens or have you been able to create a user yet?

------------------------------
Adding Understanding

--

pembeci’s picture

[Repliers: http://drupal.org/node/50121 have some background info about the setup. I think moist is trying to install Drupal on a local machine with fresh Debian]

Are you displaying the index.php page by localhost or localhost/index.php? If the former also directs you to the apache placeholder then you should comment the following in your etc/apache2/sites-available/default file:

RedirectMatch ^/$ /apache2-default/ 

Put a # at the beginning of the line.

moistTowelette’s picture

Okay I have drupal set up in /var/www/ on Debian Sarge. I have the index.php page displaying correctly, but am unable to access anything from this page. I'm at work at the moment so I'll double check the details when I get home, but the problem is that ANY internal link I click brings me to the default page, including when I try to log in and click 'okay'. I haven't been able to set up a user.
The hyperlink URLs are something like (this is from memory, for the admin settings link):

http://localhost/?=admin/

and when I click them it brings me to:

http://localhost/apache2-default/?=admin/

which displays an Apache placeholder page. I'm not sure what those question marks mean in the URL, so I'm having a hard time investigating for myself.
Hope this helps, I'll double check details when I get home.

EDIT: The links above are actually http://localhost/?q=admin and http://localhost/apache2-default/?q=admin respectively. Commenting out the line specified in /etc/apache2/sites-available/default results in a different placeholder page being diplayed (the one from Apache 1?). I still can't access index.php by simply typing 'localhost' in my browser.

EDIT #2: Fixed it :). For some reason, renaming /var/www/index.html so that Apache couldn't find it seemed to fix everything. I'm learning slowly...

jbrauer’s picture

The order that it looks for index.html vs. index.php is controlled by the DirectoryIndex directive in your Apache settings.

------------------------------
Adding Understanding

--

indiarti.com’s picture

I was having similar issues. I installed drupal under my webserver htdocs, then had to add the index.php in the line below in the webserver's httpd.conf
"DirectoryIndex index.php index.html index.html.var"

oestrada’s picture

works great!!!