libapache2-mod-php7.0

I'm really new to linode and debian and am having trouble getting libapache2-mod-php7.0 to install. I ran:

$sudo apt install php7.0-mysql php7.0-curl php7.0-json php7.0-cgi php7.0 libapache2-mod-php7.0

It returned 1 error on the post installation of the libapache2-mod-php7.0. Like I said, I'm not a Debian wiz and I'm stumped. If anyone could help me out, it'd be greatly appreciated!

2 Replies

Please share the full output. And why PHP 7.0? It's been EOL for 11 months and no more security fixes in 2 weeks.

Setting up libapache2-mod-php7.0 (7.0.30-0+deb9u1) …
dpkg: error processing package libapache2-mod-php7.0 (--configure):
subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of libapache2-mod-php:
libapache2-mod-php depends on libapache2-mod-php7.0; however:
Package libapache2-mod-php7.0 is not configured yet.

dpkg: error processing package libapache2-mod-php (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
libapache2-mod-php7.0
libapache2-mod-php
E: Sub-process /usr/bin/dpkg returned an error code (1)

Also, I am just following a linode tutorial on the subject and trying to get an understanding of it all. Should I be using 7.2?

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct