Re: [ apache24 (PHP 7) ][ 2.4.51.1 ] Web Server
Posted: 21 Nov 2021, 01:14
Now works great, thanks again for your hard work!
Bug Reports, Operation Guides, and Experience Sharing
https://forum.terra-master.com/en/
Code: Select all
/usr/local/apache24/sys/bin/Code: Select all
sudo -u www-data /usr/local/apache24/sys/bin/php -f /mnt/md0/application/Nextcloud_okm/bin/nextcloud/cron.phpCode: Select all
Error: Class 'PDO' not found in /mnt/md0/application/Nextcloud_okm/bin/nextcloud/lib/private/DB/Connection.php:103Code: Select all
sudo -u www-data Nextcloud_okm cron.php
Code: Select all
*/5 * * * * www-data /usr/local/bin/Nextcloud_okm cron.php
Code: Select all
cp /mnt/md0/appdata/MOD_CONFIG/Nextcloud_okm/php.ini /usr/local/apache24/sys/etc/php.ini
Code: Select all
crontab -u www-data -eCode: Select all
*/5 * * * * /usr/local/apache24/sys/bin/php -f /usr/local/Nextcloud_okm/bin/nextcloud/cron.phpCode: Select all
/usr/local/apache24/sys/etc/Code: Select all
/usr/local/apache24/sys/bin/php -i | grep 'Configuration File'Code: Select all
Configuration File (php.ini) Path => /usr/local/apache24/sys/etc
Loaded Configuration File => [none]Don't mess up the apps by manually copying files from nextcloud to apache and so on. Everything is needed is included in the apps itself. Nextcloud_okm has nothing to do with the php version from TOS.sanctimon wrote: ↑07 Dec 2021, 05:15 That's what I did at first, but it would complain that Nextcloud 23 cannot use php 7.1, which is apparently what comes as standard on TOS and does not get replaced, even when you install other versions. (I am a bit lost as to how these PATHs are set up on TOS and there is very little information/documentation to go around.
I got around this by running:Code: Select all
cp /mnt/md0/appdata/MOD_CONFIG/Nextcloud_okm/php.ini /usr/local/apache24/sys/etc/php.inisetting:Code: Select all
crontab -u www-data -e
and then changing the setting from within Nextcloud from Ajax to cron.Code: Select all
*/5 * * * * /usr/local/apache24/sys/bin/php -f /usr/local/Nextcloud_okm/bin/nextcloud/cron.php
I had to copy the php.ini file from within the Nextcloud folder, as the php command was trying to find a php.ini here:
but there were no php.ini files there.Code: Select all
/usr/local/apache24/sys/etc/