My environment is Ubuntu 18.10. It is a new installation, no firewall or processes that run on Glassfish ports.
I installed Glassfish 5 on the server. Java 8, because Glassfish doesn't support any newer. And when I tried to access my config page, of course it gave me a "Secure Admin must be enabled to access the DAS remotely".
Then I proceed to change my admin password with the following commands:
./asadmin start-domain
./asadmin change-admin-password
- I entered my password and retype it =>
"Command change-admin-password executed successfully."
./asadmin enable-secure-admin
=>
"You must restart all running servers for the change in secure admin to take effect. Command enable-secure-admin executed successfully."
./asadmin stop-domain
./asadmin start-domain
That is it and it should work. My server is running, I can access my main Glassfish page, but when I'm trying to access the config page it says it didn't find any page with that port.
Any help would be appreciated. I'm struggling with this simple installation.
Based on the exception you posted in your comment, you are hitting a known issue with GlassFish 5.0 and Java versions higher than 8u161.
from the last time I answered this problem:
The solution to this is to downgrade your version of Java to a version below 8u161.
I answered this in more detail in another answer but, if you do not like the idea of downgrading Java, you could either use the latest GlassFish 5.0.1 nightly or switch to Payara 5, which is derived from GlassFish and should work the same in most cases.
Edit: Note that, after making one of these changes, you will still need to add a security exception so that your browser accepts the self-signed certificate, but the page should work with no further issues; I verified this myself with Java 8u144