Thank you for this script. I am using a dedicted server from noez.de and it
is possible to choose one of a lot of operating systems. I have choosen
Ubuntu 16.04.

I have tried:
wget
https://gist.githubusercontent.com/niphlod/8a13025001363657f0201b2a15dad41c/raw/482fd6973d3c73c415c610dcaf64cd6d8327cfd2/web2py-on-ubuntu.sh

chmod 755 web2py-on-ubuntu.sh
./web2py-on-ubuntu.sh

I got an error message - these are the last lines:

upstream web2py27 {
    server unix:///run/uwsgi/web2py27.socket;
}

server {
        listen          80;
        server_name     $hostname;

        # static serving
        include /etc/nginx/conf.d/web2py/serve_static.conf;
        include /etc/nginx/conf.d/web2py/serve_web2py27.conf;
}
server {
        listen 443 default_server ssl;
        server_name     $hostname;
        ssl_certificate         /etc/nginx/ssl/web2py.crt;
        ssl_certificate_key     /etc/nginx/ssl/web2py.key;
        ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
        ssl_prefer_server_ciphers on;
        ssl_ciphers "EECDH+AESGCM:EDH+AESGCM:AES256+EECDH:AES256+EDH";
        ssl_ecdh_curve secp384r1; # Requires nginx >= 1.1.0
        ssl_session_cache shared:SSL:10m;
        ssl_session_tickets off; # Requires nginx >= 1.5.9
        ssl_stapling on; # Requires nginx >= 1.3.7
        ssl_stapling_verify on; # Requires nginx => 1.3.7
        resolver 8.8.8.8 8.8.4.4 valid=300s;
        resolver_timeout 5s;
        ssl_dhparam /etc/ssl/certs/dhparam.pem;
        ## remove only if you know what youre doing
./web2py-on-ubuntu.sh: line 116: include: command not found
./web2py-on-ubuntu.sh: line 117: include: command not found
./web2py-on-ubuntu.sh: line 139: } >/etc/nginx/sites-available/web2py27

ln -s /etc/nginx/sites-available/web2py27 /etc/nginx/sites-enabled/web2py27
rm /etc/nginx/sites-enabled/default
cd /etc/ssl/certs
openssl dhparam -out dhparam.pem 4096
mkdir /etc/nginx/ssl
cd /etc/nginx/ssl

if [ "$nocertificate" -eq 0 ]
then
  openssl req -x509 -newykey rsa:2048 -nodes -keyout web2py.key -out
web2py.crt -days 1780
  chmod 400 web2py.key
  openssl x509 -noout -fingerprint -text < web2py.crt > web2py.info
fi
# Prepare folders for uwsgi
sudo mkdir /etc/uwsgi
sudo mkdir /etc/uwsgi/vassals


#uWSGI Emperor
echo [Unit]: No such file or directory
./web2py-on-ubuntu.sh: line 140: Description: command not found
./web2py-on-ubuntu.sh: line 141: After: command not found
./web2py-on-ubuntu.sh: line 142: [Service]: command not found
./web2py-on-ubuntu.sh: line 143: ExecStart: command not found
./web2py-on-ubuntu.sh: line 144: RuntimeDirectory: command not found
./web2py-on-ubuntu.sh: line 145: Restart: command not found
./web2py-on-ubuntu.sh: line 146: KillSignal: command not found
./web2py-on-ubuntu.sh: line 147: Type: command not found
./web2py-on-ubuntu.sh: line 148: StandardError: command not found
./web2py-on-ubuntu.sh: line 149: NotifyAccess: command not found
./web2py-on-ubuntu.sh: line 150: [Install]: command not found
./web2py-on-ubuntu.sh: line 151: WantedBy: command not found
./web2py-on-ubuntu.sh: line 154:  >
/etc/systemd/system/emperor.uwsgi.service
# Create configuration for emperor
echo [uwsgi]: No such file or directory
./web2py-on-ubuntu.sh: line 155: emperor: command not found
./web2py-on-ubuntu.sh: line 156: uid: command not found
./web2py-on-ubuntu.sh: line 157: gid: command not found
./web2py-on-ubuntu.sh: line 160: >/etc/uwsgi/emperor.ini
# Create configuration file /etc/uwsgi/web2py.ini
echo [uwsgi]: No such file or directory
./web2py-on-ubuntu.sh: line 161: home: command not found
./web2py-on-ubuntu.sh: line 162: socket: command not found
./web2py-on-ubuntu.sh: line 163: pythonpath: command not found
mount: mount point /=wsgihandler:application does not exist
./web2py-on-ubuntu.sh: line 165: processes: command not found
./web2py-on-ubuntu.sh: line 166: vacuum: command not found
./web2py-on-ubuntu.sh: line 167: master: command not found
./web2py-on-ubuntu.sh: line 168: harakiri: command not found
./web2py-on-ubuntu.sh: line 169: reload-mercy: command not found
./web2py-on-ubuntu.sh: line 170: cpu-affinity: command not found
./web2py-on-ubuntu.sh: line 171: stats: command not found
./web2py-on-ubuntu.sh: line 172: max-requests: command not found
./web2py-on-ubuntu.sh: line 173: limit-as: command not found
./web2py-on-ubuntu.sh: line 174: reload-on-as: command not found
./web2py-on-ubuntu.sh: line 175: reload-on-rss: command not found
./web2py-on-ubuntu.sh: line 176: uid: command not found
./web2py-on-ubuntu.sh: line 177: gid: command not found
./web2py-on-ubuntu.sh: line 178: touch-reload: command not found
cron: invalid option -- '1'
usage: cron
./web2py-on-ubuntu.sh: line 180: no-orphans: command not found
./web2py-on-ubuntu.sh: line 199: unexpected EOF while looking for matching
`''
./web2py-on-ubuntu.sh: line 216: syntax error: unexpected end of file
root@f82uxxxx

Problems with the echo command?


2016-08-08 21:45 GMT+02:00 Niphlod <[email protected]>:

> as soon as I get some free time this should become the new (and only)
> "official" script. Or as soon as somebody else takes that responsibility.
>
> https://gist.github.com/niphlod/8a13025001363657f0201b2a15dad41c
>
>
> On Monday, August 8, 2016 at 6:39:51 PM UTC+2, mweissen wrote:
>>
>> I have tried to setup a new web2py server with nginx  on Ubuntu 16.04 LTS
>>
>> I have used the script
>>
>> https://raw.githubusercontent.com/web2py/web2py/master/scrip
>> ts/setup-web2py-nginx-uwsgi-ubuntu.sh
>>
>> The script stopped with
>>
>>  extracting: web2py/applications/__init__.py
>>  extracting: web2py/site-packages/__init__.py
>> [ ok ] Starting nginx (via systemctl): nginx.service.
>> ./setup-web2py-nginx-uwsgi-ubuntu.sh: line 217: start: command not found
>>
>>
>> Nginx seems to work:
>>
>> Welcome to nginx!
>>
>> If you see this page, the nginx web server is successfully installed and
>> working. Further configuration is required.
>>
>>
>> Any comments?
>>
>> By the way: I have tried the Apache version too - the Apache script works
>> correctly.
>>
>> Regards, Martin
>>
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to