Hi LightDot,
        I've got web2py running over Apache on CentOS6.7. Now when I access 
the domain, I am being shown the web2py welcome application.  I am assuming 
I only need a few steps to switch my default application.  I now face a few 
challenges to make postgreSQL connection to my application point to my 
postgresql installation on my VPS. I would try fixing it this week.  
Thanks! for your support. I would perhaps post a slice after everything 
works for me on Web2py slices site. And I hope there would be a new site to 
add in the web2py sites list . Thanks!

Rahul D.

On Sunday, May 22, 2016 at 5:37:26 AM UTC+5:30, LightDot wrote:
>
> Basically, you need to have mod_wsgi properly configured and you need to 
> create an appropriate apache virtual host for your domain. There were 
> threads here about this before and the above mentioned CentOS 7 script has 
> this covered in a certain way, so you can look into it for ideas. Generic 
> mod_wsgi how-to's on the internet should also give you a good starting 
> point, web2py doesn't need anything that special in this regard. I suggest 
> working on getting you custom apache and custom python working together 
> with the use of mod_wsgi first, this is the crucial part.
>
> There are other ways of running web2py under apache (apart from mod_wsgi) 
> but this is probably the most well documented approach when it comes to 
> apache and python in general. And it's really not that bad either.
>
> Btw, is there any chance you could switch to CentOS 7 and use apache and 
> python provided by the OS? That would simplify your sysadmin life a lot.
>
> Regards
>
>
> On Friday, May 20, 2016 at 12:09:24 PM UTC+2, Rahul wrote:
>>
>> Hey LightDot,
>>            Thats correct I have manually installed Apache2. However I 
>> also have python2.7.11(I guess that is the latest one) installed in other 
>> directory .  Both python 2.6.6 and 2.7.11 co-exist separately. I have 
>> followed instructions to make sure I dont mess up the original 
>> distribution. Now for #3 - What instructions do I have to follow to achieve 
>> it. That is just what I can go but dont know my options. I am the root user 
>> so I can install other packages. Please suggest 
>>
>> Thanks Rahul
>>
>> On Friday, May 20, 2016 at 3:19:14 PM UTC+5:30, LightDot wrote:
>>>
>>> Go for 3.
>>>
>>> Two caveats:
>>> - apache installed in /usr/local/apache2 is not a part of CentOS 
>>> distribution. It must have been installed manually at some point
>>> - if you're using python provided by the OS, you'll be stuck on this 
>>> last version of web2py. Web2py > 2.14.6 isn't python 2.6 compatible anymore.
>>>
>>> Regards
>>>
>>>
>>> On Friday, May 20, 2016 at 8:29:50 AM UTC+2, Rahul wrote:
>>>>
>>>> Thanks! Dave. That section deals with centOS7,  I will check nginx 
>>>> section and try to make it work for me. Starting the web2py manually with 
>>>> nohup command over my public IP works but that would have a port where I 
>>>> would need to access it. I want a cleaner way to make it work 
>>>> automatically. 
>>>> 1. Start web2py automatically as a service ? and 
>>>> 2. know where to have the file for my project (or sym link) placed so 
>>>> it either redirects to it or 
>>>> 3. Have apache2 (site-packages\web2py) file where it can pick up web2py 
>>>> project and launch it automatically. 
>>>>
>>>> Any idea on above points? 
>>>>
>>>> Rahul
>>>>
>>>> On Friday, May 20, 2016 at 5:59:30 AM UTC+5:30, Dave S wrote:
>>>>>
>>>>>
>>>>>
>>>>> On Thursday, May 19, 2016 at 6:03:18 AM UTC-7, Rahul wrote:
>>>>>>
>>>>>> Hi All,
>>>>>>       I have root access for the VPS server which is on centOS6.7 I 
>>>>>> have installed web2py in /home/www/ directory and Apache2 is by default 
>>>>>> installed in /usr/local/apache2.  Now accessing my website shows me the 
>>>>>> Apache welcome screen which says -
>>>>>> You may now add content to the directory /var/www/html/. Note that 
>>>>>> until you do so, people visiting your website will see this page and not 
>>>>>> your content. To prevent this page from ever being used, follow the 
>>>>>> instructions in the file /etc/httpd/conf.d/welcome.conf.
>>>>>> Now my question is how do I proceed with deployment further from here 
>>>>>> ? I am a bit stuck . Please suggest
>>>>>>
>>>>>> Rahul
>>>>>>
>>>>>
>>>>> You've looked through this?
>>>>> <URL:
>>>>> http://web2py.com/books/default/chapter/29/13/deployment-recipes#Apache-setup
>>>>> >
>>>>>  
>>>>> There is also web2py/scripts/set-web2py-centos7.sh.  I took a glance 
>>>>> at it, and didn't see what needed to be backrevved for Centos 6.  Maybe 
>>>>> daemon startup.
>>>>>
>>>>> Finally, if you have a choice, the official web2py position is to 
>>>>> recommend nginx over apache.  Chapter 13 has an nginx section, and there 
>>>>> are scripts for it, in the same place as above.
>>>>>
>>>>> /dps
>>>>>
>>>>>

-- 
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 web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to