[ZendTo] New install browser downloads file instead of showingZendto page
Jose M. Sanchez
nresults at comcast.net
Wed Aug 14 07:56:51 BST 2024
Thank you for responding. Here is some additional information.
I am running Debian 12 bookworm.
I have tried purging zendto, apache2 and all php* software and residual directories then re-running the installation script anew, with the same result each time.
I am using all of the defaults the install script gives, pressing return each time.
During the installation of the php modules by the script I see this.
E: Unable to locate package php8.2-sodium
E: Couldn't find any package by glob 'php8.2-sodium'
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Package php8.2-json is a virtual package provided by:
php8.2-phpdbg 8.2.20-1~deb12u1
php8.2-fpm 8.2.20-1~deb12u1
php8.2-cli 8.2.20-1~deb12u1
php8.2-cgi 8.2.20-1~deb12u1
libphp8.2-embed 8.2.20-1~deb12u1
libapache2-mod-php8.2 8.2.20-1~deb12u1
You should explicitly select one to install.
E: Package 'php8.2-json' has no installation candidate
WARNING: Module json ini file doesn't exist under /etc/php/8.2/mods-available
WARNING: Module json ini file doesn't exist under /etc/php/8.2/mods-available
WARNING: Module mysql ini file doesn't exist under /etc/php/8.2/mods-available
WARNING: Module mysql ini file doesn't exist under /etc/php/8.2/mods-available
WARNING: Module sodium ini file doesn't exist under /etc/php/8.2/mods-available
WARNING: Module sodium ini file doesn't exist under /etc/php/8.2/mods-available
There are no other errors issued during the installation.
Thank you.
From: Adam Thorn via ZendTo
Sent: Tuesday, August 13, 2024 3:36 PM
To: zendto at zend.to
Cc: Adam Thorn
Subject: Re: [ZendTo] New install browser downloads file instead of showingZendto page
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
_______________________________________________
ZendTo mailing list
ZendTo at zend.to
http://jul.es/mailman/listinfo/zendto
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://jul.es/pipermail/zendto/attachments/20240814/00339367/attachment.html>
More information about the ZendTo
mailing list