You are not logged in.
Pages: 1
Hey I am trying to install nextcloud by following wiki
I choose php insted of php-legacy
I am getting this error
```fish
isrv@ArchVM ~/paru-bin (master)> sudo occ maintenance:install \
--database=mysql \
--database-name=nextcloud \
--database-host=localhost:/run/mysqld/mysqld.sock \
--database-user=nextcloud \
--database-pass=nextcloudpasswd \
--admin-pass=root \
--admin-email=[cant show]\
--data-dir=/var/lib/nextcloud/data
runuser: failed to execute /usr/bin/php-legacy: No such file or directory
```
And yes I have set
`export NEXTCLOUD_PHP_CONFIG=/etc/webapps/nextcloud/php.ini`
even if i install php-legacy it gives this error
```fish
isrv@ArchVM ~/paru-bin (master)> sudo occ maintenance:install \
--database=mysql \
--database-name=nextcloud \
--database-host=localhost:/run/mysqld/mysqld.sock \
--database-user=nextcloud \
--database-pass=nextcloudpasswd \
--admin-pass=root \
--admin-email=[cant show]\
--data-dir=/var/lib/nextcloud/data
The current PHP memory limit is below the recommended value of 512MB.
No database drivers (sqlite, mysql, or postgresql) installed.
PHP module GD not installed.
Please ask your server administrator to install the module.
An unhandled exception has been thrown:
Exception: Environment not properly prepared. in /usr/share/webapps/nextcloud/lib/private/Console/Application.php:167
Stack trace:
#0 /usr/share/webapps/nextcloud/console.php(99): OC\Console\Application->loadCommands()
#1 /usr/share/webapps/nextcloud/occ(11): require_once('...')
#2 {main}⏎
```
For some reason even after exporting the address my occ is not taking it into considration
Yes i have tried it wish bash
In general i am using fish
Yes, i am expoerting in same session as i am OCCing
A523 1348 2964 6091 F9fe 8a5c B731 1e54 D05e B9d7
Offline
OK I noticed a thing that i exported it as nromal user and not root so i tried occ without root and yes this timeI got different error
isrv@ArchVM ~/paru-bin (master) [SIGINT]> occ maintenance:install \
--database=mysql \
--database-name=nextcloud \
--database-host=localhost:/run/mysqld/mysqld.sock \
--database-user=nextcloud \
--database-pass=nextcloudpasswd \
--admin-pass=root \
--admin-email=ishank@bigbeastishank.com \
--data-dir=/var/lib/nextcloud/data
PHP Warning: PHP Startup: bcmath: Unable to initialize module
Module compiled with module API=20230831
PHP compiled with module API=20220829
These options need to match
in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library 'bz2' (tried: /usr/lib/php/modules/bz2 (/usr/lib/php/modules/bz2: cannot open shared object file: No such file or directory), /usr/lib/php/modules/bz2.so (/usr/lib/php/modules/bz2.so: undefined symbol: zend_zval_value_name)) in Unknown on line 0
PHP Warning: PHP Startup: curl: Unable to initialize module
Module compiled with module API=20230831
PHP compiled with module API=20220829
These options need to match
in Unknown on line 0
PHP Warning: PHP Startup: exif: Unable to initialize module
Module compiled with module API=20230831
PHP compiled with module API=20220829
These options need to match
in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library 'gd' (tried: /usr/lib/php/modules/gd (/usr/lib/php/modules/gd: cannot open shared object file: No such file or directory), /usr/lib/php/modules/gd.so (/usr/lib/php/modules/gd.so: undefined symbol: zend_zval_value_name)) in Unknown on line 0
PHP Warning: PHP Startup: iconv: Unable to initialize module
Module compiled with module API=20230831
PHP compiled with module API=20220829
These options need to match
in Unknown on line 0
PHP Warning: PHP Startup: intl: Unable to initialize module
Module compiled with module API=20230831
PHP compiled with module API=20220829
These options need to match
in Unknown on line 0
PHP Warning: PHP Startup: pdo_mysql: Unable to initialize module
Module compiled with module API=20230831
PHP compiled with module API=20220829
These options need to match
in Unknown on line 0
PHP Warning: PHP Startup: sodium: Unable to initialize module
Module compiled with module API=20230831
PHP compiled with module API=20220829
These options need to match
in Unknown on line 0
PHP Warning: PHP Startup: sysvsem: Unable to initialize module
Module compiled with module API=20230831
PHP compiled with module API=20220829
These options need to match
in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library 'zip' (tried: /usr/lib/php/modules/zip (/usr/lib/php/modules/zip: cannot open shared object file: No such file or directory), /usr/lib/php/modules/zip.so (/usr/lib/php/modules/zip.so: undefined symbol: zend_declare_typed_class_constant)) in Unknown on line 0
PHP Warning: PHP Startup: imagick: Unable to initialize module
Module compiled with module API=20230831
PHP compiled with module API=20220829
These options need to match
in Unknown on line 0
No database drivers (sqlite, mysql, or postgresql) installed.
PHP module zip not installed.
Please ask your server administrator to install the module.
PHP module GD not installed.
Please ask your server administrator to install the module.
PHP module cURL not installed.
Please ask your server administrator to install the module.
An unhandled exception has been thrown:
Exception: Environment not properly prepared. in /usr/share/webapps/nextcloud/lib/private/Console/Application.php:167
Stack trace:
#0 /usr/share/webapps/nextcloud/console.php(99): OC\Console\Application->loadCommands()
#1 /usr/share/webapps/nextcloud/occ(11): require_once('...')
#2 {main}
A523 1348 2964 6091 F9fe 8a5c B731 1e54 D05e B9d7
Offline
Trying to install php83-gb php83-curl php83-zip is showing
make[3]: *** [Makefile:932: osdep.o] Error 1
make[3]: Leaving directory '/home/isrv/.cache/paru/clone/c-client/src/imap-src/c-client'
make[2]: *** [Makefile:499: lnp] Error 2
make[2]: Leaving directory '/home/isrv/.cache/paru/clone/c-client/src/imap-src/c-client'
make[1]: *** [Makefile:688: OSTYPE] Error 2
make[1]: Leaving directory '/home/isrv/.cache/paru/clone/c-client/src/imap-src'
make: *** [Makefile:311: lnp] Error 2
==> ERROR: A failure occurred in build().
Aborting...
error: failed to build 'c-client-2007f-20':
error: can't build php83-8.3.6-1 (php83 php83-zip php83-gd php83-curl), deps not satisfied: c-client c-client c-client c-client
error: packages failed to build: c-client-2007f-20 php83-8.3.6-1 (php83 php83-zip php83-gd php83-curl)
and it is not compilling
A523 1348 2964 6091 F9fe 8a5c B731 1e54 D05e B9d7
Offline
Pages: 1