Documentos de Académico
Documentos de Profesional
Documentos de Cultura
DOCUMENTO PR-050-21-DOC-001
REVISIÓN No. 1
ALCANCE
PASOS A SEGUIR
Agregaremos el repositorio ppa: ondrej / php PPA que tiene los últimos
paquetes de compilación de PHP.
cd /var/www/html/
sudo git clone http://gitlab.softmanagement.com.co/CSJ/INTRANET_GPE
cd /home/ubuntu
php composer-setup.php
php -r "unlink('composer-setup.php');"
luego
composer
Instalamos
sudo composer install
Luego confirmar.
cd ..
sudo chown -R www-data:ubuntu ./
<VirtualHost *:80>
# The ServerName directive sets the request scheme, hostname and port
that
# the server uses to identify itself. This is used when creating
# redirection URLs. In the context of virtual hosts, the ServerName
# specifies what hostname must appear in the request's Host: header to
# match this virtual host. For the default virtual host (this file) this
# value is not decisive as it is used as a last resort host regardless.
# However, you must set it for any further virtual host explicitly.
#ServerName www.example.com
ServerAdmin webmaster@localhost
DocumentRoot /var/www/html/INTRANET_GET/web/
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
Guarda y cierra el archivo. Después, habilita el host y reescribe Apache con los siguientes
comandos:
Una vez que se importa la clave PGP, proceda a agregar la URL del
repositorio a su servidor Ubuntu 18.04:
Instale MariaDB
Confirmar Contraseña:
sudo mysql_secure_installation
In order to log into MariaDB to secure it, we'll need the current
password for the root user. If you've just installed MariaDB, and
you haven't set the root password yet, the password will be blank,
Setting the root password ensures that nobody can log into the MariaDB
New password:
... Success!
to log into MariaDB without having to have a user account created for
them. This is intended only for testing, and to make the installation
production environment.
... Success!
ensures that someone cannot guess at the root password from the network.
... Success!
By default, MariaDB comes with a database named 'test' that anyone can
access. This is also intended only for testing, and should be removed
... Success!
... Success!
Reloading the privilege tables will ensure that all changes made so far
... Success!
Cleaning up...
All done! If you've completed all of the above steps, your MariaDB
$ mysql -u root -p
Enter password:
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
MariaDB [(none)]>
+------------------------------------------+
| version() |
+------------------------------------------+
| 10.4.6-MariaDB-1:10.4.6+maria~bionic-log |
+------------------------------------------+