mirror of
https://github.com/YunoHost/doc.git
synced 2024-09-03 20:06:26 +02:00
fix PHP error when running occ as per https://forum.yunohost.org/t/solved-using-occ-command-on-nextcloud/19788/5
This commit is contained in:
parent
ae67386d35
commit
2285fb47c6
2 changed files with 4 additions and 4 deletions
|
@ -130,7 +130,7 @@ Lancez un scan du nouveau répertoire par Nextcloud:
|
|||
|
||||
```bash
|
||||
cd /var/www/nextcloud
|
||||
sudo -u nextcloud php7.3 occ files:scan --all
|
||||
sudo -u nextcloud php8.1 --define apc.enable_cli=1 files:scan --all
|
||||
```
|
||||
|
||||
C'est terminé. À présent testez si tout va bien, essayez de vous connecter à votre instance Nextcloud, envoyer un fichier, vérifiez sa bonne synchronisation.
|
||||
|
@ -274,7 +274,7 @@ Enregistrer le fichier (**CTRL** + **o**) et quitter nano (**CTRL** + **c**).
|
|||
Ensuite lancer un scan en tant que root :
|
||||
|
||||
```bash
|
||||
sudo -u nextcloud php /var/www/nextcloud/occ files:scan --all
|
||||
sudo -u nextcloud php8.1 --define apc.enable_cli=1 files:scan --all
|
||||
```
|
||||
|
||||
À présent, le problème est corrigé.
|
||||
|
|
|
@ -130,7 +130,7 @@ Run a scan of the new directory by Nextcloud:
|
|||
|
||||
```bash
|
||||
cd /var/www/nextcloud
|
||||
sudo -u nextcloud php7.3 occ files:scan --all
|
||||
sudo -u nextcloud php8.1 --define apc.enable_cli=1 files:scan --all
|
||||
```
|
||||
|
||||
Update the YunoHost setting, so automatic upgrades and backups know where the datadir is located:
|
||||
|
@ -195,7 +195,7 @@ Save the file (**CTRL** + **o**) and exit nano (**CTRL** + **c**).
|
|||
Then run a scan by executing next command as root:
|
||||
|
||||
```bash
|
||||
sudo -u nextcloud php /var/www/nextcloud/occ files:scan --all
|
||||
sudo -u nextcloud php8.1 --define apc.enable_cli=1 files:scan --all
|
||||
```
|
||||
|
||||
Now the problem is fixed.
|
||||
|
|
Loading…
Add table
Reference in a new issue