Running gekko on a ubuntu server with apache
#9
i tried to set this up on AWS EC2 everything seemed to work but at the last step when i try to set username and PW i get this error:

Quote:printf "username:`openssl passwd -apr1`\n" >> /etc/nginx/.htpasswd
Password:
Verifying - Password:
-bash: /etc/nginx/.htpasswd: Permission denied

I tried to google the issue but could not find anything that solved it. tried to set permissions and so on. but cannot seem to write or modify the file.

when i try to start the nginx service i get this error:

Quote:service nginx start
Job for nginx.service failed because the control process exited with error code.
See "systemctl status nginx.service" and "journalctl -xe" for details.

In the details i see:

Quote:systemctl status nginx.service

● nginx.service - A high performance web server and a reverse proxy server
   Loaded: loaded (/lib/systemd/system/nginx.service; enabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since Thu 2018-02-15 13:27:28 UTC; 2min 15s ago
  Process: 1973 ExecStartPre=/usr/sbin/nginx -t -q -g daemon on; master_process on; (code=exited, status=1/FAILURE)

Feb 15 13:27:28 ip-172-31-35-179 systemd[1]: Starting A high performance web server and a reverse proxy server...
Feb 15 13:27:28 ip-172-31-35-179 nginx[1973]: nginx: [emerg] could not build server_names_hash, you should increase server_names_hash_bucket_size: 64
Feb 15 13:27:28 ip-172-31-35-179 nginx[1973]: nginx: configuration file /etc/nginx/nginx.conf test failed
Feb 15 13:27:28 ip-172-31-35-179 systemd[1]: nginx.service: Control process exited, code=exited status=1
Feb 15 13:27:28 ip-172-31-35-179 systemd[1]: nginx.service: Failed with result 'exit-code'.
Feb 15 13:27:28 ip-172-31-35-179 systemd[1]: Failed to start A high performance web server and a reverse proxy server.
In the config file the server_names_hash_bucket_size: 64 is set.

can anybody help me set this up. i want to run gekko on AWS EC2 protected from the outside world and accessible from anywhere with basic authentication.
  Reply


Messages In This Thread
RE: Running gekko on a ubuntu server with apache - by donkykong017 - 02-15-2018, 01:46 PM

Forum Jump:


Users browsing this thread: