Beta 42

Research and Development


Configure LAMP Stack for nextCloud

Install a LAMP Stack with Virtual Hosts and secure it with Let's Encrypt Certbot.

Install additional software:

sudo apt install curl php php-curl libapache2-mod-php php-mysql
sudo apt install php-gd php-mbstring php-xml php-xmlrpc php-fpm
sudo apt install php-zip php-bz2 php-smbclient php-imap php-gmp
sudo apt install php-apcu php-intl php-imagick
sudo a2enmod proxy_fcgi setenvif
sudo a2enmod rewrite
sudo a2enmod headers
sudo a2enmod env
sudo a2enmod dir
sudo a2enmod mime
sudo a2enmod setenvif
sudo systemctl reload apache2
sudo systemctl restart apache2

Settings for php.ini

Edit /etc/php/7.2/apache2/php.ini:

sudo vim /etc/php/7.2/apache2/php.ini

and make changes to the following parameters:

memory_limit = 512M
upload_max_filesize = 16G
post_max_size = 16G
max_input_time = 3600
max_execution_time = 3600