Multiple php (php-fpm) version on LNMP server - linux

One of the projects requires support much higher version php used in main web project
Env:
- Debian 7.6 (3.2 x86_64)
- Nginx 1.6.0
- php-fpm (PHP 5.3.28)
My task: Install alternate version of php-fpm (php) and use it in another web project.
I don't want to install Apache with the desired version of php (mod-php) and use Nginx as frontend for Apache
Please describe other ways of resolving my situation, if they exist

I was researching this topic in the past. Never went through with it but you might find this useful.

Related

Unable to access gitlab web UI after upgrading to 14.12

I have gitlab omnibus install on a linux debian server. Yesterday, the installation was upgraded to 14.12 (from 14.11) - and now I'm unable to access the web UI. On investigation, it seems that the issue was caused by a conflict of versions of ruby and passenger. I'm using an external nginx on the server, as the tail server has other virtual hosts. I have the latest version of passenger installed - 6.0.9. Gitlab latest version comes with ruby version 2.7.2 - but passenger 6.0.9 has no support for that version, it support 2.7.3 instead.
I downgraded passenger to version 6.0.8 - now the passenger_native error is resolved (by direct downloading exact version). However I'm getting the following error in the log:
Could not spawn process for application /opt/gitlab/embedded/service/gitlab-rails:
A timeout occurred while starting a preloader process.
There's not much more info. There is one question I found on SO from years ago - this one - with the same error - but it's not solved. I'm in no position to install/run docker on the server.
How can I get gitlab UI to show?
Note: this is cross-posted to ServerFault here.

how to enable http2 on centos7

I have CENTOS7 server, with:
Server version: Apache/2.4.6 (CentOS)
.
How can i enable/add HTTP/2 on these Apache ?
I'm trying to send http2 requests from the client via Nghttp, but i get an error in the response (recv RST_STREAM frame ) as a result of server which does not supports Http2.
I saw that i have to enable module_http2 in the apache, but i didn't
found hot can i do this.
Thanks in Advance.
HTTP/2 support was only added in Apache 2.4.18 which is not available in the standard CentOS/Red Hat repos. Though as mod_http2 was (and still is at time of writing) being actively worked on you should go with the latest version (2.4.33 at time of writing - though there are further mod_http2 patches available on top of that).
Additionally HTTP/2 requires OpenSSL 1.0.2 or above which means you need CentOS/RHEL 7.4 or above unless you want to install your own version of OpenSSL as well your own version of Apache. Note you need Apache 2.4.26 or above if you want to go further than that and go to OpenSSL 1.1.0.
So you need to download and compile a later Apache (and possibly OpenSSL) from source - or find another repo with these later versions. This does carry some risks - primarily that you lose the easy security patches that repo versions supply. CentOS Apache 2.4.6 actually includes all the latest security patches of later versions (assuming you regularly run "yum update" to update it) - but not the functionality changes like HTTP/2 (hence why they leave version number at 2.4.6).
If you're interested in installing from source then I've a step by step blog post on how to do that here: https://www.tunetheweb.com/performance/http2/
You can install a newer version of httpd than is included in the base repositories through the httpd24 Software Collection. Once you've enabled the SCL, you need the following packages:
httpd24
httpd24-nghttp2
httpd24-mod_ssl *
* It's best to configure SSL too, because for example Chrome will only do HTTP2 with TLS.

How to patch node.js server for CVE-2014-0224 on ubuntu?

I recently realized that our servers were vulnerable to CVE-2014-0224 by doing an SSL Labs scan.
We are running a node.js server on our site. I read that the vulnerability was eliminated in node.js version 0.10.29, so I used nvm to install version 0.11.13 on our ubuntu 12 server. However, after restarting the node.js server, the scan still shows we're vulnerable.
Thinking that perhaps node.js was relying on the system installation of openssl rather than using their own, I upgraded that, as well. openssl version -b now shows that we have the version that was built on 1 Oct 2014 ... which should be plenty good by all accounts (upgrading to this version was how I eliminated the vulnerability from another one of our servers that was running a ruby server ... also on ubuntu 12).
However, I haven't been able to find the right combination to eliminate the vulnerabilty from our node.js server. How can I do that? :o)
Aha! I updated one node.js version later (0.11.14), and that solved the problem. No more vulnerabilities for me! :o)

Can we install a ROR web app developed in Windows platform to Linux machine?

We have developed a Ruby on Rails application in Windows 7. Now we want to try installing it on a Linux machine and see if it can work.
What all points should I consider here?
Can we directly deploy the code in Linux? and Should i consider some gems being specific to windows?( I remember using win32ole gem for interacting with excels) Linux is completely new to me. Any help is appreciated.
Ruby version - 1.9.3p327
Rails - 3.2.9
Database - MySQL

Update Ampps php version from 7.1.2 to 7.1.8

I am running Ampps 4.9.3 on Mac, and I am trying to install Laravel 5.6, which has a dependency on PHP 7.1.3. The latest version of Ampps says it supports 7.1.8, but I can't figure out how to change it from 7.1.2. Sorry if I'm missing something obvious, thanks for your help!
As #IgnazioC said, you can replace the contents of the relevant php version with a new one. You can grab the latest PHP 7.1 windows builds from https://windows.php.net/download#php-7.1
Make sure you download the VC14 x86 Thread Safe build, because this is what Ampps uses. You can also download newer versions of ionCube, XDebug and Opcache, but this isn't usually required.
InstallationFolder\ampps\data\apps
Edit this file to change your PHP Version in Ampps. You can actually use this to upgrade or change any modules whether it be PHP or Apache or mysql, etc...

Resources