I'm confused by which script you're running for installation.  When I 
install web2py on ubuntu I go through the following steps.

1.  Install Ubuntu
2.  sudo apt-get install git
3.  in my home directory ->  git clone https://github.com/web2py/web2py.git
4.  cd web2py/scripts
5.  sudo chmod +x setup-web2py-nginx-uwsgi-ubuntu.sh
6.  ./setup-web2py-nginx-uwsgi-ubuntu.sh
7.  create the emperor.uwsgi.service file (from earlier in this thread) in 
/etc/systemd/system

There is probably a more precise way of doing it, but this is what I've 
been using.

-Jim


On Friday, February 12, 2016 at 2:11:26 AM UTC-6, Mirek Zvolský wrote:
>
> Yes. Thanks.
>
> But I have used the script from current stable version 
> 2.13.4-stable+timestamp.2015.12.26.04.59.39 and that is bad idea.
> With up-to-date script from web2py respository it probably completly works 
> without problems.
> But if you use the older version of setup-web2py-nginx-uwsgi-ubuntu.sh then 
> you can repair it so, that you find content for /etc/uwsgi/web2py.ini in 
> same up-to-date script in web2py repository and manually create the .ini 
> file.
>
> And I should say, I have added your code listed here above for 
> /etc/systemd/system/emperor.uwsgi.service
> I am not sure if this is already in the latest version of script or not 
> (just run the script and then see...)
>
> After that you can control both
> service nginx status/start/stop
> service emperor.uwsgi status/start/stop
> and all works well.
> At least at Debian 8 Jessie.
>
> Note: the description in web2py.com/book is however to old and cannot be 
> used for systemd.
>
>
>
>
>
> Dne čtvrtek 11. února 2016 20:12:19 UTC+1 Jim S napsal(a):
>>
>> It gets created in the web2py/nginx/ubuntu install script.
>>
>> -Jim
>>
>> On Thu, Feb 11, 2016 at 11:45 AM, Mirek Zvolský <[email protected]> wrote:
>>
>>> I am trying do the same on Debian 8 Jessie and have a question:
>>> From where do you have /etc/uwsgi/web2py.ini
>>> I have no such file. From that reason your point (5) will fail for me.
>>>
>>>
>>>
>>>
>>> Dne středa 10. února 2016 14:46:37 UTC+1 Jim S napsal(a):
>>>>
>>>> I got this working!
>>>>
>>>> Here is what I did.
>>>>
>>>> 1. Run the normal web2py installation script for nginx/ubuntu
>>>> 2. sudo nano edit /etc/systemd/system/emperor.uwsgi.service
>>>>
>>>> Add these lines
>>>> [Unit]
>>>> Description = uWSGI Emperor
>>>> After = syslog.target
>>>>
>>>>
>>>> [Service]
>>>> ExecStart = /usr/local/bin/uwsgi --ini /etc/uwsgi/web2py.ini
>>>> RuntimeDirectory = uwsgi
>>>> Restart = always
>>>> KillSignal = SIGQUIT
>>>> Type = notify
>>>> StandardError = syslog
>>>> NotifyAccess = all
>>>>
>>>>
>>>> [Install]
>>>> WantedBy = multi-user.target
>>>>
>>>> 3. Exit and save the file
>>>> 4. systemctl enable emperor.uwsgi.service
>>>> 5. systemctl start emperor.uwsgi.service
>>>>
>>>> You should now be able to browse to http://localhost or 
>>>> https://localhost
>>>>
>>>> On restart of the system, this service will automatically start.
>>>>
>>>> Let me know if you have questions.
>>>>
>>>> -Jim
>>>>
>>>> Thanks niphlod for the pointers and encouragement...
>>>>
>>> -- 
>>> 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 a topic in the 
>>> Google Groups "web2py-users" group.
>>> To unsubscribe from this topic, visit 
>>> https://groups.google.com/d/topic/web2py/ZM9IIEjtHSI/unsubscribe.
>>> To unsubscribe from this group and all its topics, send an email to 
>>> [email protected].
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>

-- 
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