[ apache24 (PHP 7) ] Web Server
Re: [ apache24 (PHP 7) ][ 2.4.51.1 ] Web Server
Now works great, thanks again for your hard work!
TNAS F2-220
TOS 5.0.176
TOS 5.0.176
Re: [ apache24 (PHP 7) ][ 2.4.51.1 ] Web Server
Hello,
I have installed and reinstalled this, but I am not getting access to the configuration files.
I need to use PHP 7.4 with the OKM Nextcloud installation but I cannot begin to edit the configuration files. Any tips/recommendations?
I have installed and reinstalled this, but I am not getting access to the configuration files.
I need to use PHP 7.4 with the OKM Nextcloud installation but I cannot begin to edit the configuration files. Any tips/recommendations?
Re: [ apache24 (PHP 7) ][ 2.4.51.1 ] Web Server
I have gotten slightly further with this in the meantime.
I was able to find php v7.4 in
However, I am trying to run the cron.php job with Nextcloud (OKM edition) and when I run:
I get
It follows that adding the same line to crontab will also not work. Any ideas?
I was able to find php v7.4 in
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.php
Code: Select all
Error: Class 'PDO' not found in /mnt/md0/application/Nextcloud_okm/bin/nextcloud/lib/private/DB/Connection.php:103
Re: [ apache24 (PHP 7) ][ 2.4.51.1 ] Web Server
install the latest Nextcloud_okm app (23.0.0.1) and run
for cron use
Code: Select all
sudo -u www-data Nextcloud_okm cron.php
Code: Select all
*/5 * * * * www-data /usr/local/bin/Nextcloud_okm cron.php
Re: [ apache24 (PHP 7) ][ 2.4.51.1 ] Web Server
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:
setting:
and then changing the setting from within Nextcloud from Ajax to cron.
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.
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.ini
Code: Select all
crontab -u www-data -e
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:
Code: Select all
/usr/local/apache24/sys/etc/
Re: [ apache24 (PHP 7) ][ 2.4.51.1 ] Web Server
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]
Re: [ apache24 (PHP 7) ][ 2.4.51.1 ] Web Server
You don't have to copy any php.ini
Every app i made and which depend on apache, have his own php.ini located at /mnt/appdata/MOD_CONFIG/modulename
As example, the php.ini used by Nextcloud_okm is located at /mnt/appdata/MOD_CONFIG/Nextcloud_okm.
My apache module contains php 7.4 and if you want you can also install php8
Every app can be configured to used whatever version of PHP you want, from the available ones, and these are not interfering with the php version from TOS
I made these app to be as easy as possible to be configured by each user
Every app i made and which depend on apache, have his own php.ini located at /mnt/appdata/MOD_CONFIG/modulename
As example, the php.ini used by Nextcloud_okm is located at /mnt/appdata/MOD_CONFIG/Nextcloud_okm.
My apache module contains php 7.4 and if you want you can also install php8
Every app can be configured to used whatever version of PHP you want, from the available ones, and these are not interfering with the php version from TOS
I made these app to be as easy as possible to be configured by each user
Re: [ apache24 (PHP 7) ][ 2.4.51.1 ] Web Server
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.ini
setting: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/
Re: [ apache24 (PHP 7) ][ 2.4.51.2 ] Web Server
up to 2.4.51.2
Re: [ apache24 (PHP 7) ][ 2.4.53.0 ] Web Server
up to 2.4.53.0