GatechVIP / no-code

4 stars 1 forks source link

Test new Hilary install shell script #24

Open wbbarr opened 11 years ago

wbbarr commented 11 years ago

The shell script to install Hilary on Ubuntu needs to be tested. See https://github.com/GatechVIP/no-code/issues/18 for details.

wbbarr commented 11 years ago

Currently testing this script.

One thing that is important to note is that this script should be chmodded to be executable. chmod 777 hilary_install.sh does the trick.

wbbarr commented 11 years ago

@pongad: when I finish the process and go to oae.mine.com, I am greeted with

Welcome to nginx!

If you see this page, the nginx web server is successfully installed and working. Further configuration is required.

For online documentation and support please refer to nginx.org. Commercial support is available at nginx.com.

Thank you for using nginx.

It looks like the configuration was not successful (unless that's what we're looking for). Any ideas?

pongad commented 11 years ago

That's interesting xD Looks like the config messed up to me too. Could you check nginx.json and nginx.conf?

On Tue, Feb 26, 2013 at 8:16 PM, William Barr III notifications@github.comwrote:

@pongad https://github.com/pongad: when I finish the process and go to oae.mine.com, I am greeted with

Welcome to nginx!

If you see this page, the nginx web server is successfully installed and working. Further configuration is required.

For online documentation and support please refer to nginx.org. Commercial support is available at nginx.com.

Thank you for using nginx.

It looks like the configuration was not successful (unless that's what we're looking for). Any ideas?

— Reply to this email directly or view it on GitHubhttps://github.com/GatechVIP/no-code/issues/24#issuecomment-14150505 .

wbbarr commented 11 years ago

nginx.json:

{
"NGINX_USER":"www-data",
"NGINX_GROUP":"www-data",
"UX_HOME":"/home/oaevip/sakaioae/3akai-ux",
"LOCAL_FILE_STORAGE_DIRECTORY":"/tmp"
}

nginx.conf:

user www-data;
worker_processes 4;
pid /run/nginx.pid;

events {
    worker_connections 768;
    # multi_accept on;
}

http {

    ##
    # Basic Settings
    ##

    sendfile on;
    tcp_nopush on;
    tcp_nodelay on;
    keepalive_timeout 65;
    types_hash_max_size 2048;
    # server_tokens off;

    # server_names_hash_bucket_size 64;
    # server_name_in_redirect off;

    include /etc/nginx/mime.types;
    default_type application/octet-stream;

    ##
    # Logging Settings
    ##

    access_log /var/log/nginx/access.log;
    error_log /var/log/nginx/error.log;

    ##
    # Gzip Settings
    ##

    gzip on;
    gzip_disable "msie6";

    # gzip_vary on;
    # gzip_proxied any;
    # gzip_comp_level 6;
    # gzip_buffers 16 8k;
    # gzip_http_version 1.1;
    # gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript;

    ##
    # nginx-naxsi config
    ##
    # Uncomment it if you installed nginx-naxsi
    ##

    #include /etc/nginx/naxsi_core.rules;

    ##
    # nginx-passenger config
    ##
    # Uncomment it if you installed nginx-passenger
    ##

    #passenger_root /usr;
    #passenger_ruby /usr/bin/ruby;

    ##
    # Virtual Host Configs
    ##

    include /etc/nginx/conf.d/*.conf;
    include /etc/nginx/sites-enabled/*;
}

#mail {
#   # See sample authentication script at:
#   # http://wiki.nginx.org/ImapAuthenticateWithApachePhpScript
# 
#   # auth_http localhost/auth.php;
#   # pop3_capabilities "TOP" "USER";
#   # imap_capabilities "IMAP4rev1" "UIDPLUS";
# 
#   server {
#       listen     localhost:110;
#       protocol   pop3;
#       proxy      on;
#   }
# 
#   server {
#       listen     localhost:143;
#       protocol   imap;
#       proxy      on;
#   }
#}```
pongad commented 11 years ago

Looks like the regular expression for nginx messed up. I am not sure how though, it worked perfectly well on my computer...

stuartf commented 11 years ago

@pongad Since the grunt build is currently broken you can render the nginx.conf using ruby like this: https://gist.github.com/stuartf/5102896

wbbarr commented 11 years ago

At last I heard from @pongad in the meeting, the ruby script was not working to render the file. I believe a custom solution is in the works.

pongad commented 11 years ago

I think I have a reasonable solution. I should be able to code it up this weekend. Hopefully it will be ready by the dinner so I can feel good about myself.

wbbarr commented 11 years ago

New script doesn't install redis. FYI.

wbbarr commented 11 years ago

The start script is going to need some updates. Paging @dustsnow and @pongad