Talk:Production LAMP system: Lighttpd + PHP + MySQL

From Alpine Linux
Revision as of 15:59, 20 September 2021 by AlexHammer (talk | contribs)

I follow the tutorial and everything works BUT: the last part to secure Adminer is not working.

First: The cat command does not write the "$HTTP" into the mod_adminer.conf file
cat > /etc/lighttpd/mod_adminer.conf << EOF # NOTE: this requires mod_alias alias.url += ( "/adminer/" => "/var/www/webapps/adminer/" ) $HTTP["url"] =~ "^/adminer/" { # disable directory listings dir-listing.activate = "disable" } EOF


Second: As soon as I do this last command I can't restart the lighttpd server anymore.

checkssl="";checkssl=$(grep 'include "mod_adminer.conf' /etc/lighttpd/lighttpd.conf);[[ "$checkssl" != "" ]] && echo listo || sed -i -r 's#.*include "mod_cgi.conf".*#include "mod_cgi.conf"\ninclude "mod_adminer.conf"#g' /etc/lighttpd/lighttpd.conf


Any ideas what to do?