Mac OS X, Apache 1.3.33, Drupal-5.6. Clean URLs
Local site is working fine except for clean URLs. Clicking on Run the clean URL test
produces 404 file not found
Searches have indicated that the hidden file .htaccess
is part of the Drupal files and Drupal should work out of the box if correctly installed. It appears there is something I have overlooked during the installation process. Any help in getting me pointed in the right direction will be appreciated.
Installation
Installed Drupal by unzipping the download in /Library/WebServer/Documents to be sure the .htaccess file would be available. Apache is at /Library/Documentation/Services
Status Report
Drupal 5.6
Configuration file Protected
Cron maintenance tasks Last run 0 sec ago
You can run cron manually.
Database schema Up to date
File system Writable (public download method)
GD library bundled (2.0.34 compatible)
MySQL database 5.0.45
PHP 5.2.4
Unicode library PHP Mbstring Extension
Web server Apache/1.3.33 (Darwin) PHP/5.2.4
What I have tried
- Unable to determine how to modify hidden files with
mod_rewrite
orAllowOverride All
. - Modifying settings.php file was unsuccessful. Was able to generate a WPOD or the site being displayed in text format. Finally had to install a clean copy of settings.php to restore the site.
- Searched Apache manuals and Drupal Post Installation Forum.
Among many other searches, tried to find answers at:
http://drupal.org/node/15365
http://drupal.org/node/15958
http://drupal.org/node/163303
http://drupal.org/node/134814
http://ftp.drupal.org/files/videocasts/5-installing.mp4
134814 seems it could be an answer, I just do not know how to apply it.
Any help in directing my search in a more productive direction will be appreciated. Thanks.

MAMP
Use MAMP, Clean URLS work - http://www.mamp.info/en/mamp.html
and from the handbook - http://drupal.org/node/66187
Thank you all for your help.
Your time and help are appreciated. Haven't had a chance to try your suggestions yet. Will let you know how it works for me. Thank you.
Apple junk makes me cranky
First thing I did when I got my Macbook was rip out the OS X installation of Apache and replace it with one that made sense.
It's not just Apple -- some of the Linux distributions also have needlessly screwed around with Apache -- but it's part of an overall pattern of Apple borrowing something from the open source world and then changing it in strange and generally undocumented ways. Maybe they could have diverted some energy away from programming bouncing icons and toward creating a decent GUI for configuring services.
Unless you want to break everything down and start over, http://drupal.org/node/134814 looks like a good place to almost start.
First ... do you actually have .htaccess in your Drupal directory? Open a terminal, navigate to that directory, and ls -la. If it's not there, add it.
Second, if the Apache config forbids .htaccess from overriding key settings, you're going to have to change that. You need to edit the Apache config file. http://drupal.org/node/134814 tells you where to look. The Apache docs tell you how to do it. OSX probably won't let you change the file unless you change the file perms first.
lol ... we are hundreds
lol ... we are hundreds around there using macos X with apache Wonderfully ......
No prob with htaccess and clean urls at all ... ;)
You need to set up your htaccess file correctly. Just use the "search" function in this very board to find how to.
My apologies.
I intended to, and do, thank all of you for the time you have taken in replying to my request for help. You have provided additional direction that I have overlooked. Your assistance is greatly appreciated. Certain that I will be able to shortly report the success that you have made possible, I thank you all.
This is getting very interesting.
MAMP would be a good way to get things going except; I would never know why the current configuration is not working. I must find out what is happening, especially in light of additional findings. It is good to know there is an alternative.
In Terminal produces a list in the Drupal directory with .htaccess right at the top. Unfortunately there is a caveat. The only way to see the list is to move the Drupal directory to my user directory, but then the server can't find Drupal.
When the Drupal directory is located in /Library/WebServer/Documents/, Terminal responds with Although the site is operational, except for clean URLs, this result in Terminal suggests(?) a problem where a particular item cannot be found.
After finding the .htaccess file in the Drupal directory, I checked out http://http://drupal.org/node/134814. I had been here before in my earlier searches. Problem is, I don't know how to proceed with the information provided.
Can't find the referenced file
/etc/httpd/sites/0000_any_80_.conf.When I search for "conf" I find the Apache http Server Configuration files. I have reviewed these. The more I read them the more confused I become. I believe I have a higher level of reading comprehension than many, but reading the Apache files leaves me puzzled.Some progress has been achieved with your help. Now I will continue searching
Thank you.
MAMP will make you life a
MAMP will make you life a little easier, for sure.
But still, we should be able to sort this out. I guess you using a "normal" version of OS X 10.4 (Tiger)? (i.e not the server version)
You need a decent text editor to make things easier: get TextWrangler from http://www.barebones.com/products/textwrangler/download.shtml
It's free.
Once installed, open it up and go to File > Open Hidden
At the top of the open dialog box, change Enable: All Readable Files to Enable: All Files. Now the fun begins. If you click on the icon on the left for your computer or hard drive (we'll call it Mac HD) then you should be able to find a folder alias called "etc". In there is a folder called "httpd" and in there should be a file called httpd.conf. That's the one you want to edit, so open it up.
Search for "DocumentRoot": below there somewhere you should find
<Directory />and below that "AllowOverride None". Hopefully that's the culprit. Change it to "AllowOverride All". (As soon as you start editing the file TextWrangler will as if you want to unlock it. You do.) This will let your .htaccess files do their thing. I hope! Actually, there should be a couple more<Directory>configurations further down which might also need changing depending on where you're putting your Drupal files.It is all confusing to start with, but with perseverance you'll get there. Or just use MAMP!
Ability to view hidden files answers some questions,
Now Apache manuals and Forum posts make more sense, Thanks McJim.
With Text Wrangler found
/etc/httpd/httpd.confReferring back to http://drupal.org/node/134814 and the warning not to make changes to this file, I looked for
/etc/httpd/sites/0000_any_80_.conf.The httpd.conf file was found, with a few others, but no/sites/folder.With the strong warning against making changes to
httpd.confand McJim's uncertainty, I made a backup copy of the httpd.conf file and then set AllowOverride from None to All. The only result, after restarting the computer, was that my wireless mouse was not functioning. Restored the original httpd.conf file, restarted and my mouse was ok.Searches will now concentrate on finding the virtual host configuration files.
Server or Client?
http://drupal.org/node/134814 refers to OS X Server, not client. What are you using?
Also, you don't need to restart your computer, just Apache by opening System Preferences > Sharing and switching Web sharing off and then back on.
Local Server
Using OS X Server to run localhost.
Restarted computer, since I wasn't sure if stopping and starting web sharing would be sufficient.
Something I previously neglected to mention. I used entropy to originally set up the server. I have a control panel in system preferences to start and stop the MySQL Server, which should also work when making changes.
Thanks again.
Definition of OS X Server
I think the definition of Mac OS Server is part of the issue here. CR, you paid $500 (minimum) to install Mac OS Server on your computer? I think you're probably running a web server on Mac OS client (which is slightly different) and therefore you need to follow the client instructions for getting clean URLs to work.
Of course, using MAMP would be easier:)
NO
In this case, OS X Client and Server are exact the same... They both have the same Apache.
Clean URLs now working on MAC OS Tiger (Client not Server)
Went back to http://drupal.org/node/163303 and since the presence of .htaccess had previously been verified, clicked on Extra Info. Reviewed and followed these instructions,
restarted the server, stopped and started web sharing, ran the test for Clean URLs and it worked.My sincere thanks to all of you for sharing your time and expertise even under the added burden of my deficient understanding of terminology.
All of you have truly "Made my day." I would be embarrassed to admit how much time I had spent in this issue prior to seeking help. Your assistance has been an enormous help to me. Thanks to all of you.
P.S. This has highlighted my need to learn more about the capability and use of Terminal.
DOThtaccess
had the same problems. damm gui, should have stayed with linux :-)
make sure you go to th d/l directory and copy the .htacess file as well to the destination directory, dot files are hidden in the gui of Mac (and on the CLI without parameters).
So after copying all files from the finder, go to a shell and type something like
cp ~username/download/drupal-x.x/.htaccess /Applications/MAMP/drupal/
the only usefull point and click interface is a magnum .44
--
groets
bert boerland
DOT files in OSX Finder
You can make .files visible in the OSX Finder quite easily:
Then Quit the Finder and when it restarts you'll see all of your .htaccess files.