Thursday, October 18, 2012

XAMPP phpmyadmin access forbidden

XAMPP is a great tool for web application development and testing.  It provides a self-contained environment for running web applications.

It has been a while since I have used it, and the new edition seems to have enhanced the default security.  For instance, if you run phpmyadmin on a fresh install, you will be greeted with ACCESS FORBIDDEN error.  I had anyway.  To overcome this (and my circumvents the security), I have done the below:

1) Open the /opt/lampp/etc/extra/httpd-xampp.conf with your choice of text editor
2) Update the two sections below as shown, then restart lampp.  You should be all set!

<directory lampp="lampp" opt="opt" phpmyadmin="phpmyadmin">
    AllowOverride AuthConfig Limit
Require all granted
</directory>

<LocationMatch "^/(?i:(?:xampp|licenses|phpmyadmin|webalizer|server-status|server-info))">
        Order allow,deny
        Allow from all

        ErrorDocument 403 /error/XAMPP_FORBIDDEN.html.var
</locationmatch>

Wednesday, October 17, 2012

Setting Environment as normal user

Just a note to myself, to edit the environment variables for a standard use, I need to type "environment" into the start menu, and use the "Edit environment variables for your account" option.

Saturday, October 13, 2012

Ainol ELF Firmware 4.0.4

One of the ongoing problems with the Ainol ELF is WiFi.  It often fails to come back when wakes up from sleep.  The only way to get the WiFi back is to restart the machine.  This is very annoying.  Few days ago, I had flashed my ELF with the latest firmware which upgraded it to 4.0.4.  It seems the WiFi problem has finally been addresses.  The new firmware behaves a lot better than the latest Essential Clean Rom (1.1a).  With the 1.1a, my tablet often has troubles to get into proper sleep mode.

One thing I miss after upgrade is the hardware volume button.  1.1a remaps the home and menu buttons to act as volume button, whereas the official one put them back to what they were before.  To make the matter even worse is that there is no soft volume button too!  So to adjust the volume, I need to go to settings -> sound to adjust the volume.  However, comparing this to the WiFi problem, I would much prefer to have the WiFi problems fixed.