Skip to content

Instantly share code, notes, and snippets.

@debxp
Last active November 10, 2019 11:43
Show Gist options
  • Save debxp/0c0f0d5b074d1f42252124f45c59ef55 to your computer and use it in GitHub Desktop.
Save debxp/0c0f0d5b074d1f42252124f45c59ef55 to your computer and use it in GitHub Desktop.
Roteiro de instalação LAMPP + Composer + Cockpit
# Apache
sudo apt install apache2 apache2-utils
sudo a2enmod rewrite
sudo systemctl restart apache2.service
# Pasta public_html do usuário padrão...
mkdir -p "$HOME/public_html"
sudo ln -s "$HOME/public_html" "/var/www/html/$USER"
# MariaDB
sudo apt install mariadb-server mariadb-client
# Configuração inicial do MariaDB
sudo mysql_secure_installation
# PHP
sudo apt install php libapache2-mod-php php-cli php-fpm \
php-json php-pdo php-mysql php-zip \
php-gd php-mbstring php-curl php-xml \
php-pear php-bcmath php-sqlite3
# Composer
curl -sS https://getcomposer.org/installer | php
sudo mv composer.phar /usr/local/bin/composer
sudo chmod +x /usr/local/bin/composer
# Cockpit (Debian)
sudo apt install cockpit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment