Script in BASH Install Ubuntu 16.04 PHP 7.0

This will install Common libraries for php 7.0, last version of mysql and phpmyadmin

#/bin/bash/

apt-get update -y
apt-get upgrade -y
apt-get install -y apache2
apt-get install -y mysql-client mysql-server
apt-get install -y aspell aspell-en aspell-he
apt-get install -y ghostscript
apt-get install -y graphviz
apt-get install -y clamav
apt-get install -y git
add-apt-repository ppa:ondrej/php

apt-get update -y

apt-get install -y php7.0 libapache2-mod-php7.0 php7.0-cli php7.0-common

apt-get install -y php7.0-mbstring php7.0-gd php7.0-intl php7.0-xml php7.0-mysql

apt-get install -y php7.0-mcrypt php7.0-zip php7.0-curl php7.0-gd php7.0-soap

apt-get install -y php7.0-ldap php7.0 php7.0-xmlrpc php7.0-xsl php7.0-pspell
a2enmod ssl rewrite
apt-get install -y libreoffice
apt-get install -y phpmyadmin
apt-get install -y unoconv
apt-get install -y mc

apt-get install -y mc

service apache2 restart

sudo echo “<VirtualHost *:80>
ServerAdmin webmaster@localhost
ServerName webnetkit.com
DocumentRoot /var/www/webnetkit
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>” > /etc/apache2/sites-available/webnetkit.conf

a2ensite your-domain.conf

curl -sS https://getcomposer.org/installer | sudo php — –install-dir=/usr/local/bin –filename=composer

Leave a Reply

Your email address will not be published. Required fields are marked *