This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
computing:nextcloud [2023/07/08 18:44] – oemb1905 | computing:nextcloud [2023/12/17 00:27] – oemb1905 | ||
---|---|---|---|
Line 13: | Line 13: | ||
This tutorial is for a Nextcloud instance on Debian GNU/ | This tutorial is for a Nextcloud instance on Debian GNU/ | ||
- | sudo apt install apache2-utils php-xml php-curl php-gd php-cgi php-cli php-zip php-mysql php-mbstring php-intl php-fpm php-apcu php-gmp php-imagick php-bcmath wget unzip libapache2-mod-php | + | sudo apt install apache2-utils php-xml php-curl php-gd php-cgi php-cli php-zip php-mysql php-mbstring php-intl php-fpm php-apcu php-gmp php-imagick php-bcmath |
| | ||
Or ... | Or ... | ||
| | ||
- | sudo apt-get install php-{xml, | + | sudo apt-get install php-{xml, |
| | ||
Once these are installed, make sure you can enable them and that you have no errors in your configurations: | Once these are installed, make sure you can enable them and that you have no errors in your configurations: | ||
Line 25: | Line 25: | ||
sudo a2enmod proxy_fcgi | sudo a2enmod proxy_fcgi | ||
sudo a2enmod setenvif | sudo a2enmod setenvif | ||
- | sudo a2enconf | + | sudo a2enconf |
- | sudo a2enconf | + | sudo a2enconf |
sudo sudo apache2ctl configtest | sudo sudo apache2ctl configtest | ||
Line 94: | Line 94: | ||
The first thing to do is to navigate to Settings, Overview. | The first thing to do is to navigate to Settings, Overview. | ||
- | sudo nano /etc/php/7.0/ | + | sudo nano /etc/php/8.2/ |
| | ||
I entered the following settings, currently recommended by Nextcloud. | I entered the following settings, currently recommended by Nextcloud. | ||
Line 144: | Line 144: | ||
To fine tune php: | To fine tune php: | ||
- | sudo nano /etc/php/7.2/ | + | sudo nano /etc/php/8.2/ |
https:// | https:// | ||
| | ||
Line 244: | Line 244: | ||
sudo -u www-data php updater.phar | sudo -u www-data php updater.phar | ||
| | ||
- | Use redis for everything except local memcache which uses apcu. Also, in this configuration, | + | Use redis for everything except local memcache which uses apcu. Also, in this configuration, |
+ | |||
+ | sudo apt install | ||
+ | sudo apt install | ||
+ | sudo apt-get install php-{xml, | ||
+ | sudo apt-get install php8.3-{xml, | ||
- | sudo apt install memcached php-apcu php-redis redis-server | ||
- | | ||
Then, right underneath the ''' | Then, right underneath the ''' | ||
Line 268: | Line 271: | ||
RewriteRule ^\.well-known/ | RewriteRule ^\.well-known/ | ||
RewriteRule ^\.well-known/ | RewriteRule ^\.well-known/ | ||
+ | | ||
+ | Enable rotation of logs | ||
+ | |||
+ | ' | ||
+ | |||
+ | Delete the log contents (removes errors from admin settings GUI) | ||
+ | | ||
+ | sudo -u www-data truncate nextcloud.log | ||
+ | |||
+ | This will put the logs on a schedule and remove old errors in due time. | ||
- | --- // | + | --- // |