
My old Mac is dying and I had MAMP and NetBeans running perfectly on them, and now I have to switch to a newer Mac and migrate things over and after two days I cannot get anything working.
In the past, I took extensive notes and screenshots of the setup process, so when I had to upgrade things would be easy.
Unfortunately, what worked in the past with macOS Sierra, MAMP 5.7 and NetBeans 8.2 apparently doesn't work with Big Sur, MAMP 6.6 and NetBeans 12.5.
After installing everything yesterday, and updating all of my confi files, when I started up MAMP it seemed to be okay, but in the MAMP window I see
Then when I tried to load a test index.php page, I got some error in Firefox about the page being secure./Pradde/Programme/MAMP/Library/OpenSSL/certs/empty.crt
This seems like an Apache 2.4 issue, but I am ignorant to fixing OS/Apache issues.
There are so many files and places I configured things I am not sure where to begin to describe things.
Here are some environmental things you may wish to know...
private > etc > host
Code: Select all
##
# Host Database
#
# localhost is used to configure the loopback interface
# when the system is booting. Do not change this entry.
##
127.0.0.1 localhost
255.255.255.255 broadcasthost
::1 localhost
# Added 2021-11-13
127.0.0.1 local.mycompany
Applications > MAMP > bin > php php7.4.21 > conf
Code: Select all
A boatload of tweaks that I can't easily share here, but that have worked for years as I upgrade MAMP to never versions, so I assume this code is okay.
Nothing fancy, just mostly locking things down for security.
Applications > MAMP > conf > apache
Code: Select all
Again, lots of tweaks that always worked in years past up until now.
Some highlights...
ServerRoot "/Applications/MAMP/Library"
Listen 80
LoadModule rewrite_module modules/mod_rewrite.so
LoadModule php7_module /Applications/MAMP/bin/php/php7.4.21/modules/libphp7.so
# I added this in MAMP 5.7. Not sure why, because I use virtual hosts, but it didn't break anything so I left it.
DocumentRoot "/Users/user1/Documents/MyCompany/++htdocs/11-CompanyName/public_html"
<Directory />
Options Indexes FollowSymLinks
# Disabled 2018-12-24 @ 1942
# AllowOverride None
# Added 2018-12-24 @ 1942
AllowOverride All
</Directory>
# Added 2019-01-06 @ 14:09
<Directory "/Users/user1/Documents/MyCompany/++htdocs/11-CompanyName/public_html">
Options All
AllowOverride All
# Order allow,deny
# Allow from all
Require all granted
XSendFilePath "/Applications/MAMP/htdocs"
</Directory>
<IfModule dir_module>
# Updated 2019-01-06 @ 2036
DirectoryIndex index.php index.html
#DirectoryIndex index.html index.php
<IfModule perl_module>
DirectoryIndex index.pl
</IfModule>
<IfModule wsgi_module>
DirectoryIndex index.wsgi index.py
</IfModule>
</IfModule>
AccessFileName .htaccess
NameVirtualHost *
# Default
<VirtualHost *:80>
DocumentRoot "/Applications/MAMP/htdocs"
ServerName localhost
</VirtualHost>
# Added 2021-11-13 20:54
# 11-CompanyName
<VirtualHost *:80>
DocumentRoot "/Users/user1/Documents/MyCompany/++htdocs/11-CompanyName/public_html"
ServerName local.mycompany
</VirtualHost>
I am mega behind right now, and my old Mac is about dead, so I need to get a new development enviornment set up ASAP.
Would really appreciate help figuring out what is wrong, because I am clueless about operating systems and command line and Apache and config files.
I thought the screenshots and notes and templates I had to tweak things as I upgraded OS's, MAMP versions and NetBeans versions were perfect until now.


