[horde] Installing H6 using composer

Brent impuser at bitrealm.com
Fri Feb 17 21:17:43 UTC 2023


  Quoting Peter Øgaard Meyland <peter at meyland.dk>:

> Hi
>
> I'm trying to install Horde 6 framework using composer and I think  
> I'm doing it the right way, but i keep getting these error in my  
> Apache error log:
>
> /[Fri Feb 17 21:19:26.833298 2023] [php:warn] [pid 22190] [client  
> 127.0.0.1:46542] PHP Warning:   
> require_once(/var/www/horde/vendor/vendor/autoload.php): Failed to  
> open stream: No such file or directory in  
> /var/www/horde/vendor/horde/horde/rampage.php on line 2
> [Fri Feb 17 21:19:26.833339 2023] [php:error] [pid 22190] [client  
> 127.0.0.1:46542] PHP Fatal error:  Uncaught Error: Failed opening  
> required '/var/www/horde/vendor/vendor/autoload.php'  
> (include_path='.:/usr/share/php') in  
> /var/www/horde/vendor/horde/horde/rampage.php:2\nStack trace:\n#0  
> {main}\n  thrown in /var/www/horde/vendor/horde/horde/rampage.php on  
> line 2/
>
> Why does the first logline contains a double vendor? I think that it  
> will work if there only was one vendor. 
>
> What did I do:
>    cd /var/www
>    git clone https://github.com/maintaina-com/horde-deployment.git horde
>    chown -R www-data:www-data horde
>    cd /var/www/horde
>    composer install
>    vi /etc/apache2/sites-available/horde.conf:
>       Alias /horde "/var/www/horde/web"
>       <Directory /var/www/horde/web>
>          Options Indexes FollowSymLinks
>          AllowOverride All
>          Require all granted
>       </Directory>
>    a2ensite horde
>    system reload apache2
>    cd /var/www/horde
>    cp web/horde/config/conf.php.dist var/config/horde/conf.php
>    composer horde-reconfigure
>
> Regards from Denmark
> Peter

Are you trying to access your site as "/horde", so it'd be  
www.example.com/horde  ?

I've not tried to do that. I've only had Horde setup as the root dir  
(/var/www/horde/web) for the server. That is probably where horde is  
getting confused. I've never tried to set it up a a sub-dir. The Alias  
line should be removed and I'd setup a VirutalHost to do it.

<VirtualHost *:443>
      ServerName webmail.test.com
     DocumentRoot /var/www/horde/web
     # Alias /Microsoft-Server-ActiveSync /var/www/horde/web/rpc.php
     DirectoryIndex index.php index.html
    <Directory /var/www/horde>
       AllowOverride All
       Options FollowSymLinks
     </Directory>
</VirtualHost>


More information about the horde mailing list