xref: /plugin/structtemplate/_vagrant/provision_web_server.sh
  • Home
  • History
  • Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#!/bin/bash
2
3# Install web server
4
5sudo apt-get --assume-yes --quiet update
6sudo apt-get --assume-yes --quiet install \
7    libapache2-mod-php \
8    php \
9    php-cli \
10    php-gd \
11    php-intl \
12    php-mysql \
13    php-sqlite3 \
14    php-xml
15systemctl is-enabled --quiet apache2 || sudo systemctl enable apache2
16systemctl is-active --quiet apache2 || sudo systemctl restart apache2
17[[ -e /var/www/html/index.html ]] && sudo mv /var/www/html/index.html /var/www/html/apache.index.html
18exit 0
19

served by {OpenGrok

Last Index Update: Fri Feb 20 03:59:39 UTC 2026

Global DokuWiki Links

  • Download
  • Wiki
  • Forum
  • IRC
  • Bugs
  • Translate
  • Git
  • XRef
  • Code Search