Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mac Sonoma DerbyNet 9.0 cannot start Apache #339

Open
srozga opened this issue Aug 13, 2024 · 4 comments
Open

Mac Sonoma DerbyNet 9.0 cannot start Apache #339

srozga opened this issue Aug 13, 2024 · 4 comments

Comments

@srozga
Copy link

srozga commented Aug 13, 2024

I am trying to start DerbyNet 9.0 on a Mac using MAMP. I kept getting the cannot start Apache error.
image

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.
image

I commented the SSL virtual host out and although configtest was successful, I still cannot start Apache via MAMP.

@srozga
Copy link
Author

srozga commented Aug 13, 2024

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.

@jeffpiazza
Copy link
Owner

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.

@srozga
Copy link
Author

srozga commented Aug 18, 2024

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.

@srozga
Copy link
Author

srozga commented Aug 19, 2024

@jeffpiazza docker was super easy to get going. I'll run there. Thanks for your support.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants