root@longame:~# grep -i -r phpmyadmin /etc/apache2/*
/etc/apache2/apache2.conf:Include /etc/phpmyadmin/apache.conf
/etc/apache2/conf.d/phpmyadmin-apache.conf:Alias /phpmyadmin /usr/share/phpmyadmin
/etc/apache2/conf.d/phpmyadmin-apache.conf:
/etc/apache2/conf.d/phpmyadmin-apache.conf: php_admin_value open_basedir "/usr/share/phpmyadmin/:/etc/phpmyadmin/:/var/lib/phpmyadmin/:/tmp/:/var/lib/php/:/usr/share/php::/usr/share/doc/phpmyadmin/:/opt/php53/share/pear:/opt/php54/share/pear:/opt/php55/share/pear:/opt/php56/share/pear"
/etc/apache2/conf.d/phpmyadmin-apache.conf: php_admin_value open_basedir "/usr/share/phpmyadmin/:/etc/phpmyadmin/:/var/lib/phpmyadmin/:/tmp/:/var/lib/php/:/usr/share/php::/usr/share/doc/phpmyadmin/:/opt/php70/share/pear:/opt/php71/share/pear:/opt/php72/share/pear:/opt/php73/share/pear:/opt/php74/share/pear"
/etc/apache2/conf.d/phpmyadmin-apache.conf: php_admin_value open_basedir "/usr/share/phpmyadmin/:/etc/phpmyadmin/:/var/lib/phpmyadmin/:/tmp/:/var/lib/php/:/usr/share/php::/usr/share/doc/phpmyadmin/:/opt/php80/share/pear"
/etc/apache2/conf.d/phpmyadmin-apache.conf:
[Fri Sep 17 15:32:13.598640 2021] [alias:warn] [pid 135591] AH00671: The Alias directive in /etc/apache2/conf.d/phpmyadmin-apache.conf at line 1 will probably never match because it overlaps an earlier Alias.
[Fri Sep 17 15:32:13.612560 2021] [alias:warn] [pid 135591] AH00671: The Alias directive in /etc/apache2/conf.d/phpmyadmin.conf at line 3 will probably never match because it overlaps an earlier Alias.
AH00112: Warning: DocumentRoot [/var/www/www-root/data/www/fdl.top-5ive.ru] does not exist
[Fri Sep 17 15:32:13.616845 2021] [alias:warn] [pid 135591] AH00671: The Alias directive in /etc/phpmyadmin/apache.conf at line 3 will probably never match because it overlaps an earlier Alias.
Loaded Modules:
core_module (static)
so_module (static)
watchdog_module (static)
http_module (static)
log_config_module (static)
logio_module (static)
version_module (static)
unixd_module (static)
access_compat_module (shared)
actions_module (shared)
alias_module (shared)
auth_basic_module (shared)
auth_digest_module (shared)
authn_core_module (shared)
authn_file_module (shared)
authnz_external_module (shared)
authz_core_module (shared)
authz_host_module (shared)
authz_user_module (shared)
autoindex_module (shared)
cgi_module (shared)
dav_module (shared)
dav_fs_module (shared)
deflate_module (shared)
dir_module (shared)
env_module (shared)
filter_module (shared)
headers_module (shared)
include_module (shared)
mime_module (shared)
mpm_itk_module (shared)
mpm_prefork_module (shared)
negotiation_module (shared)
php7_module (shared)
php_module (shared)
remoteip_module (shared)
reqtimeout_module (shared)
rewrite_module (shared)
setenvif_module (shared)
socache_shmcb_module (shared)
ssl_module (shared)
status_module (shared)
suexec_module (shared)
vhost_alias_module (shared)
location /phpmyadmin {
alias /usr/share/phpmyadmin;
index index.php;
}
location ~* ^/phpmyadmin/(.+\.(jpg|jpeg|gif|css|png|js|ico|html|xml|txt))$ {
alias /usr/share/phpmyadmin/$1;
error_page 404 @apache;
}
location ~ ^/phpmyadmin/(.+\.php)$ {
alias /usr/share/phpmyadmin/$1;
fastcgi_pass unix:/var/run/php-fpm.www-data.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $request_filename;
include fastcgi_params;
error_page 502 = @apache;
error_page 404 = @apache;
}
location @apache {
error_log /dev/null crit;
proxy_pass 127.0.0.1:8080;
proxy_redirect 127.0.0.1:8080 /;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
location ^~ /phpmyadmin/setup {
deny all;
}
Alias /phpmyadmin /usr/share/phpmyadmin
AssignUserID www-data www-data
AssignUserID www-data www-data
Order allow,deny
Allow from all
Options FollowSymLinks
DirectoryIndex index.php
AddType application/x-httpd-php .php .php3 .php4 .php .phtml
php_flag magic_quotes_gpc Off
php_flag track_vars On
php_flag register_globals Off
php_admin_flag allow_url_fopen Off
php_admin_flag engine on
php_value include_path .:/usr/share/php/
php_admin_value upload_tmp_dir /tmp
php_admin_value open_basedir "/usr/share/phpmyadmin/:/etc/phpmyadmin/:/var/lib/phpmyadmin/:/tmp/:/var/lib/php/:/usr/share/php::/usr/share/doc/phpmyadmin/:/opt/php53/share/pear:/opt/php54/share/pear:/opt/php55/share/pear:/opt/php56/share/pear"
php_admin_value session.save_path "/var/lib/php/sessions"
php_admin_value mbstring.func_overload 0
AddType application/x-httpd-php .php .php3 .php4 .php .phtml
php_flag magic_quotes_gpc Off
php_flag track_vars On
php_flag register_globals Off
php_admin_flag allow_url_fopen Off
php_admin_flag engine on
php_value include_path .:/usr/share/php/
php_admin_value upload_tmp_dir /tmp
php_admin_value open_basedir "/usr/share/phpmyadmin/:/etc/phpmyadmin/:/var/lib/phpmyadmin/:/tmp/:/var/lib/php/:/usr/share/php::/usr/share/doc/phpmyadmin/:/opt/php70/share/pear:/opt/php71/share/pear:/opt/php72/share/pear:/opt/php73/share/pear:/opt/php74/share/pear"
php_admin_value session.save_path "/var/lib/php/sessions"
AddType application/x-httpd-php .php .php3 .php4 .php .phtml
php_flag magic_quotes_gpc Off
php_flag track_vars On
php_flag register_globals Off
php_admin_flag allow_url_fopen Off
php_admin_flag engine on
php_value include_path .:/usr/share/php/
php_admin_value upload_tmp_dir /tmp
php_admin_value open_basedir "/usr/share/phpmyadmin/:/etc/phpmyadmin/:/var/lib/phpmyadmin/:/tmp/:/var/lib/php/:/usr/share/php::/usr/share/doc/phpmyadmin/:/opt/php80/share/pear"
php_admin_value session.save_path "/var/lib/php/sessions"
RemoveHandler .php .php3 .php4 .phtml
SetHandler application/x-httpd-php
# Apache 2.4
Require all denied
# Apache 2.2
Order Deny,Allow
Deny from All