LAMPP Server Problem Fixed ?

What can I say ? It's done at last. Well, I was having a problem with using 'phpmyadmin' with lampp. Previously, I'd my blog-post with instructions to install xampp in Linux.

But, with those steps, I still had this problem when requesting the URL: http://localhost/phpmyadmin/



So, here are the steps to solve this little problem.


Step 01: 

Get the terminal & type the following command to stop the running instance of your local server.

$ sudo /opt/lampp/lampp stop

Step 02:

Type the following command & go to editing mode of httpd-xampp.conf file. Make sure that, you've got the Administrative Privileges in order to do so.

$ sudo vi /opt/lampp/etc/extra/httpd-xampp.conf 


Step 03:

Slide down file & locate the following set of code.

#
# New XAMPP security concept
#
<LocationMatch "^/(?i:(?:xampp|security|licenses|phpmyadmin|webalizer|server-status|server-info))">
        Order deny,allow
        Deny from all
        Allow from ::1 127.0.0.0/8 \
                fc00::/7 10.0.0.0/8 172.16.0.0/12 192.168.0.0/16 \
                fe80::/10 169.254.0.0/16

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


You've to edit it & it'll be seen like this.

#
# New XAMPP security concept
#
<LocationMatch "^/(?i:(?:xampp|security|licenses|phpmyadmin|webalizer|server-status|server-info))">
        Order deny,allow
        Allow from all
        Allow from ::1 127.0.0.0/8 \
                fc00::/7 10.0.0.0/8 172.16.0.0/12 192.168.0.0/16 \
                fe80::/10 169.254.0.0/16

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


Step 04:

Find the following code segment inside the file.

# since XAMPP 1.4.3
<Directory "/opt/lampp/phpmyadmin">
    AllowOverride AuthConfig Limit
    Order allow,deny
    Allow from all
</Directory>


Edit, until it looks like this.

# since XAMPP 1.4.3
<Directory "/opt/lampp/phpmyadmin">
    AllowOverride AuthConfig Limit
    Order allow,deny
    Allow from all
    Require all granted
</Directory>


Step 05:

Now, you're almost done. Save your modifications & exit the editor & Run the following command in order to restart your local server.


$ sudo /opt/lampp/lampp restart


Thank You!

No comments: