# set http proxy
export http_proxy=http://PROXYHOST:PROXYPORT
# set http proxy with user and password
export http_proxy=http://USERNAME:PASSWORD@PROXYHOST:PROXYPORT
# set http proxy with user and password (with special characters)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# please read every steps as this is not an automated script | |
# tested on LXC alpine 3.12 | |
# 2.3.8 compatible only with php 7.2 (alpine 3.9) | |
vi /etc/apk/repositories # change to 3.9 | |
# update and install | |
apk update && apk add php php-dom php-simplexml php-json php-gd php-mbstring php-xml php-tidy php-iconv php-curl php-gettext php-tokenizer php-bcmath php-intl php-session php-fpm php-pdo_mysql mariadb mariadb-client nginx iproute2 | |
# start at boot |