Diferencia entre revisiones de «Installar OwnCloud»

De enunpimpam
Saltar a: navegación, buscar
Línea 23: Línea 23:
 
Enter current password for root (enter for none): Pulsar Enter
 
Enter current password for root (enter for none): Pulsar Enter
 
Set root password? [Y/n]: Y
 
Set root password? [Y/n]: Y
New password: Enter password
+
New password: Introducir contraseña
Re-enter new password: Repeat password
+
Re-enter new password: Repetir contraseña
 
Remove anonymous users? [Y/n]: Y
 
Remove anonymous users? [Y/n]: Y
 
Disallow root login remotely? [Y/n]: Y
 
Disallow root login remotely? [Y/n]: Y
 
Remove test database and access to it? [Y/n]: Y
 
Remove test database and access to it? [Y/n]: Y
 
Reload privilege tables now? [Y/n]: Y
 
Reload privilege tables now? [Y/n]: Y
 +
</syntaxhighlight>
 +
 +
Reiniciamos MariaDB server
 +
systemctl restart mariadb.service
 +
 +
==Instalar PHP y Modulos==
 +
Añadimos los repositorios necesarios
 +
apt-get install software-properties-common -y
 +
add-apt-repository ppa:ondrej/php
 +
apt update
 +
Instalamos la PHP 7.1 y los modulos necesarios para OwnCloud
 +
 +
apt install php7.1 libapache2-mod-php7.1 php7.1-common php7.1-mbstring php7.1-xmlrpc php7.1-soap php7.1-apcu php7.1-smbclient php7.1-ldap php7.1-redis php7.1-gd php7.1-xml php7.1-intl php7.1-json php7.1-imagick php7.1-mysql php7.1-cli php7.1-mcrypt php7.1-ldap php7.1-zip php7.1-curl -y
 +
 +
Editamos archivo de configuración de php
 +
nano /etc/php/7.1/apache2/php.ini
 +
Realizamos los siguientes cambios
 +
<syntaxhighlight lang="bash">
 +
file_uploads = On
 +
allow_url_fopen = On
 +
memory_limit = 256M
 +
upload_max_filesize = 100M
 +
display_errors = Off
 +
date.timezone = Europe/Madrid
 
</syntaxhighlight>
 
</syntaxhighlight>

Revisión del 12:57 29 abr 2020

Instalación Apache

apt install apache2

Desactivamos el directorio de escucha de Apache

sed -i "s/Options Indexes FollowSymLinks/Options FollowSymLinks/" /etc/apache2/apache2.conf

Paramos el servicio, encendemos y activamos.

systemctl stop apache2.service
systemctl start apache2.service
systemctl enable apache2.service

Instalación MariaDB Server

apt-get install mariadb-server mariadb-client -y

Paramos el servicio, encendemos y activamos.

systemctl stop mariadb.service
systemctl start mariadb.service
systemctl enable mariadb.service


Iniciamos el proceso de configuración en la seguridad de MariaDB

mysql_secure_installation
Enter current password for root (enter for none): Pulsar Enter
Set root password? [Y/n]: Y
New password: Introducir contraseña
Re-enter new password: Repetir contraseña
Remove anonymous users? [Y/n]: Y
Disallow root login remotely? [Y/n]: Y
Remove test database and access to it? [Y/n]: Y
Reload privilege tables now? [Y/n]: Y

Reiniciamos MariaDB server

systemctl restart mariadb.service

Instalar PHP y Modulos

Añadimos los repositorios necesarios

apt-get install software-properties-common -y
add-apt-repository ppa:ondrej/php
apt update

Instalamos la PHP 7.1 y los modulos necesarios para OwnCloud

apt install php7.1 libapache2-mod-php7.1 php7.1-common php7.1-mbstring php7.1-xmlrpc php7.1-soap php7.1-apcu php7.1-smbclient php7.1-ldap php7.1-redis php7.1-gd php7.1-xml php7.1-intl php7.1-json php7.1-imagick php7.1-mysql php7.1-cli php7.1-mcrypt php7.1-ldap php7.1-zip php7.1-curl -y

Editamos archivo de configuración de php

nano /etc/php/7.1/apache2/php.ini

Realizamos los siguientes cambios

file_uploads = On
allow_url_fopen = On
memory_limit = 256M
upload_max_filesize = 100M
display_errors = Off
date.timezone = Europe/Madrid