johansatge / pawnee

🪶 An Apache GUI for OSX.
MIT License
94 stars 14 forks source link

Server Error macOS Sierra #8

Open tyrollins opened 7 years ago

tyrollins commented 7 years ago

Hey There. Interested in this project, I tried to run it on my machine iMac with macOS Sierra and ran into the following error...

AH00557: httpd: apr_sockaddr_info_get() failed for Tylers-iMac.local AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1. Set the 'ServerName' directive globally to suppress this message Syntax OK

Additionally, do you know how one would save the sudo password, so it does not need to be entered each time using the application? Im not well versed with apache, and only novice JS.

Cheers.

johansatge commented 7 years ago

Hi,

thanks for your feedback!

About your error, I'd say it comes from your Apache configuration (/etc/apache2/httpd.conf). Did you set a ServerName?

(That being said, it is only a warning. The server should work.)


Additionally, do you know how one would save the sudo password

When I developed the app, I tried that approach (setting the password in the keychain and then requesting it from the CLI), but that was not clean IMO (the user has to manually setup the password the first time) - so I abandoned the idea.

Actually I'm not proud of the current code, because with that method, the password is probably available somewhere in the memory, unencrypted... A cleaner way would be to use the native OSX dialog (the one below), but I have no idea how to achieve that from NW.js.

image