I've been tryin to do this for a while, I've searched the site aswell as the net and I always get stuck. It seems like alot of the directions skip around by not tellin me where to put the drupal files or when I was watchin the drupal vid it went into a ftp and onto a remote server. Is there good clear directions on this or can any1 help?

Comments

tjodolv’s picture

I assume you have MAMP from http://mamp.info installed and working. Unless you have made any configuration changes this is what you should do:
1. Download latest Drupal
2. Unpack and move the folder drupal-6.3 to /Applications/MAMP/htdocs
3. Rename the folder to simply drupal (/Applications/MAMP/htdocs/drupal)
4. Start MAMP
5. Open your browser and go to http://localhost:8888/drupal

JaymeNYC’s picture

Thanks! The shortest and most helpful explanation :)

got it workin!

logicalnot’s picture

Hi,

I am trying to test Drupal under MAMP on Mac Os X.

Despite many attempts, I still have the same error message :

Requirements problem
The following error must be resolved before you can continue the installation process:
The Drupal installer requires that you create ./sites/default/settings.php as part of the installation process, and then make it writable. If you are unsure how to grant file permissions, please consult the on-line handbook.

Yes, I did check the permissions. I granted full access to all (me, staff, everyone).
Still, it's not working.

Any idea?
Thank you!

darumaki’s picture

I think Mamp has it's own permissions setup as well, what I did was made myself the owner of files instead of the default www/mysql, it warns you not to but I do it anyway, local testing is not much security concern on a mac and mamp secures itself from prying eyes anyway.

Also with every drupal install, I modify the permissions starting from the root folder on down and give myself ownership, drupal files permissions are flakey, so by doing this, I make sure I have ownership on every single file.

lizhenry’s picture

I ran into this problem installing Drupal 6.9 on a Mac, with MAMP running. We did this for the entire drupal folder:
chmod -R 777 drupal

and then the install worked.

------------------------
Liz Henry
liz@bookmaniac.net

Madfatter’s picture

I have this same problem but I can't figure out how to change permissions on a local installation. Where would I type the chmod command?

Thanks

gjclimer’s picture

I have followed these directions (and the more convoluted versions elsewhere) and keep running into the same problem:

I will go thru step five, then drupal starts its install.
Step 3 of the provided drupal set up is database name, dB user name, dB password.
I set up a database in myPHPadmin. I enter that info and the page just reloads.

To test what happened if it was incorrect info, i entered the wrong info and it brings up a message that the info is incorrect. So i feel safe assuming that i am not messing up my databasename, user name, and password.
(i am using "root" and "root" for my user and password as they were provided by MAMP.)

i'm so new to drupal, php, etc... so if anyone can help, i would be grateful.

best
gjc

ed_f’s picture

Did you ever find an answer to this? I have been stuck on that same install page and cannot figure out a way to get past it. Created new databases, new useres, etc. - Always results in this same condition, exact same thing as you.

>I will go thru step five, then drupal starts its install.
>Step 3 of the provided drupal set up is database name, dB user name, dB password.
> I set up a database in myPHPadmin. I enter that info and the page just reloads.

mistresskim’s picture

You can get around this by editing line 92 in your settings.php file to include your database name, user and password details. This line here:

$db_url = 'mysql://username:password@localhost/databasename';

So if the MySQL user account is 'admin', password is 'secret' and your databasename is 'mywebsite', then the new line would look like

$db_url = 'mysql://admin:secret@localhost/mywebsite';

Then hit the 'Please try again' link and the install should continue.

ed_f’s picture

Hey newkid
Thanks and more thanks! That did the trick and within 2 minutes of reading your post I finally have my drupal setup running.
Earned yourself some karma today!

Thanks again,

ed

micahgodbolt’s picture

Wow! After days of frustration this worked. Would love to know why this is happening with MAMP and drupal. My first install was great, then I had problems and tried to reinstall....everytime i entered username and password the page just refreshed and did nothing. Now, after changing that one line, it just worked! Thanks Mistresskim.

Barak’s picture

It was constantly either refreshing or telling me I didnt have access.

First you need to copy and paste your default settings.php (under drupal/sites) change the name of the new file to "settings.php"

Then open the new category (settings) and go to line 92 it should say
$db_url = 'mysql://username:password@localhost/databasename';

where it says username and password change to root root. So it shoudl look like this 'mysql://:root:root@localhost/(whatever your database name is)';
make sure you save it when you exit

afterwards press command I on the settings category (and the default settings category) look on the bottom where it says sharing and permissions make sure you make it so everyone can read and write.

After 5-6 hours yesterday this solved my problem I hope it helps someone else.

keith.stoddart’s picture

I finally got this thing to work. Eveything else I tried just ended in errors...
This is simple and it WORKS!

Well done.
Keith

DigiPug’s picture

Thank you so much... Great instructions. Up & running in minutes!

mindfu’s picture

Thanks to this clear and simple information, this was so easily completed. I've signed up with drupal.org for the explicit purpose of thanking you. Well done.

bpop’s picture

I'm sure MAMP comes with the module mod_rewrite... but somehow drupal does not think it can handle "clean URL's"

has anyone figured that one out?

bpop’s picture

..eeh simple :))

.httacces was omitted in my copy paste to httdocs

so one has just to make sure it is in your web dir...

mjjyang’s picture

The Drupal installer requires that you create ./sites/default/settings.php as part of the installation process, and then make it writable. If you are unsure how to grant file permissions, please consult the on-line handbook.
The directory sites/default/files does not exist. An automated attempt to create this directory failed, possibly due to a permissions problem. To proceed with the installation, either create the directory and modify its permissions manually, or ensure that the installer has the permissions to create it automatically. For more information, please see INSTALL.txt or the on-line handbook.

darumaki’s picture

I have 6.3 setup on mamp, works good, even took off the :88888 so I can use it like a normal domain.tld

I put all my files under user/Sites/drupal, then change the document root in mamp, I'm using mamp pro, if you need a copy of it let me know.

malexandria’s picture

Got everything to work, pretty nifty and neat. But for some reason the MAMP start page is no longer working saying it's unable to connect to mysql.

lenr’s picture

I'm experiencing the same problem and error when trying to open the MAMP start page. It was working just fine, then stopped connecting to mysql. Any ideas on how to resolve this problem would be appreciated.

hailaz’s picture

I moved the Drupal files into the root, not a subfolder and Mamp worked fine.

Thomasr976’s picture

Clicked the start button on MAMP and I get http://localhost:8888/install.profile=default. Any idea what is wrong? I have tried everything but can find a way to get the startup page to open so i can acces myphpadmin.

hailaz’s picture

Edited, misunderstood request.

Palbin’s picture

I am using Tom Gellers install tut on Lynda.com and for some reason I can not get past the database configuration.
I am entering "drupal" as the database name
"root" for Database username
"root" for Database password
clicking save and the page continues to refresh with empty fields!?

I believe I have read and tried all the suggestions in this post with no luck :(

Anyone know of any special issues with drupal 6.13?

many thanks in advance

Thomasr976’s picture

No issues with d 6.13 as far as I know. Just so u know most of us get tripped up at the DB configuration step.

1) did you create your database and name it? Use phpMyAdmin which you should be able to access from the MAMP setup page.
2) turn Mamp server off
3) then go to the mamp folder and specifcially htdoc/sites/all/default and find the setting.php file. Find the lines that sets the name of the database and insert your name in their. I can't remember the eact way it is configured
4) turn Mamp server back on
5) then go though what you did above. In browser, http://localhost...........
6) do as u did before.

Should work.

bramface’s picture

I'm just including this here, in case anyone else hits the wall and doesn't intuit the solution immediately.

I got my Drupal site displayed fine on my first MAMP install, but when I logged in, I was moved to my user account page but not given any administration permissions. My hunch was that this is a cookie problem, since the domain is http://localhost:8888 rather than my domain name.

I changed the cookie domain in my settings file to:

$cookie_domain = '.localhost:8888';

and was able to log in.

Bram

--
Bram Moreinis
Greenfield Digital
http://greenfielddigital.com

SJourney’s picture

Because they aren't mentioned in http://drupal.org/node/66187