[ZendTo] New install browser downloads file instead of showing Zendto page

Adam Thorn alt36 at cam.ac.uk
Tue Aug 13 20:35:53 BST 2024


On 13/08/2024 20:04, Jose M. Sanchez via ZendTo wrote:
> Hello all
> 
> Whenever I attempt to connect to Zendto via a browser, the browser ends 
> up downloading a file instead of actually showing the web page.
> 
> I ran into this a few years ago and remember finding a fix for the issue 
> in the Archives.
> 
> Unfortunately there does not seem to be a good way to search the post 
> Archives or at least I don’t know how…
> 
> I remember that this was due to some required change in either Apache or 
> PHP.

I'd normally expect this to "just work" on a typical apache + php 
installation. The details will depend upon your OS and whether you've 
used the apache/php/etc packages provided by the distribution, or 
installed them from another route.

As an example: I have Zendto on Ubuntu 22.04. I ensure I have 
libapache2-mod-php8.1 installed (which probably installs other 
php-related packages via dependencies), and one config file that package 
provides is /etc/apache2/mods-available/php8.1.conf which includes - 
amongst other things - this block to configure handling of .php files:

<FilesMatch ".+\.ph(ar|p|tml)$">
     SetHandler application/x-httpd-php
</FilesMatch>

That then gets symlinked to /etc/apache/mods-enabled upon enabling the 
apache module (I don't recall if this happens automatically on my distro 
upon installing the package, or if one has to "a2enmod php8.1 ; 
apache2ctl restart")

The behaviour you're describing makes me suspect you either don't have 
the right apache module installed, or it isn't enabled, or the config 
fragment to handle .php files isn't enabled or is incorrect, or if 
something else in your apache config is overriding the SetHandler line 
for .php (unlikely but possible)

If you can provide more details about your OS/apache/php setup, someone 
might be able to offer more detail on making sure apache is properly 
configured.

Adam



More information about the ZendTo mailing list