2018-04-02 22:26:17 +00:00
|
|
|
# phpMyAdmin default Apache configuration
|
|
|
|
|
|
|
|
Alias /phpmyadmin /usr/share/phpmyadmin
|
|
|
|
|
|
|
|
<Directory /usr/share/phpmyadmin>
|
2019-10-18 04:11:56 +00:00
|
|
|
Options FollowSymLinks
|
|
|
|
DirectoryIndex index.php
|
2018-04-02 22:26:17 +00:00
|
|
|
|
2019-10-18 04:11:56 +00:00
|
|
|
<IfModule mod_php.c>
|
|
|
|
<IfModule mod_mime.c>
|
|
|
|
AddType application/x-httpd-php .php
|
|
|
|
</IfModule>
|
|
|
|
<FilesMatch ".+\.php$">
|
|
|
|
SetHandler application/x-httpd-php
|
|
|
|
</FilesMatch>
|
2018-04-02 22:26:17 +00:00
|
|
|
|
2019-10-18 04:11:56 +00:00
|
|
|
php_flag magic_quotes_gpc Off
|
|
|
|
php_flag track_vars On
|
|
|
|
php_flag register_globals Off
|
|
|
|
php_admin_flag allow_url_fopen On
|
|
|
|
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/javascript/:/usr/share/php/tcpdf/:/usr/share/doc/phpmyadmin/:/usr/share/php/phpseclib/
|
|
|
|
</IfModule>
|
2018-04-02 22:26:17 +00:00
|
|
|
|
2019-10-18 04:11:56 +00:00
|
|
|
</Directory>
|
|
|
|
|
|
|
|
# Disallow web access to directories that don't need it
|
|
|
|
<Directory /usr/share/phpmyadmin/libraries>
|
|
|
|
Require all denied
|
|
|
|
</Directory>
|
|
|
|
<Directory /usr/share/phpmyadmin/setup/lib>
|
|
|
|
Require all denied
|
2018-04-02 22:26:17 +00:00
|
|
|
</Directory>
|