Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Apache not starting on MAMP Pro

Apache wont start and it throws an error:

Starting Apache failed screenshot

OR Apache couldn't be started. Please check the log file for more information.

dyld: Symbol not found: _iconv Referenced from: /usr/lib/libmecabra.dylib Expected in: /Applications/MAMP/Library/lib/libiconv.2.dylib in /usr/lib/libmecabra.dylib /Applications/MAMP/Library/bin/apachectl: line 80: 2799 Trace/BPT trap: 5 $HTTPD "$

This is the same for multiple ports. The reccomended MAMP ports AND the regular apache ports.

MySQL starts perfectly fine.

Any suggestions?

like image 446
Toby Mellor Avatar asked Aug 08 '14 10:08

Toby Mellor


People also ask

How do I start Apache in MAMP?

To do this, navigate to MAMP > Preferences in the MAMP application menu: You can change the port used by Apache to avoid conflicts with Skype and other applications. Click on Ports at the top of the Preferences window, enter a new port for Apache, and click on OK to save the change.

What is the difference between MAMP and MAMP pro?

1 Correct answer. The main advantage of MAMP Pro is that it simplifies the process of setting up virtual hosts. There's no need to edit the hosts file, which is a hidden system file. Nor do you need to define the virtual host in an Apache conf file.


2 Answers

I updated to the latest version of yosemite last night.

You apparently have to go to your MAMP folder in Applications. Go to bin -> apache2 -> bin.

Then rename the file from envvars to _envvars.

I also came across another problem of it not working correctly. Make sure the ports are Apache defaults, NOT MAMP defaults (port 80 etc). If it works straight away, this should not apply to you.

like image 99
Toby Mellor Avatar answered Oct 05 '22 22:10

Toby Mellor


Installing the latest release of MAMP 3 Version 3.0.7.3 in my case seems to solve this issue.

like image 33
rii Avatar answered Oct 05 '22 22:10

rii