Posts

phpMyAdmin - The plain HTTP request was sent to HTTPS port

So I tried getting phpMyAdmin to work with https again, turns out there was a solution posted back in 2008 on this blog. His solution didn't quite work out for me, so I thought I'd update it with my working solution. His version states add fastcgi_param HTTPS on which is correct, just at the wrong place. location ~ \.php$ { fastcgi_param HTTPS on; fastcgi_pass 127.0.0.1:xxxx; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME /var/www$fastcgi_script_name; include /usr/local/nginx/conf/fastcgi_params; } What I need to do is the following: location ~ \.php$ { fastcgi_pass 127.0.0.1:xxxx; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME /var/www$fastcgi_script_name; include /usr/local/nginx/conf/fastcgi_params; fastcgi_param HTTPS on; } Why? Simply cause in the conf/fastcgi_params file I had this: fastcgi_param HTTPS $ssl_protocol; Which doesn't seem to be good enough for good ol' phpMyAdmin, so we need to overwrite it after we inclu...

Enabling Pure-ftpd TLS

Tell pure-ftpd to accept tls connections echo 1 > /etc/pure-ftpd/conf/TLS Setup your certificate mkdir -p /etc/ssl/private openssl req -x509 -nodes -newkey rsa:1024 -keyout \ /etc/ssl/private/pure-ftpd.pem \ -out /etc/ssl/private/pure-ftpd.pem chmod 600 /etc/ssl/private/*.pem Restart pure-ftpd /etc/init.d/pure-ftpd restart Enjoy.

Remove unused kernels in Ubuntu

Update @20:th Aug 2015 The old dpkg trick was unstable and wanted to delete tons of unwanted things more than 50% of the time, so I found another useful command which has a higher success rate of doing what we want. aptitude purge ~ilinux-image-\[0-9\]\(\!`uname -r`\) source: http://www.upubuntu.com/2011/11/how-to-remove-unused-old-kernels-on.html Run the following command to see what the command will remove: dpkg -l linux-* | awk '/^ii/{ print $2}' | grep -v -e `uname -r | cut -f1,2 -d"-"` | grep -e [0-9] | xargs sudo apt-get --dry-run remove And finally to actually remove the kernels use: dpkg -l linux-* | awk '/^ii/{ print $2}' | grep -v -e `uname -r | cut -f1,2 -d"-"` | grep -e [0-9] | xargs sudo apt-get -y purge source: http://tuxtweaks.com/2010/10/remove-old-kernels-in-ubuntu-with-one-command/

Enabling the Android "Move To SD Card"

By simply adding the following line to your manifest file, your app will get the ability to get moved/installed on the SD Card! < manifest   xmlns:android ...>   android:installLocation = "auto"   ... </manifest>

waoo port forwarding broken

For anyone reaching this page, let me first congratulate you on getting fiber, and also saying I'm sorry for having to coop with a beta-router from waoo / tre-for that looks like it's from 1990. So you want to access your ssh on your many machines from the internet? Sounds easy enough, the administration has this setting. Forward something like 123 to -> 22 on 192.168.1.5 and you're all set to go right? Wrong , it just doesn't work. Virtual ports are just a no go on the 1.0 firmware, after writing to tre-for and waiting for a couple of days I get an answer saying you can't do range port forwards, but you can do port to port . In which I simply replied 123 -> 22 is not a range forward but a simple port forward . Two days later I get an email saying that the router is now updated and that I should try again. Did it work? YES, the very basic function of a router now works as it should and my machines can get booted of the internet once again from my phone...

Android MediaPlayer crash

Problem Ever wondered why your app isn't able to stream a radio stream on eg. HTC EVO 3D but works on almost every other android phone? Does the following error message seem familiar? 10-20 10:47:03.024: INFO/NuHTTPDataSource(28325): connect to RADIO_URL 10-20 10:47:03.024: INFO/NuHTTPDataSource(28325): [Stagefright] RADIO_URL is not localhost 10-20 10:47:03.024: INFO/NuHTTPDataSource(28325): [Stagefright] do not use http proxy 10-20 10:47:04.556: INFO/TelephonyRegistry(257): notifyServiceState: 0 home TDC MOBIL (N/A) 23801 0 HSDPA CSS not supported -1 -1RoamInd: -1DefRoamInd: -1EriInd: -1EriMode: -1RadioPowerSv: falseEmergOnly: false 10-20 10:47:04.586: INFO/TelephonyRegistry(257): notifyDataConnection: state=2 isDataConnectivityPossible=true reason=null interfaceName=rmnet0 networkType=8 10-20 10:47:04.586: DEBUG/TelephonyRegistry(257): notifyDataConnection() state=2isDataConnectivityPossible()true, reason=null 10-20 10:47:04.586: DEBUG/TelephonyRegistry(257): broadca...