php72-SCL on RaspberryPI for Nextcloud

arm
nextcloud

(Mark Verlinde) #1

Continuing conversation here

Worked on this idea, but it does not work (yet). Not very surprising if you take in to account the hole SCLs are a mystery to me, working more with Arch-linux and Debian. :grinning:

Status so far, we have a testing repo ns-scl which (for simplicity includes the nextcloud bits)

Following the lead of @mrmarkuz edited nethserver-nextcloud, nethserver-rh-php71-php-fpm (on suces we need to rename it) and nextcloud itself.

Good news: dependencies are met and php72-php-fpm is running

# systemctl status php72-php-fpm.service
● php72-php-fpm.service - The PHP FastCGI Process Manager
   Loaded: loaded (/usr/lib/systemd/system/php72-php-fpm.service; enabled; vendor preset: disabled)
   Active: active (running) since Thu 1970-01-01 01:00:26 CET; 48 years 6 months ago
 Main PID: 750 (php-fpm)
   Status: "Processes active: 0, idle: 6, Requests: 2, slow: 0, Traffic: 0req/sec"
   CGroup: /system.slice/php72-php-fpm.service
           ├─ 750 php-fpm: master process (/etc/opt/rh/php72/php-fpm.conf)
           ├─1223 php-fpm: pool www
           ├─1224 php-fpm: pool www
           ├─1225 php-fpm: pool www
           ├─1226 php-fpm: pool www
           ├─1227 php-fpm: pool www
           └─1849 php-fpm: pool www

Jan 01 01:00:20 rpi3p.havak.lan systemd[1]: Starting The PHP FastCGI Process Manager...
Jan 01 01:00:26 rpi3p.havak.lan systemd[1]: Started The PHP FastCGI Process Manager.

(oke date/time are off…, need of a fakeHW-clock??)

Bad news: starting nextcloud:

Error
PHP module zip not installed.
Please ask your server administrator to install the module.
PHP module dom not installed.
Please ask your server administrator to install the module.
PHP module XMLWriter not installed.
Please ask your server administrator to install the module.
PHP module XMLReader not installed.
Please ask your server administrator to install the module.
PHP module libxml not installed.
Please ask your server administrator to install the module.
PHP module SimpleXML not installed.
Please ask your server administrator to install the module.
PHP modules have been installed, but they are still listed as missing?
Please ask your server administrator to restart the web server.

(re)build packages where serious mistakes can be made :

php72-php-pecl-apcu
php72-php-pecl-mcryp
php72-php-smbclient
scl-utils-20130529-18
nethserver-arm-php72-php-fpm
nethserver-nextcloud
nextcloud-13.0.4

Will try to describe how the scls packages are build now (as said still a bit of a mystery to me and docs are longggg…)

Not sure if i can pursuit this it out of my league…


(Mark Verlinde) #2

php72 seems to be running just fine…:

# php72 --modules
[PHP Modules]
apcu
bz2
calendar
Core
ctype
curl
date
exif
fileinfo
filter
ftp
gd
gettext
hash
iconv
intl
json
ldap
libsmbclient
libxml
mbstring
mcrypt
mysqli
mysqlnd
openssl
pcntl
pcre
PDO
pdo_mysql
pdo_sqlite
Phar
readline
Reflection
session
smbclient
sockets
SPL
sqlite3
standard
tokenizer
Zend OPcache
zlib

[Zend Modules]
Zend OPcache

(Mark Verlinde) #3

found one bug, does not solve the issue

repo not updated (yet)

EDIT ns-scl-testing repo updated, to enable:

cat > /etc/yum.repos.d/NethserverSCL.repo << EOF
[ns-scl-testing]
name=Nethserver-arm SCL testing
baseurl=https://nethserver.globalcortex.net/mirror/nethserver-arm/7.5.1804/ns-scl-testing/armhfp/
enabled=1
gpgcheck=0

EOF

(Mark Verlinde) #4

And made progress!

afbeelding

Still errors, now I get @mrmarkuz comment about nethserver-mysql:

Performance warning
SQLite will be used as database.

For larger installations we recommend to choose a different database backend.

Especially when using the desktop client for file syncing the use of SQLite is discouraged.

It’s up to others now, i’am going back to other modules on arm


(Markus Neuberger) #5

Thanks for integrating php72, great work! :clap:

I am going on with nextcloud, install from repo works so far without dependeny problems.


(Mark Verlinde) #6

Nice :+1: It’s all yours. :smiley:

BTW: after doing a clean install from scratch the mysql problems are gone. seems to work oke-ish.


(Markus Neuberger) #7

I can confirm that Nextcloud just works. Very nice!