SSL on Apache2 with WSGI [closed]

Remove the line: WSGIDaemonProcess mydomain user=myuser group=mygroup processes=1 threads=1 from the VirtualHost for 443. The WSGIProcessGroup for mydomain in that VirtualHost is able to reach across to the WSGIDaemonProcess definition in 80. In other words, as the error message tries to suggest, the name for the WSGIDaemonProcess, ie., ‘mydomain’, must be unique for the whole … Read more

Why has the apache2 www dir been moved to /var/www/html?

I found the bug report: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=730372 The report was filed after this mailing list discussion: https://lists.debian.org/debian-devel/2012/04/msg00301.html Summary: Site admins usually place sites in /var/www/site.com and there may be sensitive data in /var/www that should not be made available via a web server. All web servers on Debian have been updated to use /var/www/html as default … Read more

How to find what MPM model Apache is using in Linux (worker, prefork or event)

httpd -V then look for the Server MPM line. Example: # httpd -V Server version: Apache/2.2.15 (Unix) Server built: Aug 2 2013 08:02:15 Server’s Module Magic Number: 20051115:25 Server loaded: APR 1.3.9, APR-Util 1.3.9 Compiled using: APR 1.3.9, APR-Util 1.3.9 Architecture: 64-bit Server MPM: Prefork threaded: no forked: yes (variable process count) Server compiled with…. … Read more

ini_set(“memory_limit”) in PHP 5.3.3 is not working at all

Most likely your sushosin updated, which changed the default of suhosin.memory_limit from disabled to 0 (which won’t allow any updates to memory_limit). On Debian, change /etc/php5/conf.d/suhosin.ini ;suhosin.memory_limit = 0 to suhosin.memory_limit = 2G Or whichever value you are comfortable with. You can find the changelog of Sushosin at http://www.hardened-php.net/hphp/changelog.html, which says: Changed the way the … Read more