By Curious Fish on
I have just installed drupal 4.7 on apache in windows xp.
It goes fine until I try to create a first user. The link points to http://localhost/drupal/?q=user/register
instead of
http://localhost/drupal/index.php?q=user/register
DirectoryIndex index.php exists in .htaccess file.
I guess the problem is somewhere in my httpd.conf file although I have no clue how to fix it.
Please help.
Comments
http://localhost/drupal/?q=us
http://localhost/drupal/?q=user/register should be ok. This is what I always see. Is there a problem with that?
DirectoryIndex just says that index.php will be used when you go to drupal/. It does not append it to the request.
The problem is that i get
The problem is that i get
403 Forbidden
You don't have permission to access /drupal/ on this server.
message in that case.
eliminate directory permsissions
Eliminate web directory permission issues by calling index.php?q=... directly. Does that serve up as expected? (that was part of bdragon's orig question, too)
--
http://drupaltees.com
80s themed Drupal T-Shirts
Yes it works as it should
Yes it works as it should when I add index.php to the path in the browser by myself. But that doesn't solve the problem. I am not sure I understand what you mean by "Eliminate web directory permission issues..." How can I do it permanently?
sounds like a directory permission problem
Well, it just sounds like apache is not, in fact, serving up index.php as an index file, and so it is instead trying to send the real directory listing as the index-- however, it's running into a permission issue doing that. You can set this in httpd.conf.
The Directory directive on a vhost conf for a drupal site of mine looks like this:
and Drupal's webroot .htaccess itself provides the DirectoryIndex directive:
Somewhere (httpd.conf, default-server.conf, .htaccess, .. somewhere) in your apache config files you should find something that is disabling directory index listing or (more likely) is preventing Drupal's .htaccess from grabbing hold of DirectoryIndex. This may be something like:
AllowOverride None
which may need something like:
AllowOverride FileInfo Indexes Options
..I think.. but that doesn't mean that I am..
--
http://drupaltees.com
80s themed Drupal T-Shirts
Thanks a lot for support! =-D
The corrections I made in httpd.conf to make it work:
For htdocs directory:
AllowOverride All
Options FollowSymLinks Indexes
And:
DirectoryIndex index.php index.html
Thank you!
I also fixed this problem by
I also fixed this problem by simply moving my .htaccess file from my old directory into my new one
After following the videocast up on the lullabot site ( http://www.lullabot.com/videocast/upgrading-to-drupal-4.7) i could not get my site to come up (403 errors if i remember correctly). It was not until i moved the .htaccess file from my old site directory (MYSITEbackup) into the new site directory.
For me, I was getting:
http://mywebsite/index.php?q=user/register
instead of:
http://mywebsite/?q=user/register
this was fixed once I moved that .htaccess file from the old directory into the new one...
morgan
ooO:Morgan Sully:Ooo
Co-Founder/Director ShareSD
Online Commuity Building
Digital Storytelling
Electronic Music
www.sharesd.org
"If you have knowledge, let others light their candles in it." - Margaret Fuller
what worked for me
Hey,
So what worked for me was this: (ubuntu 8.04 server w/LAMP)
Followed all install directions then:
go to /var/www/.htaccess and at the end uncomment out this line:
RewriteBase / (if my drupal site was in /var/www/drupal i'd uncomment out:RewriteBase /drupal or whatever the path to the root drupal directory was)
I then restarted apache:
/etc/init.d/apache2 restart
then I renamed index.html to index2.html and then everything worked ;)
What got me stumped was that I was assuming the problem was due to "index.php" not showing up in my links, which lead me down the wrong path for quite awhile, actually reinstalling Ubuntu and Drupal multiple times ;(
HTH
-punkrokk
Finally!!!
This fixed my problems!!!
similar problem on ubuntu edgy
It would seem that the .htaccess provided adds some other characters I don't know if they work with other versions of apache and MySQL
I have Ubuntu on an amd64 single processor
apache and mysql
VERSIONS
apache2 i.e. Apache/2.2.3
mysql 5 i.e. Ver 14.12 Distrib 5.0.30
Options -Indexes (notice the (-) in front of Indexes
Options +FollowSymLinks (notice the (+) in front of FollowSymLinks
to fix using your favourite editor remove the (-) and the (+) this worked for me.
+-
+ tells Apache to add the feature.
- tells Apache to remove the feature.
If you use neither + or -, you should get the same as +.
petermoulding.com/web_architect
petermoulding.com/web_architect
Weird... since you have
Weird... since you have already accessed drupal/index.php to arrive at the "Create the first user" page.
index.php and 403 Forbidden on shared hosting
Folks,
I am having identical problems that Curious Fish had above.
However, I am installing drupal 5 on a shared host and .htaccess is all that I can tweak.
---
The problem is that i get
403 Forbidden
You don't have permission to access /drupal/ on this server.
---
Thanks.
directory permissions
tesliana- sounds like file/directory permissions (make sure directory is read). Incidentally, I had that same issue, and it completely eluded me (because I had correct dir permissions) until I discovered that my vhost.conf file's Directory directive was pointing to a non-existent directory name. I corrected it to the proper drupal installation (/srv/www/vhosts/drupal-5.0 in this case), and it popped right up as expected.
This will vary somewhat in a shared host environment.
--
http://drupaltees.com
80s themed Drupal T-Shirts
Fresh install of apache? Remove index.html
Be sure that index.php handles indexes, and be sure that index.html either doesn't exist or doesn't take precedence. Personally, I prefer index.html to take precedence (which is the default setup), b/c it gives me a chance to toss up a "Splash" whilst hiding my work involving index.php (and Drupal). Once I'm ready to go live, I rename index.html to decommission it.
--
..happiness is point and click..
--
http://drupaltees.com
80s themed Drupal T-Shirts
index.html does not exist on
index.html does not exist on my server. It's been a while I use that installation although the only php program I ever used was phpmyadmin.