Re: Apache2/PHP7 fails in Buster
On Thu, Jan 16, 2020 at 02:59:15PM +0000, Tony van der Hoff wrote:
>
>
> On 16/01/2020 14:52, Roberto C. Sánchez wrote:
> > On Thu, Jan 16, 2020 at 02:39:21PM +0000, Tony van der Hoff wrote:
> > >
> > >
> > > On 16/01/2020 14:35, Roberto C. Sánchez wrote:
> > > > On Thu, Jan 16, 2020 at 02:27:16PM +0000, Tony van der Hoff wrote:
> > > > > Hi,
> > > > >
> > > > > I have a up to date Buster system as a fresh install (not upgrade).
> > > > >
> > > > > My PHP scripts, which used to work fine under Stretch, are now failing - the
> > > > > browser just shows the script source.
> > > > >
> > > > > a2enmod php7.3 shows ERROR: Module php7.3 does not exist!
> > > > >
> > > > > apt-get install libapache2-mod-php7.3 shows libapache2-mod-php7.3 is already
> > > > > the newest version (7.3.11-1~deb10u1)
> > > > >
> > > > > OK, so what is going wrong, please?
> > > >
> > > > What is the output of `ls -l /etc/apache2/mods-*'?
> > >
> > [SNIP]
> >
> > That looks like the contents of /etc/apache2/mods-enabled. Do you have
> > a directory /etc/apache2/mods-available? You must, or your Apache
> > installation would be completely broken. Can you look in
> > /etc/apache2/mods-available to see if there is a PHP module listed there
> > as available?
> >
>
> Yes, you're right. I missed half the output, sorry. But there is no PHP
> module there, which is why I tried apt-get install libapache2-mod-php7.3.
>
[SNIP]
Well, you are definitely missing the module file. It should be in that
package:
apt-file search php7.3.load
libapache2-mod-php7.3: /etc/apache2/mods-available/php7.3.load
I recommend this: sudo apt-get install --reinstall libapache2-mod-php7.3
After that recheck the contents of /etc/apache2/mods-available to see if
the file is there.
Regards,
-Roberto
--
Roberto C. Sánchez
Reply to: