0% found this document useful (0 votes)
22 views1 page

Alpine

The document provides instructions for installing and configuring a web server on an Alpine Linux system. It includes steps to install packages like Apache2, PHP 7.3, and enable modules like rewrite. It also changes the Apache port and enables .htaccess files.

Uploaded by

kangdiem
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
22 views1 page

Alpine

The document provides instructions for installing and configuring a web server on an Alpine Linux system. It includes steps to install packages like Apache2, PHP 7.3, and enable modules like rewrite. It also changes the Apache port and enables .htaccess files.

Uploaded by

kangdiem
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 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