Skip to content

Instantly share code, notes, and snippets.

@b1lb0
Last active March 29, 2021 07:20
Show Gist options
  • Select an option

  • Save b1lb0/567065ac90235fb10fb1c37c5353fe42 to your computer and use it in GitHub Desktop.

Select an option

Save b1lb0/567065ac90235fb10fb1c37c5353fe42 to your computer and use it in GitHub Desktop.
Installazione HTTP2 su curl di sistema e php da fare come root
--------------------------------------------------------------
*service apache2 stop
*service php7.0-fpm stop
apt-get remove curl
apt-get remove php7.0-curl
editare /etc/apt/sources.list
e scommetare tutti i deb-src
apt-get update
apt-get install -y git g++ make binutils autoconf automake autotools-dev libtool pkg-config zlib1g-dev libcunit1-dev libssl-dev libxml2-dev libev-dev libevent-dev libjansson-dev libjemalloc-dev cython python3-dev python-setuptools
cd ~ && \
git clone https://github.com/tatsuhiro-t/nghttp2.git && \
cd nghttp2 && \
autoreconf -i && \
automake && \
autoconf && \
./configure && \
make && \
make install
cd ~ && \
apt-get build-dep -y curl
apt-get install wget
wget http://curl.haxx.se/download/curl-7.46.0.tar.bz2 && \
tar -xvjf curl-7.46.0.tar.bz2 && \
cd curl-7.46.0 && \
./configure --with-nghttp2=/usr/local --with-ssl && \
make && \
make install && \
ldconfig
apt-get install php7.0-curl
service apache2 start
service php7.0-fpm start
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment