Posted by rotnme on February 28, 2010 at 3:27am
OK, losing my mind here. I previously had a local mamp site running but without getting into detail it was deleted due to major problems. I have decided to start it all over. Well for some reason mamp does not run. I download mamp, install, but upon start up, servers don't run and I have no start page. I've tried several time and get the same result. I'm at a loss. Previously this was a snap. Thoughts? Much appreciated.

Comments
I'm assuming since you want
I'm assuming since you want to use MAMP, you're on a Mac. I know back when I had a Mac (about 2 years ago) I was able to turn on Apache (it's built into OSX, there is a setting in the control panel that was under the network section), install Entropy (which was a Mac distro of PHP that had an installer that just ran), and then install MySQL and everything worked pretty well. You'll just have a Sites folder inside of your [username] directory. If I remember correctly the URL to view any sites in there was http://localhost/~[username]/path/to/project
That's my 2-cents-worth and hopefully it helps.
Thanks, I'll poke around, oh
Thanks, I'll poke around, oh and yes always a mac (desktop, laptop). Strange though, I did not have to do anything the first time I installed mamp.
Check your preferences
I think the defaults may have changed over time. Open the preferences and set to start servers on startup, etc. There is also a dashboard widget to start/stop.
Checked into that. All is
Checked into that. All is checked with no result. I'm baffled. Last time I downloaded, installed and all ran wonderfully. I downloaded drupal, moved my db, etc. Now I can't even get mamp to load!
mamp problems
I've found that the times that mamp doesn't "launch" (i.e., apache, mysql and php do not initiate) is because either instances are already running, or the settings for each have corrupted.
As always, I check the logs like there's no tomorrow at these trying times. They're helpfully explicit about what's going on, though you might want to clear them first. They're at: /Application/MAMP/logs.
Yes, you could have the Mac OS core system handle LAMP services, but after years of messing with my core system and finding other unattractive consequences, I don't advocate it anymore. I much prefer a sandbox for development over using the core OS.
Well after doing some poking
Well after doing some poking around.... I deleted mamp and some other misc stuff. When I tried to empty the trash I was not able to. I pulled everything out and systematically deleted items one by one. These are the items that I cannot empty:
ib_logfile1, iblogfile0, ibdata1, mamp
these are the messages I get when I attempt to empty (they are all is use):
mysql.sock, mysql_error_log.err, apache_error_log, 5.2.dylib, mod_vhost_alias.so, mod_usertrack.so, mod_userdir.so, mod_status.so, mod_speling.so, mod_setenvif.so, mod_rewrite.so, mod_proxy_http.so, mod_proxy_ftp.so, mod_proxy_connect.so, mod_proxy.so, mod_negotiation.so, mod_mime_magic.so, mod_mime.so, mod_mem_cache.so, mod_log_config.so, mod_info.so, mod_include.so, mod_imap.so, mod_headers.so, mod_file_cache, mod_ext_filter.so, mod_expires.so, mod_example.so, mod_env.so, mod_echo.so, mod_disk_cache.so, mod_dir.so, mod_deflate.so, mod_dav_fs, mod_dav.so, mod_charset_lite.so, mod_cgid.so, mod_cgi.so, mod_cern_meta.so, mod_case_filter_in.so, mod_cache.so, mod_bucketeer.so, mod_autoindex.so, mod_auth_digest.so, mod_auth_dbm.so, mod_auth_anon.so, mod_auth.so, mod_asis.so, mod_alias.so, mod_actions.so, mod_access.so, libphp5.so, cgisock, mysqld, 3.dylib, 1.1.24.dylib, libxml2.2.7.3.dylib, and it goes on...............
OK I'm at a loss, and over my head. Thoughts? Thanks in advance.
I'm no expert on this sort of
I'm no expert on this sort of stuff, but my guess is this: When you delete or move files from the Finder, there are hidden files and files that you do not have permissions for that will not be deleted, that you will have to open up terminal and delete from the command line.
Probably what happened when you originally deleted MAMP was that some of those files got left behind, then when you copied over the fresh version of MAMP, stuff got corrupted, etc.
I don't want to give you directions on using terminal to delete stuff and change permissions because it is not my best area and when not done correctly, it's an easy way to thoroughly destroy your computer. I'll wait for someone else to come along and offer up that advice.
One point of advice I can give - any time you have a problem with MAMP, or you get a whitescreen for your site or you get a cryptic error message in your browser for your site, the first place you should check is your error logs. Not much we can do to help you out without seeing what, if anything, is in those. There is a folder in the MAMP folder named "logs". Every entry has a time stamp, find the one that corresponds to the time you had your problem (probably at the bottom of the file) and post that text here.
done......
Exactly what I'm thinking! I opened terminal but like you said decided not to screw around with it because of the possible ramifications. I looked at the log but I'll be honest, it's all greek to me. I poked around based on some stuff but am hesitant to do anything. Will post log...........
mysql error log: 100225
mysql error log:
100225 20:54:58 mysqld_safe Starting mysqld daemon with databases from /Applications/MAMP/db/mysql
100225 20:54:59 [Warning] You have forced lower_case_table_names to 0 through a command-line option, even though your file system '/Applications/MAMP/db/mysql/' is case insensitive. This means that you can corrupt a MyISAM table by accessing it with different cases. You should consider changing lower_case_table_names to 1 or 2
100225 20:54:59 [Warning] One can only use the --user switch if running as root
100225 20:54:59 [Note] Plugin 'FEDERATED' is disabled.
100225 20:54:59 [Note] Plugin 'ndbcluster' is disabled.
100225 20:55:03 InnoDB: Started; log sequence number 0 44233
100225 20:55:04 [Note] Event Scheduler: Loaded 0 events
100225 20:55:04 [Note] /Applications/MAMP/Library/libexec/mysqld: ready for connections.
Version: '5.1.37' socket: '/Applications/MAMP/tmp/mysql/mysql.sock' port: 8889 Source distribution
apache error log:
[Wed Feb 24 20:49:33 2010] [notice] Digest: generating secret for digest authentication ...
[Wed Feb 24 20:49:33 2010] [notice] Digest: done
[Wed Feb 24 20:49:33 2010] [notice] Apache/2.0.63 (Unix) PHP/5.2.11 DAV/2 configured -- resuming normal operations
[Wed Feb 24 21:44:56 2010] [error] [client ::1] File does not exist: /Applications/MAMP/htdocs/yourdrupaldir, referer: http://drupal.org/node/66187
[Wed Feb 24 21:45:24 2010] [error] [client ::1] File does not exist: /Applications/MAMP/htdocs/yourdrupaldir, referer: http://drupal.org/node/66187
[Wed Feb 24 21:51:23 2010] [error] [client ::1] File does not exist: /Applications/MAMP/htdocs/yourdrupaldir, referer: http://drupal.org/node/66187
[Wed Feb 24 22:12:21 2010] [error] [client ::1] File does not exist: /Applications/MAMP/htdocs/yourdrupaldir, referer: http://drupal.org/node/66187
[Wed Feb 24 22:12:49 2010] [error] [client ::1] File does not exist: /Applications/MAMP/htdocs/yourdrupaldir, referer: http://drupal.org/node/66187
[Wed Feb 24 22:12:55 2010] [error] [client ::1] File does not exist: /Applications/MAMP/htdocs/yourdrupaldir, referer: http://drupal.org/node/66187
[Wed Feb 24 23:58:37 2010] [error] [client ::1] File does not exist: /Applications/MAMP/htdocs/yourdrupaldir, referer: http://drupal.org/node/66187
[Wed Feb 24 23:59:20 2010] [error] [client ::1] File does not exist: /Applications/MAMP/htdocs/yourdrupaldir, referer: http://drupal.org/node/66187
[Thu Feb 25 00:07:45 2010] [notice] caught SIGTERM, shutting down
[Thu Feb 25 20:55:00 2010] [notice] Digest: generating secret for digest authentication ...
[Thu Feb 25 20:55:00 2010] [notice] Digest: done
[Thu Feb 25 20:55:01 2010] [notice] Apache/2.0.63 (Unix) PHP/5.2.11 DAV/2 configured -- resuming normal operations
I have not a clue........
did you actually create a
did you actually create a directory under MAMP/htdocs/ called 'yourdrupaldir' ? Looks like that is set to be your default root for your web server - if it does not exist, Apache cannot start up.
Don't use Mamp Use Xampp
Xampp is way better IMHO. It works similarly to MAMP only it runs natively on port 80 so it makes things easier since you don't have to type localhost:8888 or whatever. It is also just a drap and drop install. Give it a try. apachefriends.org (I think).
Adam A. Gregory
Drupal Developer and Consultant
Hire me
http://AdamAGregory.com
Twitter Me
http://twitter.com/adamgregory
Arrghhhhhhhhhhh....
Arrghhhhhhhhhhh.... downloaded xampp just for kicks. Can't fir it up because I get the message that another mysql server is running and can't run till I turn it off. I can't find it to turn it off! Enough, please.............. I just want things to work.
First, put the kitchen sink down
I use XAMPP on linux, but I think MAMP does a better job of tailoring to the Mac environment. In mamp, you can always change port 8888 to 80, too. The problem isn't a mamp versus xampp issue, it's more fundamental.
It sounds like you have an instance of mysql running (or possibly apache) which will block the execution of a second instance of apache/mysql from the mamp console.
Now is a good time to learn Terminal and "ps auxc | grep apache" or ps aucx | grep mysql" command so that you can see if these processes are running prior to your launching them.
For example, if I launch mamp and then run "ps aucx | grep mysql" the shell returns;
ksk 58102 0.0 0.7 636212 13900 ?? S 12:56AM 0:00.10 mysqld
HOWEVER, in your case, I wouldn't "kill -9 58102" as I'd rather find out why mysqld launched to begin with.
Did you add MAMP to your account's login Items (that is, does it automatically start after boot-up)? If you reboot and mysqld is running, and you don't know why, that's not really a good thing that should be solved.
Your log error showed you one problem that Sheena calls out, a non-existent path. As for not deleting files, my guess is because they're still be read from for execution reasons, interestingly called by Drupal.
Yes, Upon starting mamp it
Yes, Upon starting mamp it automatically opens the start page. I'm lost on this one, I'll be honest. There's something in the background that I'm missing. I downloaded xampp just to try it out and apache fired up but mysql didn't. As I said previously, I'm out of my comfort zone fooling with terminal and trying to solve this problem.
That wasn't my question
I'm referring to this: http://support.apple.com/kb/HT2602
Have you added mamp to your user account as a startup item, as per the above?
Forget xampp for the moment. What happens after rebooting your computer and you try to load mamp?