Mac Sonoma DerbyNet 9.0 cannot start Apache
I am trying to start DerbyNet 9.0 on a Mac using MAMP. I kept getting the cannot start Apache error.
I tried apachectl stop and ensuring apache wasn't running but same thing.
I don't think this is related but I tried apachectl configtest and I received this error.
AH00526: Syntax error on line 18 of /private/etc/apache2/derbynet/derbynet.conf:
SSLCertificateFile: file '/private/etc/apache2/derbynet/derbynet.crt' does not exist or is empty
The file contents are:
Listen 443
<VirtualHost *:443>
ServerName D7Y9TFGQ6V
ServerAlias localhost
SSLEngine on
SSLCipherSuite ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL
SSLCertificateFile /private/etc/apache2/derbynet/derbynet.crt
SSLCertificateKeyFile /private/etc/apache2/derbynet/derbynet.key
</VirtualHost>
Listing the /private/etc/apache2/derbynet dir shows the conf, key and pub files, but not the crt.
I commented the SSL virtual host out and although configtest was successful, I still cannot start Apache via MAMP.
I saw this error in the apache logs:
/Applications/MAMP/fcgi-bin/php.fcgi: line 4: /Applications/MAMP/bin/php/php8.3.1/bin/php-cgi: No such file or directory
Saw this thread https://stackoverflow.com/questions/78829299/mamp-7-upgrade-apache-couldnt-be-started-but-runs-ok-from-terminal-symlinks. Powered up MAMP Pro for it to do its thing and then I'm able to launch Apache using MAMP. However, when I go to localhost I get a 500 Internal Server Error. If i try to go directly to localhost/setup.php, I get redirected to http://localhost/login.php but it's still a 500 Internal Server Error.
I just tried reproducing this by installing the latest MAMP, and I couldn't get MAMP to start at all (Mac with arm processor). fastcgi files that are symbolic links to non-existent /Users/mamp files, seriously?
Maybe this is their business strategy, hoping to drive users to pay for MAMP Pro (they certainly advertise it enough).
I guess I'll have to start looking for alternatives.
srozga in the interim, consider using Docker: https://derbynet.org/builds/docs/Installation-%20Docker.pdf This is how I normally run DerbyNet, if that makes any difference to you.
Thanks for the confirmation my local Mac setup is likely not the issue. I’ll give docker a whirl and report back. Windows worked perfectly for me.
@jeffpiazza docker was super easy to get going. I'll run there. Thanks for your support.