Hi -- I'm so close, yet so far!
I don't feel I'm new to this right now, but I am. Can someone point me in the right direction . . .
I'm running OSX.
I have established a drupal MySQL database (all tables).
Apache 2 is running.
phpMyAdmin works fine.
php seems to parse, but only on explicit urls:
I cannot get index.php to load off "http://localhost"
but when I enter "http://localhost/index.php" I get the Drupal 5.1 home page!
When I try to register as a new user (http://localhost/?q=user/register) it goes back to the Apache homepage...
I've created a "config" folder in phpMyAdmin and modified/downloaded the config.inc.php file and when I run setup.php I still get:
"Can not load or save configuration
Please create web server writable folder config in phpMyAdmin toplevel directory as described in documentation. Otherwise you will be only able to download or display it."
It seems php is not configuring.
It is probably something very simple . . . does anyone have any clues?
Thanks a lot!
Comments
Some questions
Have you looked in apaches error or access logs for any hints?
Have you told apache to look after index.php when no file specified in url? Look for something like this in apache config:
DirectoryIndex index.html index.cgi index.pl index.php index.xhtml
I don't quite understand where you have installed apache default site and the drupal site?
Are the phpmyadmin config folder writable by your webserver-user?
--
dafa
some answers
thanks for your questions -- here are some answers:
##Have you told apache to look after index.php when no file specified in url?##
Here is the line in the httpd.conf file:
DirectoryIndex index.html index.html.var index.php (I just added index.php -- didn't work)
##I don't quite understand where you have installed apache default site and the drupal site?##
/Library/Apache2/htdocs (drupal is in same location)
##Are the phpmyadmin config folder writable by your webserver-user?##
I created the config folder -- haven't checked permissions via terminal 'cause I'm a noob and don't remember how -- I've made invisible files visible using TinkerTool to create directories via UI. It could be that this file is not writable -- I cannot save or load it.
##Have you looked in apaches error or access logs for any hints?##
When I try to register a user I get the following in the access_log:
127.0.0.1 - - [03/Mar/2007:12:51:31 -0500] "GET /index.php HTTP/1.1" 200 4887
127.0.0.1 - - [03/Mar/2007:12:51:57 -0500] "GET /favicon.ico HTTP/1.1" 404 298
and something as innocuous as the following in the error_log:
[Sat Mar 03 12:51:57 2007] [error] [client 127.0.0.1] File does not exist: /Library/Apache2/htdocs/favicon.ico
Thanks -- I'll continue to hunt down the permissions for the config folder -- setup is NOT writing to it!
Did you restart apache after
Did you restart apache after editing config?
Did you try putting Drupal in another folder? Maybe /Library/Apache2/htdocs/drupal and then use http://localhost/drupal/ ? Or maybe just move the apache default files out, so you have a clean drupal installation without alien files...
You can use 'ls -l' on the phpmyadmin-config folder to check permissions and owners. Unix permissions is a completely different story, so good luck :-) In short you should se 3 numbers 755 or something. 1st is owning-user, 2nd is owning-group and 3rd is others. You also see a username and a group. These are the owners of the folder.
Try pasting a 'ls -l' of the config folder.
Oh - You could also right click the config folder in Finder, select Get Info and in the bottom you can see Ownerships and permissions. But that would be too easy :-)
--
dafa
Issue Solved
Thanks for everybody's suggestions and questions!
The key is the httpd.conf file.
The obvious: all root directories should point to the actual root folder and NOT WebServer. It pays to go slow and modify each path.
Now to solve the clean URL configuration challenge. It would be great if there were a clear description and example of an .htaccess and httpd.conf file on Drupal. Lots of people have covered this ground before me . . .
Forward Ever, Backward Never (well, almost),
-- Patrick
my conf
I can show you my conf. where clean urls work. All my sites are apache virtual hosts.
One of those blocks for each site I'm running.
Not using any special .htaccess - Just the one that comes with Drupal.
Hope this helps.
--
dafa
Thanks.. Here's what I have:
I've modified what you sent dropped in this:
ServerName localhost
ServerAdmin name@name.com
DocumentRoot /Library/Apache2/htdocs
Options Indexes FollowSymLinks MultiViews
AllowOverride All
ErrorLog /Library/Apache2/localhost-error_log
CustomLog /Library/Apache2/localhost-access_log combined
with the drupal .htaccess
I have commented out the mod_rewrite:
#LoadModule rewrite_module modules/mod_rewrite.so
but, alas, it still doesn't work.
Thanks again. I'll keep monkeying.
patrick
logs ... again :)
"Does not work" is very hard to debug - Do your logs say anything usefull?
Why have you commented out Loading of rewrite?
Have you checked to see if you already have entries overwriting these ones further down in apache conf?
--
dafa
Apple's server setup bites
Apple's default OS X webserver PHP setup is a poorly documented mess. You may have better luck with this:
http://www.entropy.ch/software/macosx/php/
Using Apache 2 (and not webserver)
Thanks,
I'm not using the Mac WebServer. I'm using Apache2 and have dropped drupal (not a subdirectory) and phpMyAdmin into the Apache2/htdocs folder.
I know I could have used the entropy -- but I jumped at this and am trying to get it to go. I may end up pulling everything off and going back with entropy . . . I'm close... thanks again.