1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
|
# phpSysInfo default Apache configuration
Alias /phpsysinfo /usr/share/phpsysinfo
<Directory /usr/share/phpsysinfo>
# Because some JS or CSS libs can be symlinked to other packages
Options SymLinksIfOwnerMatch
Require all granted
DirectoryIndex index.php
# limit libapache2-mod-php to files and directories necessary by phpsysinfo
<IfModule mod_php7.c>
# This is an example approximate value to be adjusted for your setup
#php_admin_value open_basedir "/usr/share/phpsysinfo:/etc/phpsysinfo:/proc:/etc:/sys:/var/log/:/var/run:/system/bin:/var/lib/update-notifier:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin"
</IfModule>
# PHP 8+
<IfModule mod_php.c>
# This is an example approximate value to be adjusted for your setup
#php_admin_value open_basedir "/usr/share/phpsysinfo:/etc/phpsysinfo:/proc:/etc:/sys:/var/log/:/var/run:/system/bin:/var/lib/update-notifier:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin"
</IfModule>
</Directory>
# Disallow web access to directories that don't need it
<Directory /usr/share/phpsysinfo/data>
Require all denied
</Directory>
<Directory /usr/share/phpsysinfo/includes>
Require all denied
</Directory>
|