I am runnning web2py on nginx on centos 7
the system python is 2.7.5
I have to use 2.7.15 - reasons unknown
so I set up virtualenv and all works, except when I run nginx and web2py is using the wrong version of python, therefore I get the package problems etc. etc.
So how can I tell web2py to use the python from virtual env??
Thank you
best regards
Related
Currently I'm working on installing the net-snmp package on bunch of RHEL servers (versions vary from 5.x ~ 6.x).
To be specific, I need net-snmp.x86_64 and net-snmp-utils.x86_64 to create /etc/snmp/snmpd.conf file.
In normal cases, I'd just use yum to simply install them but the servers I'm working on has a firewall blocking all connections except the ones specified in the firewall.
I'm also not allowed to configure the firewall to enable yum to download the packages online due to security reasons (not sure why, though).
So I downloaded the net-snmp-5.8.tar.gz file to my PC and SCP'd it to the servers and tried to manually install it there.
But since I'm no expert on this, I just couldn't get them installed with the information online.
The files seem to be running but it doesn't create the snmpd.conf file that I need, or any other SNMP configs.
Is there a guide to installing these packages properly using the tar.gz file? Or is there something wrong here?
Thanks in advance :)
Have you run the snmpconf script? If I remember correctly it should have been installed along with net-snmp and it will generate an snmpd.conf file that is at least a good starting point if not the final one you'll want.
My machine has Mac os. In this I have nginx 1.6.x. I initially installed with Homebrew.
I am trying to run a project which in production uses openresty (as it has lua 3rd party modules)
My confusion is regarding which one to install.
Do I need to completely remove nginx and install openresty, as it's documentation says it's a bundle of components,i.e. it will contain nginx?
or
Install new version of nginx with lua 3rd party modules and then install openresty too.
Sorry if there is a or too many typo in my question.
A good link will be helpful as I think I have confused myself enough.
Thanks in Advance.
Openresty is nginx bundled with lua and other 3rd party modules, so having both of them installed on your computer may lead to trouble, for example:
This case can happen if you try to run both of them at the same time: Your nginx conf file can have a server block listening to a port while your openresty also have a server block listening to that block. If nginx is already running, openresty won't be able to run, since the port is already bound.
I installed openresty with a previous installation of nginx and ran into some problems, so i would advise you to save relevant configuration and data from your nginx instalation and removing it.
Installing openresty seems better since besides installing nginx, it will install lua modules and a few more as it is listed on their github.https://github.com/openresty/lua-nginx-module
I don't know how your project is going, but i would suggest moving using openresty, since it will save potential trouble.
Currently I'm using nginx with HHVM but for some reasons HHVM crashs alot
What I'm trying to do is:
Rplace HHVM with php-fpm
OR
Add php-fpm as fallback
PS: I used this to install nginx + HHVM:
https://github.com/facebook/hhvm/wiki/Getting-Started
I have made this simple script to install latest HHVM/Nginx/MySQL, at once, depending on different Ubuntu Distros. Binaries that are used, come from the official repos that the HHVM team uses. Check var/log/hhvm, error.log file and create issue if you think it is a HHVM.
I use HHVM on servers, and it rarely crashes.
I installed Nginx via apt-get on Debian a while ago, and I've got a couple of sites live on it. Now I need to install some additional modules, and as I don't want to mess anything up I'd like to double check my process before I perform it. Hopefully this will also help others that are unsure about this part.
As I've understood it I have to do the following to minimize the downtime:
Download the source for Nginx
Add the additional modules with ./configure --additional-module
Compile Nginx with make
Stop the current server (service nginx stop)
Install Nginx with make install
Start the new server (service nginx start)
Or do I have to uninstall Nginx first, as it's not compiled from source at this point?
Having done something similar on Ubuntu before, the installation should overwrite the existing nginx binaries with the newly compiled ones, so long as yes, you ensure nginx isn't running on the system at the time.
I'd recommend trying to install nginx elsewhere on the system, so in case you can't get it to work quickly, you can restart your web server with the old nginx binaries and not have significant downtime.
nginx -V - helpful command which shows options for .\configure which was used to make nginx, which is actually working.
Helpful to get detail imagination about.
apt-get source nginx - to get source
install will automatically substitute actual installed version by new one
Keep also in mind that some nginx-modules can require additional libs on server. geoip module is classical example of it
I've got a VPS setup with Nginx & PHP5-FPM.
Being fairly new to unix, VPS etc... it took me ages to get the setup I wanted.
However Now I want to be able to install some extensions onto PHP without haveing to rebuild the entire thing. For example. Is there a way to install the php_tidy extension on an existing PHP setup?
You can compile an extensions as a shared library. Then you just have to declare your module in the php.ini.
There is a description at php.net for phpize.
Performance differences between a module and a full compilation are discussed here.
Check out the documentation at http://pecl.php.net/ on how to install PHP extensions.
It's usually as easy as running a command such as
pecl install tidy