Softaculous


Topic : Ampps 3.9 on macOS Catalina - Apache won't start


Posted By: luizhop on April 24, 2020, 1:44 pm
Hi,

I recently updated to macOS Catalina and, as Ampps 3.8 is not supported on that new version of OS, I needed to update to Ampps 3.9.

Initially everything worked fine, but the problems started when I added a domain to be used as virtual host. I checked the box to add an SSL record to be used for that domain, then got an error: 'Cert File was not created due to unknown reason'. So I tried again unchecking the SSL box and it worked, the domain was created.

When I restarted the computer the Apache wouldn't start, so I debugged running "/Applications/AMPPS/apache/bin/httpd" command on terminal, and was getting the following errors from file "/Applications/Ampps/apache/conf/extra/httpd-vhosts.conf", all related to SSL:

  • line 25: cannot define multiple Listeners on the same IP:port (so the port 443 was already being used)
  • line 53: file '/Applications/Ampps/apache/conf/ssl_crt/server.crt' does not exist or is empty
  • line 54: file '/Applications/Ampps/apache/conf/ssl_key/server.key' does not exist or is empty
Tried to comment those lines, but when creating a new domain Ampps would rewrite that file, so I would lose the editing made. So the solution I found was:
  • On file '/Applications/Ampps/apache/conf/httpd.conf' comment the line 'Include conf/extra/httpd-ssl.conf' as the content of this file (not exactly but very similar) was already being loaded from the Ampps auto-generated file '/Applications/Ampps/apache/conf/extra/httpd-vhosts.conf'
  • Duplicate the file '/Applications/Ampps/apache/conf/ssl_crt/localhost.crt' and rename it to 'server.crt', as this is the name that Ampps auto-generated file tries to load
  • Duplicate the file '/Applications/Ampps/apache/conf/ssl_key/localhost.key' and rename it to 'server.key', as this is the name that Ampps auto-generated file tries to load


Hope this can help people facing the same issues.

Posted By: ishpifuri on May 3, 2020, 2:12 pm | Post: 1
Thank you very much, worked like a charm.

Posted By: jamesc on June 6, 2020, 11:31 pm | Post: 2
working good for me after apache won't start after added a new domain

Posted By: mrajasays on July 29, 2020, 2:20 am | Post: 3
You are a legend!

Posted By: amisalabir on September 26, 2020, 9:09 am | Post: 4
Great ! you are the boss. Thank you very much. I got solved my problem with your instruction. Much appreciation for you.

Powered By AEF 1.0.8 © 2007-2008 Electron Inc.