Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- sudo apt-get -y update
- sudo apt-get -y upgrade
- sudo apt-get -y dist-upgrade
- sudo reboot
- sudo apt-get install -y apache2
- sudo add-apt-repository ppa:ondrej/php
- sudo apt-get -y update
- sudo apt-get -y install php7.2 php7.2-curl php7.2-gd php7.2-mbstring php7.2-mysql libapache2-mod-php7.2 php7.2-bz2 php7.2-zip php7.2-xml php7.2-json php7.2-cli php7.2-common php7.2-intl php7.2-ldap php-imagick php-apcu php-pear php7.2-dev re2c gcc g++
- sudo apt-get -y install gcc make autoconf libc-dev pkg-config
- sudo apt-get -y install php7.2-dev
- sudo apt-get -y install libmcrypt-dev
- pecl install mcrypt-1.0.1
- sudo mkdir /etc/apache2/ssl
- sudo cd /etc/apache2/ssl
- sudo mkdir -p /var/www/virtual.univalle.edu.ni/html
- sudo chown -R $USER:$USER /var/www/virtual.univalle.edu.ni/html
- sudo chmod -R 755 /var/www/virtual.univalle.edu.ni
- sudo cp /etc/apache2/sites-available/000-default.conf /etc/apache2/sites-available/virtual.univalle.edu.ni.conf
- sudo cp /etc/apache2/sites-available/default-ssl.conf /etc/apache2/sites-available/virtual.univalle.edu.ni-ssl.conf
- sudo vi /etc/apache2/sites-available/000-default.conf
- ServerName IP
- <Location />
- Require all denied
- </Location>
- sudo vi /etc/apache2/sites-available/virtual.univalle.edu.ni.conf
- ServerName virtual.univalle.edu.ni
- ServerAlias www.virtual.univalle.edu.ni
- ServerAdmin sistemas1@univalle.edu.ni
- DocumentRoot /var/www/virtual.univalle.edu.ni/html
- sudo vi /etc/apache2/sites-available/virtual.univalle.edu.ni-ssl.conf
- ServerName virtual.univalle.edu.ni
- ServerAlias www.virtual.univalle.edu.ni
- ServerAdmin sistemas1@univalle.edu.ni
- SSLCertificateFile /etc/apache2/ssl/uth.hn.crt
- SSLCertificateKeyFile /etc/apache2/ssl/uth.hn.key
- SSLCertificateChainFile /etc/apache2/ssl/COMODORSADomainValidationSecureServerCA.crt
- sudo vi /etc/apache2/apache2.conf
- Options MultiViews
- AllowOverride All
- # Added by Kevin Lara
- #
- # Hide web server version number, operating system details and more.
- #
- ServerTokens Prod
- ServerSignature Off
- #
- # Production parameters
- #
- AcceptFilter http none
- AcceptFilter https none
- EnableMMAP Off
- EnableSendfile Off
- cd /etc/php/7.0/apache2
- sudo wget https://browscap.org/stream?q=Lite_BrowsCapINI
- sudo mv stream?q=Lite_BrowsCapINI php-browscap.ini
- sudo a2enmod headers
- sudo a2enmod rewrite
- sudo a2enmod ssl
- sudo a2ensite virtual.univalle.edu.ni.conf
- sudo a2ensite virtual.univalle.edu.ni-ssl.conf
- sudo apache2ctl configtest
- sudo service apache2 restart
- .htaccess
- Header set Access-Control-Allow-Origin "*"
- sudo tar c /data/var/www/html/v2 | gzip --fast > v2.tar.gz
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement