Web Server - Php stopped working

New to Debian (Or Linux in general)? Ask your questions here!
Post Reply
Posts: 1
Joined: 2021-07-02 10:20

Web Server - Php stopped working

#1 Post by FightingViper »

My web server is no longer rendering my php even creating a phpinfo.php file with phpinfo() ; in it doesn't bring up the PHP info screen. I think this is because debian updated my php from 7.4 to 8.0

I am looking to fix this and saw that it might be to do with my apache config file located at /etc/apache2/apache.conf

I opened this in nano and gedit and it is empty.

If I do a php -v at terminal I get the following

Code: Select all

php -v
PHP 8.0.8 (cli) (built: Jul  1 2021 16:14:13) ( NTS )
Copyright (c) The PHP Group
Zend Engine v4.0.8, Copyright (c) Zend Technologies
    with Zend OPcache v8.0.8, Copyright (c), by Zend Technologies
What do I need in my config file for my php to start working again?

Post Reply