Why won't Apache Server start in MAMP?
I'm trying to view php files locally on my mac.
I'm running Yosemite.
I have MAMP installed on my computer. When I press start the MySQL server starts but Apache doesn't. An error message appears saying 'Error. Apache couldn't be started. Please check your MAMP installation'
I've gone through the internet typing stuff into terminal and changing 'envvars' to '_envvars' but nothing works.
I reinstalled OSX and that worked but when I shut down the computer the problem occurs again.
Can anyone help?
Thanks
macos apache mamp
add a comment |
I'm trying to view php files locally on my mac.
I'm running Yosemite.
I have MAMP installed on my computer. When I press start the MySQL server starts but Apache doesn't. An error message appears saying 'Error. Apache couldn't be started. Please check your MAMP installation'
I've gone through the internet typing stuff into terminal and changing 'envvars' to '_envvars' but nothing works.
I reinstalled OSX and that worked but when I shut down the computer the problem occurs again.
Can anyone help?
Thanks
macos apache mamp
Last time I used MAMP was with Mavericks. Which version did you use?
– Thomas Kilian
Jan 31 '15 at 13:44
I'm having the same problem – OS X Yosemite 10.10.2 and MAMP PRO 2.1.1. There's a link here which describes the solution mentioned in the question (which also doesn't work for me): stackoverflow.com/questions/25139599/… I should also add that the apache error log file is empty, despite the error message saying, "Apache wasn't able to start. Please check log for more information."
– geoidesic
Feb 2 '15 at 19:18
2
If I try launch apache from the command line: "/Applications/MAMP/Library/bin/apachectl start" then I get the following error message: "httpd: Syntax error on line 132 of /Applications/MAMP/conf/apache/httpd.conf: Cannot load /Applications/MAMP/bin/php/php5.4.4/modules/libphp5.so into server: dlopen(/Applications/MAMP/bin/php/php5.4.4/modules/libphp5.so, 10): Library not loaded: /Applications/MAMP/Library/lib/libfreetype.6.dylibn Referenced from: /Applications/MAMP/bin/php/php5.4.4/modules/libphp5.son Reason: image not found"
– geoidesic
Feb 2 '15 at 19:40
add a comment |
I'm trying to view php files locally on my mac.
I'm running Yosemite.
I have MAMP installed on my computer. When I press start the MySQL server starts but Apache doesn't. An error message appears saying 'Error. Apache couldn't be started. Please check your MAMP installation'
I've gone through the internet typing stuff into terminal and changing 'envvars' to '_envvars' but nothing works.
I reinstalled OSX and that worked but when I shut down the computer the problem occurs again.
Can anyone help?
Thanks
macos apache mamp
I'm trying to view php files locally on my mac.
I'm running Yosemite.
I have MAMP installed on my computer. When I press start the MySQL server starts but Apache doesn't. An error message appears saying 'Error. Apache couldn't be started. Please check your MAMP installation'
I've gone through the internet typing stuff into terminal and changing 'envvars' to '_envvars' but nothing works.
I reinstalled OSX and that worked but when I shut down the computer the problem occurs again.
Can anyone help?
Thanks
macos apache mamp
macos apache mamp
asked Jan 31 '15 at 13:28
Apache9019Apache9019
116114
116114
Last time I used MAMP was with Mavericks. Which version did you use?
– Thomas Kilian
Jan 31 '15 at 13:44
I'm having the same problem – OS X Yosemite 10.10.2 and MAMP PRO 2.1.1. There's a link here which describes the solution mentioned in the question (which also doesn't work for me): stackoverflow.com/questions/25139599/… I should also add that the apache error log file is empty, despite the error message saying, "Apache wasn't able to start. Please check log for more information."
– geoidesic
Feb 2 '15 at 19:18
2
If I try launch apache from the command line: "/Applications/MAMP/Library/bin/apachectl start" then I get the following error message: "httpd: Syntax error on line 132 of /Applications/MAMP/conf/apache/httpd.conf: Cannot load /Applications/MAMP/bin/php/php5.4.4/modules/libphp5.so into server: dlopen(/Applications/MAMP/bin/php/php5.4.4/modules/libphp5.so, 10): Library not loaded: /Applications/MAMP/Library/lib/libfreetype.6.dylibn Referenced from: /Applications/MAMP/bin/php/php5.4.4/modules/libphp5.son Reason: image not found"
– geoidesic
Feb 2 '15 at 19:40
add a comment |
Last time I used MAMP was with Mavericks. Which version did you use?
– Thomas Kilian
Jan 31 '15 at 13:44
I'm having the same problem – OS X Yosemite 10.10.2 and MAMP PRO 2.1.1. There's a link here which describes the solution mentioned in the question (which also doesn't work for me): stackoverflow.com/questions/25139599/… I should also add that the apache error log file is empty, despite the error message saying, "Apache wasn't able to start. Please check log for more information."
– geoidesic
Feb 2 '15 at 19:18
2
If I try launch apache from the command line: "/Applications/MAMP/Library/bin/apachectl start" then I get the following error message: "httpd: Syntax error on line 132 of /Applications/MAMP/conf/apache/httpd.conf: Cannot load /Applications/MAMP/bin/php/php5.4.4/modules/libphp5.so into server: dlopen(/Applications/MAMP/bin/php/php5.4.4/modules/libphp5.so, 10): Library not loaded: /Applications/MAMP/Library/lib/libfreetype.6.dylibn Referenced from: /Applications/MAMP/bin/php/php5.4.4/modules/libphp5.son Reason: image not found"
– geoidesic
Feb 2 '15 at 19:40
Last time I used MAMP was with Mavericks. Which version did you use?
– Thomas Kilian
Jan 31 '15 at 13:44
Last time I used MAMP was with Mavericks. Which version did you use?
– Thomas Kilian
Jan 31 '15 at 13:44
I'm having the same problem – OS X Yosemite 10.10.2 and MAMP PRO 2.1.1. There's a link here which describes the solution mentioned in the question (which also doesn't work for me): stackoverflow.com/questions/25139599/… I should also add that the apache error log file is empty, despite the error message saying, "Apache wasn't able to start. Please check log for more information."
– geoidesic
Feb 2 '15 at 19:18
I'm having the same problem – OS X Yosemite 10.10.2 and MAMP PRO 2.1.1. There's a link here which describes the solution mentioned in the question (which also doesn't work for me): stackoverflow.com/questions/25139599/… I should also add that the apache error log file is empty, despite the error message saying, "Apache wasn't able to start. Please check log for more information."
– geoidesic
Feb 2 '15 at 19:18
2
2
If I try launch apache from the command line: "/Applications/MAMP/Library/bin/apachectl start" then I get the following error message: "httpd: Syntax error on line 132 of /Applications/MAMP/conf/apache/httpd.conf: Cannot load /Applications/MAMP/bin/php/php5.4.4/modules/libphp5.so into server: dlopen(/Applications/MAMP/bin/php/php5.4.4/modules/libphp5.so, 10): Library not loaded: /Applications/MAMP/Library/lib/libfreetype.6.dylibn Referenced from: /Applications/MAMP/bin/php/php5.4.4/modules/libphp5.son Reason: image not found"
– geoidesic
Feb 2 '15 at 19:40
If I try launch apache from the command line: "/Applications/MAMP/Library/bin/apachectl start" then I get the following error message: "httpd: Syntax error on line 132 of /Applications/MAMP/conf/apache/httpd.conf: Cannot load /Applications/MAMP/bin/php/php5.4.4/modules/libphp5.so into server: dlopen(/Applications/MAMP/bin/php/php5.4.4/modules/libphp5.so, 10): Library not loaded: /Applications/MAMP/Library/lib/libfreetype.6.dylibn Referenced from: /Applications/MAMP/bin/php/php5.4.4/modules/libphp5.son Reason: image not found"
– geoidesic
Feb 2 '15 at 19:40
add a comment |
11 Answers
11
active
oldest
votes
Check if you changed the Document Root Location or Renamed it. At least this was my mistake.
MAMP > Preferences > Web Server > Document Root
2
I know this is an old question but I experienced this issue today running Sierra and it was imply that my document root was no longer a folder so this fixed my issue!
– Eli Nathan
Feb 9 '17 at 12:36
add a comment |
I didn't get it working with port 8000 or the default 8888, but did get it working with port 80 per the suggestion here:
http://forums.macrumors.com/showthread.php?t=1744944
That didn't work after all, but it didn't error out. However I manually ran the following at the command line (because log file was empty):
sudo /Applications/MAMP/Library/bin/apachectl start
Only to find that after upgrading I was missing the mod_example.so
httpd: Syntax error on line 83 of /Applications/MAMP/conf/apache/httpd.conf: Cannot load /Applications/MAMP/Library/modules/mod_example.so into server: dlopen(/Applications/MAMP/Library/modules/mod_example.so, 10): image not found
Copied it from my old install and I was good to go.
1
this helped me to diagnose a hardcoded value in my httpd.conf that was referencing an old version of php that no longer existed. Updated that line and things started working again
– haxxxton
Aug 5 '16 at 0:59
Just updated to macOS Sierra, and running your first command highlighted an error in my httpd.conf as well, as it did for @haxxxton. Thanks!
– Design by Adrian
Sep 22 '16 at 10:42
add a comment |
Had the same problem, nothing in the logs. After trying the_dillio's suggestion:
sudo /Applications/MAMP/Library/bin/apachectl start
I got an error that pointed back to my vhosts file. It turns out I had an extra /VirtualHost tag. Removed it and it started working again.
add a comment |
Also be aware that if you by any chance deleted the folder that was set as Document Root the last time you were using MAMP, you will get this error. Simply open MAMP again, change Document Root to a location that does exist and start the servers.
1
yep, that was it. In my case, I had set an incorrect 'CustomLog' and 'ErrorLog' path. Cheers!
– Pepijn Olivier
Aug 8 '17 at 14:35
add a comment |
I think I've found the solution.
It was the wrong port. I altered the .conf file in the Apache folder. I changed all instances of port 8888 to 8000. When I run MAMP now it all seems to work fine.
Thanks for your help
add a comment |
If you try to start the server from the terminal, likely that will tell you what is wrong e.g.
$ sudo /Applications/MAMP/bin/startApache.sh
Password:
(48)Address already in use: make_sock: could not bind to address [::]:8888
(48)Address already in use: make_sock: could not bind to address 0.0.0.0:8888
no listening sockets available, shutting down
Unable to open logs
In this case, I was inadvertently running a Blockstack browser out of 8888, so changing MAMP to 8887 allowed it to start. [Your mistake might be different.]
add a comment |
I received the same error but interestingly it was caused simply because I renamed the root folder and didn't realize it. Sounds like you have a different issue but for anyone else who gets this error message, make sure you haven't renamed the root!
add a comment |
I had this experience when upgrading to V4. It tried to used the files from my previous installation and it just never worked. The workaround was to RENAME the original MAMP installation to something different than "MAMP", install brand new version and then copy files you may need like VHOST configs and DATABASES. After all this it worked just fine.
add a comment |
My Apache server problem arose after I enabled SSL on my server and tried a stack overflow suggested Terminal command (eek). So if this is your problem, check your https-ssl.conf file (Applications -> Mamp -> conf -> apache -> extra). The Document Root under the Virtual Host settings had a different file path for htdocs than where it was actually located (easily overlooked on the fly). I changed this to "/Applications/MAMP/htdocs" and presto, problem solved. Perhaps also check Document Root in your https.conf file (Applications -> Mamp -> conf -> apache) to see if it has the correct file path to htdocs too.
add a comment |
Absolutely bizarre behavior for MAMP PRO (paid license too btw...)
In my case I had to change the location of the log file in order to get it to work...
Click on Mysql icon then the little folder to the right of the path and try changing it to something else.
add a comment |
i've solved this issue using this command in the terminal :
sudo apachectl stop
add a comment |
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f28252124%2fwhy-wont-apache-server-start-in-mamp%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
11 Answers
11
active
oldest
votes
11 Answers
11
active
oldest
votes
active
oldest
votes
active
oldest
votes
Check if you changed the Document Root Location or Renamed it. At least this was my mistake.
MAMP > Preferences > Web Server > Document Root
2
I know this is an old question but I experienced this issue today running Sierra and it was imply that my document root was no longer a folder so this fixed my issue!
– Eli Nathan
Feb 9 '17 at 12:36
add a comment |
Check if you changed the Document Root Location or Renamed it. At least this was my mistake.
MAMP > Preferences > Web Server > Document Root
2
I know this is an old question but I experienced this issue today running Sierra and it was imply that my document root was no longer a folder so this fixed my issue!
– Eli Nathan
Feb 9 '17 at 12:36
add a comment |
Check if you changed the Document Root Location or Renamed it. At least this was my mistake.
MAMP > Preferences > Web Server > Document Root
Check if you changed the Document Root Location or Renamed it. At least this was my mistake.
MAMP > Preferences > Web Server > Document Root
edited Apr 27 '16 at 7:06
answered Nov 13 '15 at 0:06
Victor RiusVictor Rius
2,53611221
2,53611221
2
I know this is an old question but I experienced this issue today running Sierra and it was imply that my document root was no longer a folder so this fixed my issue!
– Eli Nathan
Feb 9 '17 at 12:36
add a comment |
2
I know this is an old question but I experienced this issue today running Sierra and it was imply that my document root was no longer a folder so this fixed my issue!
– Eli Nathan
Feb 9 '17 at 12:36
2
2
I know this is an old question but I experienced this issue today running Sierra and it was imply that my document root was no longer a folder so this fixed my issue!
– Eli Nathan
Feb 9 '17 at 12:36
I know this is an old question but I experienced this issue today running Sierra and it was imply that my document root was no longer a folder so this fixed my issue!
– Eli Nathan
Feb 9 '17 at 12:36
add a comment |
I didn't get it working with port 8000 or the default 8888, but did get it working with port 80 per the suggestion here:
http://forums.macrumors.com/showthread.php?t=1744944
That didn't work after all, but it didn't error out. However I manually ran the following at the command line (because log file was empty):
sudo /Applications/MAMP/Library/bin/apachectl start
Only to find that after upgrading I was missing the mod_example.so
httpd: Syntax error on line 83 of /Applications/MAMP/conf/apache/httpd.conf: Cannot load /Applications/MAMP/Library/modules/mod_example.so into server: dlopen(/Applications/MAMP/Library/modules/mod_example.so, 10): image not found
Copied it from my old install and I was good to go.
1
this helped me to diagnose a hardcoded value in my httpd.conf that was referencing an old version of php that no longer existed. Updated that line and things started working again
– haxxxton
Aug 5 '16 at 0:59
Just updated to macOS Sierra, and running your first command highlighted an error in my httpd.conf as well, as it did for @haxxxton. Thanks!
– Design by Adrian
Sep 22 '16 at 10:42
add a comment |
I didn't get it working with port 8000 or the default 8888, but did get it working with port 80 per the suggestion here:
http://forums.macrumors.com/showthread.php?t=1744944
That didn't work after all, but it didn't error out. However I manually ran the following at the command line (because log file was empty):
sudo /Applications/MAMP/Library/bin/apachectl start
Only to find that after upgrading I was missing the mod_example.so
httpd: Syntax error on line 83 of /Applications/MAMP/conf/apache/httpd.conf: Cannot load /Applications/MAMP/Library/modules/mod_example.so into server: dlopen(/Applications/MAMP/Library/modules/mod_example.so, 10): image not found
Copied it from my old install and I was good to go.
1
this helped me to diagnose a hardcoded value in my httpd.conf that was referencing an old version of php that no longer existed. Updated that line and things started working again
– haxxxton
Aug 5 '16 at 0:59
Just updated to macOS Sierra, and running your first command highlighted an error in my httpd.conf as well, as it did for @haxxxton. Thanks!
– Design by Adrian
Sep 22 '16 at 10:42
add a comment |
I didn't get it working with port 8000 or the default 8888, but did get it working with port 80 per the suggestion here:
http://forums.macrumors.com/showthread.php?t=1744944
That didn't work after all, but it didn't error out. However I manually ran the following at the command line (because log file was empty):
sudo /Applications/MAMP/Library/bin/apachectl start
Only to find that after upgrading I was missing the mod_example.so
httpd: Syntax error on line 83 of /Applications/MAMP/conf/apache/httpd.conf: Cannot load /Applications/MAMP/Library/modules/mod_example.so into server: dlopen(/Applications/MAMP/Library/modules/mod_example.so, 10): image not found
Copied it from my old install and I was good to go.
I didn't get it working with port 8000 or the default 8888, but did get it working with port 80 per the suggestion here:
http://forums.macrumors.com/showthread.php?t=1744944
That didn't work after all, but it didn't error out. However I manually ran the following at the command line (because log file was empty):
sudo /Applications/MAMP/Library/bin/apachectl start
Only to find that after upgrading I was missing the mod_example.so
httpd: Syntax error on line 83 of /Applications/MAMP/conf/apache/httpd.conf: Cannot load /Applications/MAMP/Library/modules/mod_example.so into server: dlopen(/Applications/MAMP/Library/modules/mod_example.so, 10): image not found
Copied it from my old install and I was good to go.
edited Apr 8 '15 at 19:14
answered Apr 8 '15 at 18:43
the_dilliothe_dillio
35438
35438
1
this helped me to diagnose a hardcoded value in my httpd.conf that was referencing an old version of php that no longer existed. Updated that line and things started working again
– haxxxton
Aug 5 '16 at 0:59
Just updated to macOS Sierra, and running your first command highlighted an error in my httpd.conf as well, as it did for @haxxxton. Thanks!
– Design by Adrian
Sep 22 '16 at 10:42
add a comment |
1
this helped me to diagnose a hardcoded value in my httpd.conf that was referencing an old version of php that no longer existed. Updated that line and things started working again
– haxxxton
Aug 5 '16 at 0:59
Just updated to macOS Sierra, and running your first command highlighted an error in my httpd.conf as well, as it did for @haxxxton. Thanks!
– Design by Adrian
Sep 22 '16 at 10:42
1
1
this helped me to diagnose a hardcoded value in my httpd.conf that was referencing an old version of php that no longer existed. Updated that line and things started working again
– haxxxton
Aug 5 '16 at 0:59
this helped me to diagnose a hardcoded value in my httpd.conf that was referencing an old version of php that no longer existed. Updated that line and things started working again
– haxxxton
Aug 5 '16 at 0:59
Just updated to macOS Sierra, and running your first command highlighted an error in my httpd.conf as well, as it did for @haxxxton. Thanks!
– Design by Adrian
Sep 22 '16 at 10:42
Just updated to macOS Sierra, and running your first command highlighted an error in my httpd.conf as well, as it did for @haxxxton. Thanks!
– Design by Adrian
Sep 22 '16 at 10:42
add a comment |
Had the same problem, nothing in the logs. After trying the_dillio's suggestion:
sudo /Applications/MAMP/Library/bin/apachectl start
I got an error that pointed back to my vhosts file. It turns out I had an extra /VirtualHost tag. Removed it and it started working again.
add a comment |
Had the same problem, nothing in the logs. After trying the_dillio's suggestion:
sudo /Applications/MAMP/Library/bin/apachectl start
I got an error that pointed back to my vhosts file. It turns out I had an extra /VirtualHost tag. Removed it and it started working again.
add a comment |
Had the same problem, nothing in the logs. After trying the_dillio's suggestion:
sudo /Applications/MAMP/Library/bin/apachectl start
I got an error that pointed back to my vhosts file. It turns out I had an extra /VirtualHost tag. Removed it and it started working again.
Had the same problem, nothing in the logs. After trying the_dillio's suggestion:
sudo /Applications/MAMP/Library/bin/apachectl start
I got an error that pointed back to my vhosts file. It turns out I had an extra /VirtualHost tag. Removed it and it started working again.
answered Jun 10 '15 at 10:14
CipherCipher
11617
11617
add a comment |
add a comment |
Also be aware that if you by any chance deleted the folder that was set as Document Root the last time you were using MAMP, you will get this error. Simply open MAMP again, change Document Root to a location that does exist and start the servers.
1
yep, that was it. In my case, I had set an incorrect 'CustomLog' and 'ErrorLog' path. Cheers!
– Pepijn Olivier
Aug 8 '17 at 14:35
add a comment |
Also be aware that if you by any chance deleted the folder that was set as Document Root the last time you were using MAMP, you will get this error. Simply open MAMP again, change Document Root to a location that does exist and start the servers.
1
yep, that was it. In my case, I had set an incorrect 'CustomLog' and 'ErrorLog' path. Cheers!
– Pepijn Olivier
Aug 8 '17 at 14:35
add a comment |
Also be aware that if you by any chance deleted the folder that was set as Document Root the last time you were using MAMP, you will get this error. Simply open MAMP again, change Document Root to a location that does exist and start the servers.
Also be aware that if you by any chance deleted the folder that was set as Document Root the last time you were using MAMP, you will get this error. Simply open MAMP again, change Document Root to a location that does exist and start the servers.
answered Apr 26 '17 at 21:58
Alen ŠimunicAlen Šimunic
389314
389314
1
yep, that was it. In my case, I had set an incorrect 'CustomLog' and 'ErrorLog' path. Cheers!
– Pepijn Olivier
Aug 8 '17 at 14:35
add a comment |
1
yep, that was it. In my case, I had set an incorrect 'CustomLog' and 'ErrorLog' path. Cheers!
– Pepijn Olivier
Aug 8 '17 at 14:35
1
1
yep, that was it. In my case, I had set an incorrect 'CustomLog' and 'ErrorLog' path. Cheers!
– Pepijn Olivier
Aug 8 '17 at 14:35
yep, that was it. In my case, I had set an incorrect 'CustomLog' and 'ErrorLog' path. Cheers!
– Pepijn Olivier
Aug 8 '17 at 14:35
add a comment |
I think I've found the solution.
It was the wrong port. I altered the .conf file in the Apache folder. I changed all instances of port 8888 to 8000. When I run MAMP now it all seems to work fine.
Thanks for your help
add a comment |
I think I've found the solution.
It was the wrong port. I altered the .conf file in the Apache folder. I changed all instances of port 8888 to 8000. When I run MAMP now it all seems to work fine.
Thanks for your help
add a comment |
I think I've found the solution.
It was the wrong port. I altered the .conf file in the Apache folder. I changed all instances of port 8888 to 8000. When I run MAMP now it all seems to work fine.
Thanks for your help
I think I've found the solution.
It was the wrong port. I altered the .conf file in the Apache folder. I changed all instances of port 8888 to 8000. When I run MAMP now it all seems to work fine.
Thanks for your help
answered Feb 3 '15 at 20:03
Apache9019Apache9019
116114
116114
add a comment |
add a comment |
If you try to start the server from the terminal, likely that will tell you what is wrong e.g.
$ sudo /Applications/MAMP/bin/startApache.sh
Password:
(48)Address already in use: make_sock: could not bind to address [::]:8888
(48)Address already in use: make_sock: could not bind to address 0.0.0.0:8888
no listening sockets available, shutting down
Unable to open logs
In this case, I was inadvertently running a Blockstack browser out of 8888, so changing MAMP to 8887 allowed it to start. [Your mistake might be different.]
add a comment |
If you try to start the server from the terminal, likely that will tell you what is wrong e.g.
$ sudo /Applications/MAMP/bin/startApache.sh
Password:
(48)Address already in use: make_sock: could not bind to address [::]:8888
(48)Address already in use: make_sock: could not bind to address 0.0.0.0:8888
no listening sockets available, shutting down
Unable to open logs
In this case, I was inadvertently running a Blockstack browser out of 8888, so changing MAMP to 8887 allowed it to start. [Your mistake might be different.]
add a comment |
If you try to start the server from the terminal, likely that will tell you what is wrong e.g.
$ sudo /Applications/MAMP/bin/startApache.sh
Password:
(48)Address already in use: make_sock: could not bind to address [::]:8888
(48)Address already in use: make_sock: could not bind to address 0.0.0.0:8888
no listening sockets available, shutting down
Unable to open logs
In this case, I was inadvertently running a Blockstack browser out of 8888, so changing MAMP to 8887 allowed it to start. [Your mistake might be different.]
If you try to start the server from the terminal, likely that will tell you what is wrong e.g.
$ sudo /Applications/MAMP/bin/startApache.sh
Password:
(48)Address already in use: make_sock: could not bind to address [::]:8888
(48)Address already in use: make_sock: could not bind to address 0.0.0.0:8888
no listening sockets available, shutting down
Unable to open logs
In this case, I was inadvertently running a Blockstack browser out of 8888, so changing MAMP to 8887 allowed it to start. [Your mistake might be different.]
answered Mar 8 '18 at 16:30
Martin FrickéMartin Frické
211
211
add a comment |
add a comment |
I received the same error but interestingly it was caused simply because I renamed the root folder and didn't realize it. Sounds like you have a different issue but for anyone else who gets this error message, make sure you haven't renamed the root!
add a comment |
I received the same error but interestingly it was caused simply because I renamed the root folder and didn't realize it. Sounds like you have a different issue but for anyone else who gets this error message, make sure you haven't renamed the root!
add a comment |
I received the same error but interestingly it was caused simply because I renamed the root folder and didn't realize it. Sounds like you have a different issue but for anyone else who gets this error message, make sure you haven't renamed the root!
I received the same error but interestingly it was caused simply because I renamed the root folder and didn't realize it. Sounds like you have a different issue but for anyone else who gets this error message, make sure you haven't renamed the root!
answered Jul 3 '15 at 13:26
Rob CastellucciRob Castellucci
162
162
add a comment |
add a comment |
I had this experience when upgrading to V4. It tried to used the files from my previous installation and it just never worked. The workaround was to RENAME the original MAMP installation to something different than "MAMP", install brand new version and then copy files you may need like VHOST configs and DATABASES. After all this it worked just fine.
add a comment |
I had this experience when upgrading to V4. It tried to used the files from my previous installation and it just never worked. The workaround was to RENAME the original MAMP installation to something different than "MAMP", install brand new version and then copy files you may need like VHOST configs and DATABASES. After all this it worked just fine.
add a comment |
I had this experience when upgrading to V4. It tried to used the files from my previous installation and it just never worked. The workaround was to RENAME the original MAMP installation to something different than "MAMP", install brand new version and then copy files you may need like VHOST configs and DATABASES. After all this it worked just fine.
I had this experience when upgrading to V4. It tried to used the files from my previous installation and it just never worked. The workaround was to RENAME the original MAMP installation to something different than "MAMP", install brand new version and then copy files you may need like VHOST configs and DATABASES. After all this it worked just fine.
answered Oct 2 '16 at 15:52
pdolinajpdolinaj
801915
801915
add a comment |
add a comment |
My Apache server problem arose after I enabled SSL on my server and tried a stack overflow suggested Terminal command (eek). So if this is your problem, check your https-ssl.conf file (Applications -> Mamp -> conf -> apache -> extra). The Document Root under the Virtual Host settings had a different file path for htdocs than where it was actually located (easily overlooked on the fly). I changed this to "/Applications/MAMP/htdocs" and presto, problem solved. Perhaps also check Document Root in your https.conf file (Applications -> Mamp -> conf -> apache) to see if it has the correct file path to htdocs too.
add a comment |
My Apache server problem arose after I enabled SSL on my server and tried a stack overflow suggested Terminal command (eek). So if this is your problem, check your https-ssl.conf file (Applications -> Mamp -> conf -> apache -> extra). The Document Root under the Virtual Host settings had a different file path for htdocs than where it was actually located (easily overlooked on the fly). I changed this to "/Applications/MAMP/htdocs" and presto, problem solved. Perhaps also check Document Root in your https.conf file (Applications -> Mamp -> conf -> apache) to see if it has the correct file path to htdocs too.
add a comment |
My Apache server problem arose after I enabled SSL on my server and tried a stack overflow suggested Terminal command (eek). So if this is your problem, check your https-ssl.conf file (Applications -> Mamp -> conf -> apache -> extra). The Document Root under the Virtual Host settings had a different file path for htdocs than where it was actually located (easily overlooked on the fly). I changed this to "/Applications/MAMP/htdocs" and presto, problem solved. Perhaps also check Document Root in your https.conf file (Applications -> Mamp -> conf -> apache) to see if it has the correct file path to htdocs too.
My Apache server problem arose after I enabled SSL on my server and tried a stack overflow suggested Terminal command (eek). So if this is your problem, check your https-ssl.conf file (Applications -> Mamp -> conf -> apache -> extra). The Document Root under the Virtual Host settings had a different file path for htdocs than where it was actually located (easily overlooked on the fly). I changed this to "/Applications/MAMP/htdocs" and presto, problem solved. Perhaps also check Document Root in your https.conf file (Applications -> Mamp -> conf -> apache) to see if it has the correct file path to htdocs too.
answered Nov 5 '17 at 7:59
elarcoiriselarcoiris
500512
500512
add a comment |
add a comment |
Absolutely bizarre behavior for MAMP PRO (paid license too btw...)
In my case I had to change the location of the log file in order to get it to work...
Click on Mysql icon then the little folder to the right of the path and try changing it to something else.
add a comment |
Absolutely bizarre behavior for MAMP PRO (paid license too btw...)
In my case I had to change the location of the log file in order to get it to work...
Click on Mysql icon then the little folder to the right of the path and try changing it to something else.
add a comment |
Absolutely bizarre behavior for MAMP PRO (paid license too btw...)
In my case I had to change the location of the log file in order to get it to work...
Click on Mysql icon then the little folder to the right of the path and try changing it to something else.
Absolutely bizarre behavior for MAMP PRO (paid license too btw...)
In my case I had to change the location of the log file in order to get it to work...
Click on Mysql icon then the little folder to the right of the path and try changing it to something else.
answered Nov 23 '18 at 18:19
Robert SinclairRobert Sinclair
1,4631120
1,4631120
add a comment |
add a comment |
i've solved this issue using this command in the terminal :
sudo apachectl stop
add a comment |
i've solved this issue using this command in the terminal :
sudo apachectl stop
add a comment |
i've solved this issue using this command in the terminal :
sudo apachectl stop
i've solved this issue using this command in the terminal :
sudo apachectl stop
answered Jan 28 at 11:25
mehdigrichemehdigriche
65117
65117
add a comment |
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f28252124%2fwhy-wont-apache-server-start-in-mamp%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Last time I used MAMP was with Mavericks. Which version did you use?
– Thomas Kilian
Jan 31 '15 at 13:44
I'm having the same problem – OS X Yosemite 10.10.2 and MAMP PRO 2.1.1. There's a link here which describes the solution mentioned in the question (which also doesn't work for me): stackoverflow.com/questions/25139599/… I should also add that the apache error log file is empty, despite the error message saying, "Apache wasn't able to start. Please check log for more information."
– geoidesic
Feb 2 '15 at 19:18
2
If I try launch apache from the command line: "/Applications/MAMP/Library/bin/apachectl start" then I get the following error message: "httpd: Syntax error on line 132 of /Applications/MAMP/conf/apache/httpd.conf: Cannot load /Applications/MAMP/bin/php/php5.4.4/modules/libphp5.so into server: dlopen(/Applications/MAMP/bin/php/php5.4.4/modules/libphp5.so, 10): Library not loaded: /Applications/MAMP/Library/lib/libfreetype.6.dylibn Referenced from: /Applications/MAMP/bin/php/php5.4.4/modules/libphp5.son Reason: image not found"
– geoidesic
Feb 2 '15 at 19:40