Group: Member
Post Group: Newbie
Posts: 1
Status:
|
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.
|