Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Problems getting MAMP to start

Community Beginner ,
Feb 27, 2010 Feb 27, 2010

David,

I did a:

   find / -name 'php.ini' 2>/dev/null

and found these copies of the php.ini file:

/Applications/MAMP/conf/php4/php.ini

/Applications/MAMP/conf/php5/php.ini

/Library/Application Support/appsolute/MAMP PRO/conf/php.ini

/usr/php5/lib/php.ini

so, I edited them all (just to be safe) as you suggested - even the php4 copy.

PHP scripts are still not being processed.

When I type sudo apachectl graceful shouldn't it show something like "/usr/sbin/apachectl graceful: httpd graceful restarted"?  I see nothing...the prompt comes back on the next line.

The only time it writes anything is is I type sudo apacehctl start, then I see "org.apache.httpd: Already loaded".

Is there anyway to make it more verbose?

TOPICS
Server side applications
2.9K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Feb 27, 2010 Feb 27, 2010

update:

I did a:

   find / -name 'apachectl' 2. /dev/null

and it came back with:

/usr/sbin/apachectl

/Applications/MAMP/Library/bin/apachectl

so I do:

   cd /Application/MAMP/Library/bin

and then:

   ./apachectl graceful

and it came back with:

   httpd not running, trying to start

   (13) permission denied: make_sock: could not bind to address {::]:80

   (13 permission denied: make_sock: could not bind to address 0.0.0.0:80

   no listening sockets available, shutting down

   Unable to open logs

Does this mean that httpd is not running, and that I need to make some change to the httpd.conf file?  Just a wild guess on my part.

Any ideas?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Feb 27, 2010 Feb 27, 2010

I'm grappling in the dark, but in case this is significant, the locations of ALL the httpd.conf files are:

   /Applications/MAMP/conf/apache/httpd.conf

   /opt/local/var/macports/sources/rsync.macports.org/release/ports/sysutils/backuppc/files/httpd.conf

   /private/etc/apache2/httpd.conf

   /private/etc/apache2/original/httpd.conf

   /Users/pforkes/Library/Application Support/appsolute/MAMP PRO/httpd.conf

If I do need to edit one, which one would I edit (and why are there five)?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Feb 27, 2010 Feb 27, 2010

Peter A. Forkes wrote:

The only time it writes anything is is I type sudo apacehctl start, then I see "org.apache.httpd: Already loaded".

You are almost certainly running the preinstalled version of Apache, which is what is preventing the MAMP version of Apache running.

In System Preferences, select Internet & Sharing, and deselect Web Sharing.

It sounds as though you have followed many conflicting accounts of how to set up a PHP testing environment. Running MAMP is simpler than falling off a log. See http://www.adobe.com/devnet/dreamweaver/articles/setting_up_php_03.html.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Feb 27, 2010 Feb 27, 2010

It's STILL NOT WORKING!

DAMN THIS THING!!!  I have spent almost 30-hours so far just trying to get it started.

Do you think that it I would be easier to just throw my whole machine away, reformat and re-install the operating system?????

I **KNOW** that running MAMP is trivial, but I made the stupid mistake of following what was on the Lynda course, and it has screwed me over royally.

Is there any way that we can talk on the phone?  My email address is pforkes@pobox.com.

I am absolutely at my wits end over this.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Mar 02, 2010 Mar 02, 2010

Peter A. Forkes wrote:

It's STILL NOT WORKING!

DAMN THIS THING!!!  I have spent almost 30-hours so far just trying to get it started.

I have branched this to a new thread. You made things even worse for yourself by hijacking another person's thread, which was subsequently marked as having been answered. As a result, no one probably noticed you still needed assistance.

I can understand your frustration if something's not working, but the only way to troubleshoot a problem is to go through various possibilities one by one to eliminate them.

Is there any way that we can talk on the phone?

No, sorry. I don't give out my personal details to anyone in a public forum.

According to an earlier post, Apache is already running. However, turning off Web Sharing in System Preferences didn't work. That raises the question of where the running version of Apache is coming from. Without knowing how you tried to install your testing environment, it's difficult to offer much advice. However, MAMP is designed in such a way that it should run independently of existing versions of Apache and MySQL.

Open the MAMP preferences, select the Ports button, and click Reset MAMP Ports (see Figures 7 and 8 on http://www.adobe.com/devnet/dreamweaver/articles/setting_up_php_03.html). You should then be able to run Apache on port 8888 and MySQL on port 8889. All this means is that, instead of using http://localhost/ in the URL prefix, you use http://localhost:8888/, and when setting the value of Server in a MySQL connection, you use localhost:8889 instead of just localhost.

Of course, it would be better to clean up your system, but that could take a lot of time and effort. If using the MAMP ports resolves the problem, that's probably your best way forward.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Mar 03, 2010 Mar 03, 2010
LATEST

Hi!

The file "/Library/Application Support/appsolute/MAMP PRO/conf/php.ini" is from MAMP PRO and you can not edit this file directly. You have to do it like this:

  1. Open MAMP
  2. File -> Edit Template -> PHP5 php.ini / PHP4 php.ini

Dirk

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines