Apache PHP no longer working after upgrading to 19.10 from 19.04
772
I updated my Ubuntu from 19.04 to 19.10. Now the Apache PHP is not working. All I get is the raw PHP code instead of the rendered PHP. How can I fix this?
Then you are going to need to enable php (this may be the only step you need to do)
sudo a2enmod php7.x
*Note X is for your version of PHP (As of my writing installing php will install 7.3).
Also note that you may not need to uninstall apache2/php and then reinstall. This is how I did it before I enabled PHP again. Hope this helps.
upgraded the other day and found the same issue today when I went to start writing some PHP. My solution was this:
This will uninstall apache2 and php, then we need to reinstall:
Then you are going to need to enable php (this may be the only step you need to do)
*Note X is for your version of PHP (As of my writing installing php will install 7.3). Also note that you may not need to uninstall apache2/php and then reinstall. This is how I did it before I enabled PHP again. Hope this helps.
I had the same issue I just ran
sudo a2enmod php7.3
and it worked.