<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=utf-8"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
.MsoChpDefault
{mso-style-type:export-only;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style></head><body lang=EN-US link=blue vlink="#954F72" style='word-wrap:break-word'><div class=WordSection1><p class=MsoNormal>Thank you for responding. Here is some additional information.</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>I am running Debian 12 bookworm.</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>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.</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>I am using all of the defaults the install script gives, pressing return each time.</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>During the installation of the php modules by the script I see this. </p><div style='mso-element:para-border-div;border:none;border-bottom:solid windowtext 1.0pt;padding:0in 0in 1.0pt 0in'><p class=MsoNormal style='border:none;padding:0in'><o:p> </o:p></p></div><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>E: Unable to locate package php8.2-sodium</p><p class=MsoNormal>E: Couldn't find any package by glob 'php8.2-sodium'</p><p class=MsoNormal>Reading package lists... Done</p><p class=MsoNormal>Building dependency tree... Done</p><p class=MsoNormal>Reading state information... Done</p><p class=MsoNormal>Package php8.2-json is a virtual package provided by:</p><p class=MsoNormal> php8.2-phpdbg 8.2.20-1~deb12u1</p><p class=MsoNormal> php8.2-fpm 8.2.20-1~deb12u1</p><p class=MsoNormal> php8.2-cli 8.2.20-1~deb12u1</p><p class=MsoNormal> php8.2-cgi 8.2.20-1~deb12u1</p><p class=MsoNormal> libphp8.2-embed 8.2.20-1~deb12u1</p><p class=MsoNormal> libapache2-mod-php8.2 8.2.20-1~deb12u1</p><p class=MsoNormal>You should explicitly select one to install.</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>E: Package 'php8.2-json' has no installation candidate</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>WARNING: Module json ini file doesn't exist under /etc/php/8.2/mods-available</p><p class=MsoNormal>WARNING: Module json ini file doesn't exist under /etc/php/8.2/mods-available</p><p class=MsoNormal>WARNING: Module mysql ini file doesn't exist under /etc/php/8.2/mods-available</p><p class=MsoNormal>WARNING: Module mysql ini file doesn't exist under /etc/php/8.2/mods-available</p><p class=MsoNormal>WARNING: Module sodium ini file doesn't exist under /etc/php/8.2/mods-available</p><div style='mso-element:para-border-div;border:none;border-bottom:solid windowtext 1.0pt;padding:0in 0in 1.0pt 0in'><p class=MsoNormal style='border:none;padding:0in'>WARNING: Module sodium ini file doesn't exist under /etc/php/8.2/mods-available</p></div><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>There are no other errors issued during the installation.</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Thank you.</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><o:p> </o:p></p><div style='mso-element:para-border-div;border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in'><p class=MsoNormal style='border:none;padding:0in'><b>From: </b><a href="mailto:zendto@zend.to">Adam Thorn via ZendTo</a><br><b>Sent: </b>Tuesday, August 13, 2024 3:36 PM<br><b>To: </b><a href="mailto:zendto@zend.to">zendto@zend.to</a><br><b>Cc: </b><a href="mailto:alt36@cam.ac.uk">Adam Thorn</a><br><b>Subject: </b>Re: [ZendTo] New install browser downloads file instead of showingZendto page</p></div><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>On 13/08/2024 20:04, Jose M. Sanchez via ZendTo wrote:</p><p class=MsoNormal>> Hello all</p><p class=MsoNormal>> </p><p class=MsoNormal>> Whenever I attempt to connect to Zendto via a browser, the browser ends </p><p class=MsoNormal>> up downloading a file instead of actually showing the web page.</p><p class=MsoNormal>> </p><p class=MsoNormal>> I ran into this a few years ago and remember finding a fix for the issue </p><p class=MsoNormal>> in the Archives.</p><p class=MsoNormal>> </p><p class=MsoNormal>> Unfortunately there does not seem to be a good way to search the post </p><p class=MsoNormal>> Archives or at least I don’t know how…</p><p class=MsoNormal>> </p><p class=MsoNormal>> I remember that this was due to some required change in either Apache or </p><p class=MsoNormal>> PHP.</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>I'd normally expect this to "just work" on a typical apache + php </p><p class=MsoNormal>installation. The details will depend upon your OS and whether you've </p><p class=MsoNormal>used the apache/php/etc packages provided by the distribution, or </p><p class=MsoNormal>installed them from another route.</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>As an example: I have Zendto on Ubuntu 22.04. I ensure I have </p><p class=MsoNormal>libapache2-mod-php8.1 installed (which probably installs other </p><p class=MsoNormal>php-related packages via dependencies), and one config file that package </p><p class=MsoNormal>provides is /etc/apache2/mods-available/php8.1.conf which includes - </p><p class=MsoNormal>amongst other things - this block to configure handling of .php files:</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><FilesMatch ".+\.ph(ar|p|tml)$"></p><p class=MsoNormal> SetHandler application/x-httpd-php</p><p class=MsoNormal></FilesMatch></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>That then gets symlinked to /etc/apache/mods-enabled upon enabling the </p><p class=MsoNormal>apache module (I don't recall if this happens automatically on my distro </p><p class=MsoNormal>upon installing the package, or if one has to "a2enmod php8.1 ; </p><p class=MsoNormal>apache2ctl restart")</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>The behaviour you're describing makes me suspect you either don't have </p><p class=MsoNormal>the right apache module installed, or it isn't enabled, or the config </p><p class=MsoNormal>fragment to handle .php files isn't enabled or is incorrect, or if </p><p class=MsoNormal>something else in your apache config is overriding the SetHandler line </p><p class=MsoNormal>for .php (unlikely but possible)</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>If you can provide more details about your OS/apache/php setup, someone </p><p class=MsoNormal>might be able to offer more detail on making sure apache is properly </p><p class=MsoNormal>configured.</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Adam</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>_______________________________________________</p><p class=MsoNormal>ZendTo mailing list</p><p class=MsoNormal>ZendTo@zend.to</p><p class=MsoNormal>http://jul.es/mailman/listinfo/zendto</p><p class=MsoNormal><o:p> </o:p></p></div></body></html>