[dev] Horde installation and test.php

Sebastian Birnbach birnbacs at gmail.com
Thu Jan 3 11:30:03 UTC 2019


Followup:

I noticed that I need to run 'horde-db-migrate' with superuser privileges
(see below) so that all PEAR libraries get found.

Maybe there is a connection to the test.php problem?

In the pkg-based installation no superuser privileges are required for that
script. $PATH is identical for the normal user and the super user:
[develop at ixie /usr/local/www/horde]$ echo $PATH
/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/home/develop/bin
[develop at ixie /usr/local/www/horde]$ sudo echo $PATH
/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/home/develop/bin

[develop at ixie /usr/local/www/horde]$ horde-db-migrate -ds
PHP Warning:
require_once(/usr/local/lib/php/pear/www/horde/lib/Application.php): failed
to open stream: No such file or directory in
/usr/local/bin/horde-db-migrate on line 29

Warning:
require_once(/usr/local/lib/php/pear/www/horde/lib/Application.php): failed
to open stream: No such file or directory in
/usr/local/bin/horde-db-migrate on line 29
PHP Fatal error:  require_once(): Failed opening required
'/usr/local/lib/php/pear/www/horde/lib/Application.php'
(include_path='.:/usr/local/share/pear') in /usr/local/bin/horde-db-migrate
on line 29

Fatal error: require_once(): Failed opening required
'/usr/local/lib/php/pear/www/horde/lib/Application.php'
(include_path='.:/usr/local/share/pear') in /usr/local/bin/horde-db-migrate
on line 29
[develop at ixie /usr/local/www/horde]$ sudo horde-db-migrate -ds
[  INFO  ] Migrating DB up.
[  INFO  ] Current imp schema version: 3
[  INFO  ] Ending imp schema version: 3
[  INFO  ] Current Horde_ActiveSync schema version: 23
[  INFO  ] Ending Horde_ActiveSync schema version: 23
[  INFO  ] Current Horde_Alarm schema version: 2
[  INFO  ] Ending Horde_Alarm schema version: 2
[  INFO  ] Current Horde_Auth schema version: 1
[  INFO  ] Ending Horde_Auth schema version: 1
[  INFO  ] Current Horde_Cache schema version: 2
[  INFO  ] Ending Horde_Cache schema version: 2
[  INFO  ] Current Horde_Core schema version: 1
[  INFO  ] Ending Horde_Core schema version: 1
[  INFO  ] Current Horde_Dav schema version: 2
[  INFO  ] Ending Horde_Dav schema version: 2
[  INFO  ] Current Horde_Group schema version: 3
[  INFO  ] Ending Horde_Group schema version: 3
[  INFO  ] Current Horde_History schema version: 6
[  INFO  ] Ending Horde_History schema version: 6
[  INFO  ] Current Horde_Imap_Client schema version: 2
[  INFO  ] Ending Horde_Imap_Client schema version: 2
[  INFO  ] Current Horde_Lock schema version: 3
[  INFO  ] Ending Horde_Lock schema version: 3
[  INFO  ] Current Horde_Perms schema version: 3
[  INFO  ] Ending Horde_Perms schema version: 3
[  INFO  ] Current Horde_Prefs schema version: 3
[  INFO  ] Ending Horde_Prefs schema version: 3
[  INFO  ] Current Horde_Queue schema version: 1
[  INFO  ] Ending Horde_Queue schema version: 1
[  INFO  ] Current Horde_Service_Weather schema version: 2
[  INFO  ] Ending Horde_Service_Weather schema version: 2
[  INFO  ] Current Horde_SessionHandler schema version: 2
[  INFO  ] Ending Horde_SessionHandler schema version: 2
[  INFO  ] Current Horde_SyncMl schema version: 1
[  INFO  ] Ending Horde_SyncMl schema version: 1
[  INFO  ] Current Horde_Token schema version: 1
[  INFO  ] Ending Horde_Token schema version: 1
[  INFO  ] Current Horde_Vfs schema version: 4
[  INFO  ] Ending Horde_Vfs schema version: 4


Am Do., 3. Jan. 2019 um 11:49 Uhr schrieb Sebastian Birnbach <
birnbacs at gmail.com>:

> After 10 days of fiddling with pkg I finally resolved to build Horde the
> hard way, that is, with self-compiled everything, starting with PHP, and
> pulling Horde via pear.
>
> This proved successful and I could overcome problems I had before (like
> being unable to install the 'passwd' application, or a version mismatch
> with libicu for dovecot).
>
> Horde and Imp seem to be fine as far as I could test so far. However, upon
> running test.php I get an error I don't understand, maybe you guys can give
> me a hand with this, please:
>
> Ein schwerer Fehler ist aufgetreten:
> syntax error, unexpected 'new' (T_NEW)in
> /usr/local/share/pear/File/Fstab.php:110
>
> 1. Horde_Test->pearModuleCheck() /usr/local/www/horde/test.php:135
> 2. class_exists() /usr/local/www/horde/lib/Test.php:646
> 3. spl_autoload_call()
> 4. Horde_Autoloader->loadClass()
> 5. Horde_Autoloader->_include() /usr/local/share/pear/Horde/Autoloader.php:65
>
> DetailsDie vollständige Fehlermeldung wurde in Hordes Logdatei
> geschrieben und für Administratoren weiter unten ausgegeben. Benutzer, die
> keine Administratoren sind, bekommen diese Details nicht zu sehen.
>
> ParseError Object
> (
>     [message:protected] => syntax error, unexpected 'new' (T_NEW)
>     [string:Error:private] => ParseError: syntax error, unexpected 'new' (T_NEW) in /usr/local/share/pear/File/Fstab.php:110
> Stack trace:
> #0 /usr/local/share/pear/Horde/Autoloader.php(65): Horde_Autoloader->_include('/usr/local/shar...')
> #1 [internal function]: Horde_Autoloader->loadClass('File_Fstab')
> #2 [internal function]: spl_autoload_call('File_Fstab')
> #3 /usr/local/www/horde/lib/Test.php(646): class_exists('File_Fstab')
> #4 /usr/local/www/horde/test.php(135): Horde_Test->pearModuleCheck()
> #5 {main}
>     [code:protected] => 0
>     [file:protected] => /usr/local/share/pear/File/Fstab.php
>     [line:protected] => 110
>     [trace:Error:private] => Array
>         (
>             [0] => Array
>                 (
>                     [file] => /usr/local/share/pear/Horde/Autoloader.php
>                     [line] => 65
>                     [function] => _include
>                     [class] => Horde_Autoloader
>                     [type] => ->
>                     [args] => Array
>                         (
>                             [0] => /usr/local/share/pear/File/Fstab.php
>                         )
>
>                 )
>
>             [1] => Array
>                 (
>                     [function] => loadClass
>                     [class] => Horde_Autoloader
>                     [type] => ->
>                     [args] => Array
>                         (
>                             [0] => File_Fstab
>                         )
>
>                 )
>
>             [2] => Array
>                 (
>                     [function] => spl_autoload_call
>                     [args] => Array
>                         (
>                             [0] => File_Fstab
>                         )
>
>                 )
>
>             [3] => Array
>                 (
>                     [file] => /usr/local/www/horde/lib/Test.php
>                     [line] => 646
>                     [function] => class_exists
>                     [args] => Array
>                         (
>                             [0] => File_Fstab
>                         )
>
>                 )
>
>             [4] => Array
>                 (
>                     [file] => /usr/local/www/horde/test.php
>                     [line] => 135
>                     [function] => pearModuleCheck
>                     [class] => Horde_Test
>                     [type] => ->
>                     [args] => Array
>                         (
>                         )
>
>                 )
>
>         )
>
>     [previous:Error:private] =>
> )
>
>
>
> Here are the warnings I ignored during installation:
> WARNING: "pear/Console_Getopt" is deprecated in favor of
> "pear/Console_GetoptPlus"
> Failed to download pecl/sasl within preferred state "stable", latest
> release is version 0.1.0, stability "alpha", use "channel://
> pecl.php.net/sasl-0.1.0" to install
> Failed to download horde/Horde_Backup within preferred state "stable",
> latest release is version 1.0.0RC1, stability "beta", use "channel://
> pear.horde.org/Horde_Backup-1.0.0RC1" to install
> Failed to download pecl/idn within preferred state "stable", latest
> release is version 0.2.0, stability "beta", use "channel://
> pecl.php.net/idn-0.2.0" to install
> WARNING: "pear/HTTP_Request" is deprecated in favor of "pear/HTTP_Request2"
> WARNING: "pear/DB" is deprecated in favor of "pear/MDB2"
> Failed to download pear/SOAP within preferred state "stable", latest
> release is version 0.14.0, stability "beta", use "channel://
> pear.php.net/SOAP-0.14.0" to install
> Failed to download pear/XML_Serializer within preferred state "stable",
> latest release is version 0.21.0, stability "beta", use "channel://
> pear.php.net/XML_Serializer-0.21.0" to install
> Failed to download pear/Console_Color2 within preferred state "stable",
> latest release is version 0.1.2, stability "alpha", use "channel://
> pear.php.net/Console_Color2-0.1.2" to install
> Unknown remote channel: pear.nrk.io
> WARNING: "pear/HTTP_Request" is deprecated in favor of "pear/HTTP_Request2"
> WARNING: "pecl/mongo" is deprecated in favor of "channel:///mongodb"
> Failed to download pear/Numbers_Words within preferred state "stable",
> latest release is version 0.18.2, stability "beta", use "channel://
> pear.php.net/Numbers_Words-0.18.2" to install
> Failed to download pear/Image_Text within preferred state "stable", latest
> release is version 0.7.0, stability "beta", use "channel://
> pear.php.net/Image_Text-0.7.0" to install
> WARNING: "pear/Auth_SASL" is deprecated in favor of "pear/Auth_SASL2"
> WARNING: "pear/Net_URL" is deprecated in favor of "pear/Net_URL2"
> WARNING: "pear/HTTP_Request" is deprecated in favor of "pear/HTTP_Request2"
> WARNING: "pear/Auth_SASL" is deprecated in favor of "pear/Auth_SASL2"
>
> Any help greatly appreciated
>
>   birnbacs
>


More information about the dev mailing list