maybe chmod 0644 'apticron/apticron.conf'
maybe chgrp 'daemon' 'at.deny'
maybe chmod 0640 'at.deny'
+maybe chmod 0755 'avahi'
+maybe chmod 0755 'avahi/services'
+maybe chmod 0644 'avahi/services/phpmyadmin.service'
maybe chmod 0644 'bash.bashrc'
maybe chmod 0644 'bash_completion'
maybe chmod 0755 'bash_completion.d'
maybe chmod 0755 'php/7.3/cli/conf.d'
maybe chmod 0644 'php/7.3/cli/php.ini'
maybe chmod 0755 'php/7.3/mods-available'
+maybe chmod 0644 'php/7.3/mods-available/apcu.ini'
maybe chmod 0644 'php/7.3/mods-available/bz2.ini'
maybe chmod 0644 'php/7.3/mods-available/calendar.ini'
maybe chmod 0644 'php/7.3/mods-available/ctype.ini'
--- /dev/null
+<?xml version="1.0" standalone='no'?>
+<!DOCTYPE service-group SYSTEM "avahi-service.dtd">
+<service-group>
+ <name replace-wildcards="yes">phpMyAdmin on %h</name>
+ <service>
+ <type>_http._tcp</type>
+ <port>80</port>
+ <txt-record>path=/phpmyadmin/</txt-record>
+ </service>
+</service-group>
--- /dev/null
+/etc/php/7.3/mods-available/apcu.ini
\ No newline at end of file
--- /dev/null
+/etc/php/7.3/mods-available/apcu.ini
\ No newline at end of file
--- /dev/null
+extension=apcu.so
--- /dev/null
+/etc/php/7.3/mods-available/apcu.ini
\ No newline at end of file
Options SymLinksIfOwnerMatch
DirectoryIndex index.php
- <IfModule mod_php5.c>
- <IfModule mod_mime.c>
- AddType application/x-httpd-php .php
- </IfModule>
- <FilesMatch ".+\.php$">
- SetHandler application/x-httpd-php
- </FilesMatch>
-
- php_value include_path .
+ # limit libapache2-mod-php to files and directories necessary by pma
+ <IfModule mod_php7.c>
php_admin_value upload_tmp_dir /var/lib/phpmyadmin/tmp
- php_admin_value open_basedir /usr/share/phpmyadmin/:/etc/phpmyadmin/:/var/lib/phpmyadmin/:/usr/share/php/php-gettext/:/usr/share/php/php-php-gettext/:/usr/share/javascript/:/usr/share/php/tcpdf/:/usr/share/doc/phpmyadmin/:/usr/share/php/phpseclib/
- php_admin_value mbstring.func_overload 0
- </IfModule>
- <IfModule mod_php.c>
- <IfModule mod_mime.c>
- AddType application/x-httpd-php .php
- </IfModule>
- <FilesMatch ".+\.php$">
- SetHandler application/x-httpd-php
- </FilesMatch>
-
- php_value include_path .
- php_admin_value upload_tmp_dir /var/lib/phpmyadmin/tmp
- php_admin_value open_basedir /usr/share/phpmyadmin/:/etc/phpmyadmin/:/var/lib/phpmyadmin/:/usr/share/php/php-gettext/:/usr/share/php/php-gettext/:/usr/share/javascript/:/usr/share/php/tcpdf/:/usr/share/doc/phpmyadmin/:/usr/share/php/phpseclib/
- php_admin_value mbstring.func_overload 0
+ php_admin_value open_basedir /usr/share/phpmyadmin/:/etc/phpmyadmin/:/var/lib/phpmyadmin/:/usr/share/php/php-gettext/:/usr/share/php/php-php-gettext/:/usr/share/javascript/:/usr/share/php/tcpdf/:/usr/share/doc/phpmyadmin/:/usr/share/php/phpseclib/:/usr/share/php/PhpMyAdmin/:/usr/share/php/Symfony/:/usr/share/php/Twig/:/usr/share/php/Twig-Extensions/:/usr/share/php/ReCaptcha/:/usr/share/php/Psr/Container/:/usr/share/php/Psr/Cache/:/usr/share/php/Psr/Log/:/usr/share/php/Psr/SimpleCache/
</IfModule>
</Directory>
-# Authorize for setup
-<Directory /usr/share/phpmyadmin/setup>
- <IfModule mod_authz_core.c>
- <IfModule mod_authn_file.c>
- AuthType Basic
- AuthName "phpMyAdmin Setup"
- AuthUserFile /etc/phpmyadmin/htpasswd.setup
- </IfModule>
- Require valid-user
- </IfModule>
-</Directory>
-
# Disallow web access to directories that don't need it
<Directory /usr/share/phpmyadmin/templates>
Require all denied
<Directory /usr/share/phpmyadmin/libraries>
Require all denied
</Directory>
-<Directory /usr/share/phpmyadmin/setup/lib>
- Require all denied
-</Directory>
require('/var/lib/phpmyadmin/blowfish_secret.inc.php');
}
-// Load autoconf local config
-if (check_file_access('/var/lib/phpmyadmin/config.inc.php')) {
- require('/var/lib/phpmyadmin/config.inc.php');
-}
-
/**
* Server(s) configuration
*/
# Alias for phpMyAdmin directory
-alias.url += (
+alias.url += (
"/phpmyadmin" => "/usr/share/phpmyadmin",
)
# Disallow access to libraries
-$HTTP["url"] =~ "^/phpmyadmin/templates" {
- url.access-deny = ( "" )
+$HTTP["url"] =~ "^/phpmyadmin/templates" {
+ url.access-deny = ( "" )
}
-$HTTP["url"] =~ "^/phpmyadmin/libraries" {
- url.access-deny = ( "" )
+$HTTP["url"] =~ "^/phpmyadmin/libraries" {
+ url.access-deny = ( "" )
}
-$HTTP["url"] =~ "^/phpmyadmin/setup/lib" {
- url.access-deny = ( "" )
-}
-
-# Limit access to setup script
-$HTTP["url"] =~ "^/phpmyadmin/setup" {
- auth.backend = "htpasswd"
- auth.backend.htpasswd.userfile = "/etc/phpmyadmin/htpasswd.setup"
- auth.require = (
- "/" => (
- "method" => "basic",
- "realm" => "phpMyAdmin Setup",
- "require" => "valid-user"
- )
- )
-}
-
-