1- I have drupal on my localhost. in url i type http://localhost/drupal and it wont open the index.php itself (i am not authorized to view this page ) instead i have to type http://localhost/drupal/index.php

Is that how its supposed to be?

2-When i log out from an account i go to http://localhost/drupal/index.php?q=logout
But it says i am not authorized to view this page either.

I think both problems are related. Any input?

Comments

Uwe Hermann’s picture

The first issue might be an Apache/webserver problem not related to Drupal. Does your httpd.conf have index.php listed in the DirectoryIndex line? Are the Drupal PHP files readable by your webserver?

Also, does the variable $base_url in drupal/include/conf.php read "http://localhost/drupal" (not "http://localhost")?

Uwe.
--
My Drupal site: http://www.crazy-hacks.org
Soon to be drupalized: http://www.unmaintained-free-software.org

hakan-1’s picture

umm i forgot to say i use iis not apache.
and yes base url points to /drupal

bertboerland’s picture

still, no matter what server you are running, if /index.php is working and / not, it is related to the config of the webserver.

look for some option to push index.php as the default page instead of index.htm

--

groets


bertb

--
groets
bert boerland

killes@www.drop.org’s picture

I've taken the liberty to give your post a meaningfull title.

--
If you have troubles with a particular contrib project, please consider to file a support request. Thanks.

sepeck’s picture

In the Documents tab of the web site, add index.php and bump it up to the top. If you do not need the other document type's then remove them.

-sp

-Steven Peck
---------
Test site, always start with a test site.
Drupal Best Practices Guide

hakan-1’s picture

thnx a lot. it works now