[Xampp] - New xampp security concept: Access Forbidden Error 403 - Windows 7 - phpMyAdmin

February 17, 2019 |
Issue #1: New xampp security concept: Access Forbidden Error 403 - Windows 7 - phpMyAdmin
Solution:
1. Open Xampp
2. From Apache module >  Config > Apache (httpd-xampp.conf)
3. Find and change section below:
<Directory "E:/Servers/Xampp/phpMyAdmin">
        AllowOverride AuthConfig
        Require local
        ErrorDocument 403 /error/XAMPP_FORBIDDEN.html.var
    </Directory>

Change:
<Directory "E:/Servers/Xampp/phpMyAdmin">
        AllowOverride AuthConfig
        Require all granted
        ErrorDocument 403 /error/XAMPP_FORBIDDEN.html.var
    </Directory>

Now, we can access the MySQL Admin from other PC on Local Network.

Ref:  https://stackoverflow.com/questions/21161908/new-xampp-security-concept-access-forbidden-error-403-windows-7-phpmyadmin

Issues #2: Cannot start Apache
Description:
3:05:30 PM  [Apache]     Problem detected!
3:05:30 PM  [Apache]     Port 443 in use by ""C:\Program Files\VisualSVN Server\bin\VisualSVNServer.exe" -k runservice -C "LoadModule log_visualsvn_module bin/mod_log_visualsvn.so" -E nul" with PID 2372!
3:05:30 PM  [Apache]     Apache WILL NOT start without the configured ports free!
3:05:30 PM  [Apache]     You need to uninstall/disable/reconfigure the blocking application
3:05:30 PM  [Apache]     or reconfigure Apache and the Control Panel to listen on a different port
3:05:30 PM  [Apache]     Attempting to start Apache app...
3:05:31 PM  [Apache]     Status change detected: running
3:05:43 PM  [Apache]     Status change detected: stopped
3:05:43 PM  [Apache]     Error: Apache shutdown unexpectedly.
3:05:43 PM  [Apache]     This may be due to a blocked port, missing dependencies,
3:05:43 PM  [Apache]     improper privileges, a crash, or a shutdown by another method.
3:05:43 PM  [Apache]     Press the Logs button to view error logs and check
3:05:43 PM  [Apache]     the Windows Event Viewer for more clues
3:05:43 PM  [Apache]     If you need more help, copy and post this
3:05:43 PM  [Apache]     entire log window on the forums

Root cause: Port 443 is duplicated.
Resolved:
Edit port 443 & 80
1. xampp > apache > conf > extra > httpd-ssl.conf
Find 443 and change other port which you want.
Ex: 443 -> 444

2. xampp > aoache > conf > httpd.conf
Find 80 and change other port which you want.
Ex: 80 -> 8080


Read more…

[Java Core] - Access Modifiers

February 12, 2019 |
Access Modifiers

The Access Modifiers is a important part of Encapsulation in OOP. It will be limited access data from outside.


Modifier Class Package Subclass Other Classes
Private Yes No No No
No modifier Yes Yes No No
Protected Yes Yes Yes No
Public Yes Yes Yes Yes

Example:

Example about access mofifiers


Download source code: Access Modifier
Source references:
1. https://stackify.com/oop-concept-for-beginners-what-is-encapsulation/


Read more…