Blog Archives

Increase file upload maximum size in PHP

Networks are such a stack relying on many many things working together to get the end result you’re after. To increase the maximum size of a form uploaded file in PHP you need to increase both the upload_max_filesize AND the

Posted in apache, linux Tagged with: , , , , , , , , , , , , , , ,

Redirect domainname.com to www.domainname.com

To redirect (rewrite) a subdomainless site to the www prefixed one with apache, use mod_rewrite. This must be enabled in Apache’s conf file, and allowed to override the defaults with AllowOverride in the relevant directory section. Line 5 checks to

Posted in .htaccess, apache, linux Tagged with: , , , , , ,

Archlinux /srv/http vs Debian /var/www

Link the two Debian and quite a few other older systems still use /var/www as the default root directory for serving web content, while Arch uses /srv/http. /var does get a bit cluttered these days, but to save the mental

Posted in apache, linux Tagged with: , , , , , , , ,

Apache SSL won’t start – make_sock: could not bind to address 0.0.0.0:443

Apache SSL won’t start with following error message: … waiting (98)Address already in use: make_sock: could not bind to address 0.0.0.0:443 no listening sockets available, shutting down It would be nice to have Apache2 state, in plain english, “Sorry, that

Posted in apache, linux Tagged with: , ,

RewriteEngine to change URLs with Apache and .htaccess – 4 easy and common examples

The RewriteEngine modification of the URL allows for many tricks such as readable URLs and maintaining links after site redevelopment. There are many good reasons to clean up URLs into something readable, including having the customer/client remember the link, being

Posted in .htaccess, apache Tagged with: , , , ,