T
T
timaksochi2020-08-25 09:02:33
Apache HTTP Server
timaksochi, 2020-08-25 09:02:33

apache 2.4 config error?

Greetings.
I decided to install phpmyadmin according to these instructions at the stage of checking the Apache configuration for errors:
apachectl -t
got errors:

apachectl -t
apache2: Syntax error on line 222 of /etc/apache2/apache2.conf: Syntax error on line 6 of /etc/apache2/conf-enabled/pma.conf: Expected but saw php_valu>
Action '-t' failed .
The Apache error log may have more information.

Apache logs are as follows:
[Tue Aug 25 04:42:22.629416 2020] [mpm_event:notice] [pid 2174:tid 140106043835520] AH00489: Apache/2.4.38 (Debian) configured -- resuming normal operations
[Tue Aug 25 04:42:22.629672 2020] [core:notice] [pid 2174:tid 140106043835520] AH00094: Command line: '/usr/sbin/apache2'
[Tue Aug 25 04:42:25.391092 2020] [mpm_event:notice] [pid 2174:tid 14010604383050491] caught SIGTERM, shutting down
[Tue Aug 25 04:42:25.574463 2020] [mpm_prefork:notice] [pid 3080] AH00163: Apache/2.4.38 (Debian) configured -- resuming normal operations
[Tue Aug 25 04:42:25.574685 2020] [core:notice] [pid 3080] AH00094: Command line: '/usr/sbin/apache2'
[Tue Aug 25 04:42:26.190049 2020] [mpm_prefork:notice] [pid 3080] AH00169: caught SIGTERM, shutting down


the included config itself:
spoiler
# phpMyAdmin default Apache configuration
Alias /phpmyadmin /usr/share/phpmyadmin

Options SymLinksIfOwnerMatch
DirectoryIndex index.php


AddType application/x-httpd-php .php


SetHandler application/x-httpd-php
php_value include_path .
php_admin_value upload_tmp_dir /var/lib/phpmyadmin/tmp
php_admin_value open_basedir /usr/share/phpmyadmin/:/var/lib/phpmyadmin/:/usr/share/php/php-gettext/:/usr/share/php/php-php-gettext/:/usr/share/php/phpseclib/
php_admin_value mbstring.func_overload 0



# Disallow web access to directories that don't need it

Require all denied


Require all denied


What do you dislike about this Apache config, who can tell?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question