Page 1 of 1

New to XAMPP and have questions.

PostPosted: 16. October 2012 11:25
by interscrilla
hi, hope my experience of trying to use XAMPP will last long. I have couple questions so here we go.

1. I see that I had to allow firewall extensions to the program when I enabled services as Apache, My SQL and others.
Question ( by enabling firewall am I giving someone the permissions to access my work/sites from outside? (I'm very noob in this case and as you know if you wont ask you wont know :P.)
Question ( can any one from outside access my data ? (I Have AVG installed and only enabled firewalls beside the default are linked to XAMPP) (more over I have no .00. enabled port from my router as well.)

my question may be to laugh and some of you might make fun, but as I have stated I'm very careful about my stuff, and don't want to have any one from out side accessing it.

I hope you understand my question and where I am trying to get it. If you can answer my question and any other helping tips you have will be greatly appreciated.

Thank You
-Your Friend :P

Re: New to XAMPP and have questions.

PostPosted: 16. October 2012 17:45
by JonB
Enabling Apache and MySQL in your firewall are necessary for you to be able to use XAMPP at the most basic level.

XAMPP has to be able to 'connect' so you can go to "http://localhost"

Unless your have enabled port forwarding on your router, or your machine is directly connected to the internet - "the outside" can't get in.

Even if you did enable port forwarding, XAMPP has the 'new secruity feature' which, in general, blocks access except from the non-routable/reserved IP ranges.

Code: Select all
# 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>


So if you have a router, and you do not enable port forwarding for ports 80, 443, (Apache ) 3306 (MySQL), and 21 (Filezilla) - you are pretty 'walled-off'.

If you decide to 'connect to the outside world' later - you can also use the XAMPP 'Security Wizard' in the XAMPP Welcome Page to create PW's for the XAMPP folder, MySQL and phpMyAdmin. Be sure to take the option to save PW's to a text file, so we don't have to fix that one later, LOL.

Good Luck
8)

Re: New to XAMPP and have questions.

PostPosted: 21. October 2012 14:08
by interscrilla
Thank You JonB. It's working so so far.

Is there a way for me to add/make multiple website in XAMPP? for now I could only do one. :P Please let me know,

Thank You

Re: New to XAMPP and have questions.

PostPosted: 21. October 2012 14:11
by Altrea
interscrilla wrote:Is there a way for me to add/make multiple website in XAMPP? for now I could only do one.

Sure.

Simply add a new folder for every website you want to make in your htdocs folder.
e.g.:
C:\xampp\htdocs\website1\
C:\xampp\htdocs\website2\
C:\xampp\htdocs\joomla\
C:\xampp\htdocs\wordpress\
...

You can request them by adding the folder in the url:
http://localhost/website1/
http://localhost/website2/
etc

best wishes,
Altrea

Re: New to XAMPP and have questions.

PostPosted: 22. October 2012 12:33
by interscrilla
Thank You guys, with your help so far its working great. Got to add some extra sites/folders which are accessible through localhost/foldername just beautiful.

Once again Thank you JonB and Altrea, looking forward to ask more question :P

Re: New to XAMPP and have questions.

PostPosted: 22. October 2012 15:24
by Altrea
You are very welcome :D
I wish you all the best and much fun with XAMPP and all that stuff.

For further quastions not relating to this questions here please create a new thread with a selfspeaking headline, so that it can be searched and found easily :)

best wishes,
Altrea