7

When I want to start Apache2 on my Ubuntu Server, I have this error

AH00526: Syntax error on line 49 of /etc/apache2/sites-enabled/bookstyle.sokrator.net.conf:
Invalid command 'php_admin_value', perhaps misspelled or defined by a module not included in the server configuration

How can I solve this?

Zanna
  • 72,312
s4n.ty
  • 127

3 Answers3

3

I solved doing this:

a2enmod php5.6-fpm 
service apache2 restart
s4n.ty
  • 127
2

after upgrading 20.04 to 22.04 had this problem solved with php8.1 mod enabling

sudo a2enmod php8.1
0

We had the same problem after updating from PHP 7.x to PHP 8.1. The hint from s4n.ty was what we needed. However, we're using PHP via Apache module, so our solution was this:

sudo apt install libapache2-mod-php8.1
BurninLeo
  • 186