You are on page 1of 1

Web Server ALPHINE_LINUX

apk update
apk upgrade
apk add nano

== instal openSSH
apk add openssh

== instal apache2
apk add apache2

== instal php7.3
apk add php
== install php extention
apk add php7-apache2 php7-common php7-cli apache2-utils php7-fpm php7-json php7-pdo
php7-mysqli php7-zip php7-gd php7-mbstring php7-curl php7-xml php7-bcmath php7-json

== other================================================
apache2, php7, php7-apache2, curl, ca-certificates, git

php7-phar, php7-mcrypt, php7-soap, php7-openssl, php7-gmp, php7-pdo_odbc, php7-


json, php7-dom, php7-pdo, php7-zip, php7-mysqli, php7-sqlite3, php7-pdo_pgsql,
php7-bcmath, php7-gd, php7-odbc, php7-pdo_mysql, php7-pdo_sqlite, php7-gettext,
php7-xmlreader, php7-xmlrpc, php7-bz2, php7-iconv, php7-pdo_dblib, php7-curl, php7-
ctype, php7-session, php7-redis.
=========================================================

== restart apache2
rc-service apache2 restart

== change port 80 to 8205


nano /etc/apache2/httpd.conf

== enable rewrite_mod
nano /etc/apache2/httpd.conf
remove "#" from line LoadModule rewrite_module/mod_rewrite.so

== Change permit .htaccess


nano /etc/apache2/httpd.conf

<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>

== restart apache2
rc-service apache2 restart

== monitoring tools x-prober


cd /var/www/localhost/htdocs
wget https://github.com/kmvan/x-prober/raw/master/dist/prober.php

chech browser "http://ip-server/prober.php"

You might also like