我在同一台服务器上遇到了 Suhosin 和 PhpMyAdmin 的问题。阅读文档时:phpmyadmin.net声明我应该覆盖 phpmyadmin 的设置,例如“suhosin.request.max_vars”。我会把这个放在哪里?
在我的 apapche2/conf.d/phpmyadmin.conf
# Note: Please refer to /etc/apache2/sites-available/default-ssl for SSL/TLS setting.
#Alias /phpmyadmin "/usr/share/apache2/phpmyadmin/"
#Alias /mysql "/usr/share/apache2/phpmyadmin/"
<Directory "/usr/share/apache2/phpmyadmin/">
Options -Indexes
</Directory>
默认-ssl
<IfModule mod_ssl.c>
<VirtualHost _default_:443>
ServerAdmin webmaster@localhost
DocumentRoot /var/www/site/public
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin">
AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Directory>
ErrorLog /var/log/apache2/error.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
CustomLog /var/log/apache2/ssl_access.log combined
Alias /doc/ "/usr/share/doc/"
<Directory "/usr/share/doc/">
Options Indexes MultiViews FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
Allow from 127.0.0.0/255.0.0.0 ::1/128
</Directory>
# Removed SSL config
Alias /phpmyadmin /usr/share/apache2/phpmyadmin/
</VirtualHost>
</IfModule>