Advertisement
kevin2458

Configuración de Instalación para Chamilo LMS

Dec 26th, 2018
503
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 2.79 KB | None | 0 0
  1. sudo apt-get -y update
  2.  
  3. sudo apt-get -y upgrade
  4.  
  5. sudo apt-get -y dist-upgrade
  6.  
  7.  
  8. sudo reboot
  9.  
  10.  
  11. sudo apt-get install -y apache2
  12.  
  13.  
  14. sudo add-apt-repository ppa:ondrej/php
  15.  
  16. sudo apt-get -y update
  17.  
  18. 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++
  19.  
  20. sudo apt-get -y install gcc make autoconf libc-dev pkg-config
  21. sudo apt-get -y install php7.2-dev
  22. sudo apt-get -y install libmcrypt-dev
  23.  
  24. pecl install mcrypt-1.0.1
  25.  
  26.  
  27. sudo mkdir /etc/apache2/ssl
  28.  
  29. sudo cd /etc/apache2/ssl
  30.  
  31.  
  32. sudo mkdir -p /var/www/virtual.univalle.edu.ni/html
  33.  
  34. sudo chown -R $USER:$USER /var/www/virtual.univalle.edu.ni/html
  35.  
  36. sudo chmod -R 755 /var/www/virtual.univalle.edu.ni
  37.  
  38.  
  39. sudo cp /etc/apache2/sites-available/000-default.conf /etc/apache2/sites-available/virtual.univalle.edu.ni.conf
  40.  
  41. sudo cp /etc/apache2/sites-available/default-ssl.conf /etc/apache2/sites-available/virtual.univalle.edu.ni-ssl.conf
  42.  
  43.  
  44. sudo vi /etc/apache2/sites-available/000-default.conf
  45.  
  46. ServerName IP
  47.  
  48. <Location />                                                                                                              
  49.         Require all denied
  50. </Location>  
  51.  
  52.  
  53. sudo vi /etc/apache2/sites-available/virtual.univalle.edu.ni.conf
  54.  
  55. ServerName virtual.univalle.edu.ni
  56.  
  57. ServerAlias www.virtual.univalle.edu.ni
  58.  
  59.  
  60. ServerAdmin sistemas1@univalle.edu.ni
  61.  
  62. DocumentRoot /var/www/virtual.univalle.edu.ni/html
  63.  
  64.  
  65. sudo vi /etc/apache2/sites-available/virtual.univalle.edu.ni-ssl.conf
  66.  
  67. ServerName virtual.univalle.edu.ni
  68.  
  69. ServerAlias www.virtual.univalle.edu.ni
  70.  
  71.  
  72. ServerAdmin sistemas1@univalle.edu.ni
  73.  
  74.  
  75. SSLCertificateFile    /etc/apache2/ssl/uth.hn.crt
  76.  
  77. SSLCertificateKeyFile /etc/apache2/ssl/uth.hn.key
  78.  
  79. SSLCertificateChainFile /etc/apache2/ssl/COMODORSADomainValidationSecureServerCA.crt
  80.  
  81.  
  82.  
  83. sudo vi /etc/apache2/apache2.conf
  84.  
  85. Options MultiViews
  86.  
  87. AllowOverride All
  88.  
  89.  
  90. # Added by Kevin Lara
  91.  
  92. #
  93. # Hide web server version number, operating system details and more.
  94. #
  95. ServerTokens    Prod
  96. ServerSignature Off
  97.  
  98. #
  99. # Production parameters
  100. #
  101. AcceptFilter http  none
  102. AcceptFilter https none
  103.  
  104. EnableMMAP     Off
  105. EnableSendfile Off
  106.  
  107.  
  108. cd /etc/php/7.0/apache2
  109.  
  110. sudo wget https://browscap.org/stream?q=Lite_BrowsCapINI
  111.  
  112. sudo mv stream?q=Lite_BrowsCapINI php-browscap.ini
  113.  
  114.  
  115. sudo a2enmod headers
  116.  
  117. sudo a2enmod rewrite
  118.  
  119. sudo a2enmod ssl
  120.  
  121.  
  122. sudo a2ensite virtual.univalle.edu.ni.conf
  123.  
  124. sudo a2ensite virtual.univalle.edu.ni-ssl.conf
  125.  
  126.  
  127. sudo apache2ctl configtest
  128.  
  129.  
  130. sudo service apache2 restart
  131.  
  132.  
  133. .htaccess
  134.  
  135. Header set Access-Control-Allow-Origin "*"
  136.  
  137.  
  138. sudo tar c /data/var/www/html/v2 | gzip --fast > v2.tar.gz
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement