-
XAMPP Configurations & Security
Posted on March 6th, 2009 No commentsAfter succesfully installation of XAMPP, your folder will look like these (depend on your installed version)

XAMPP folder structure
- \apache – Apache server directory
- \cgi-bin – Dir for executing cgi scripts
- \htdocs – Main http docs directory
- \install – For Setup XAMPP
- \mysql – MySQL server directory
- \perl – perl directory
- \security – Extra directory for security configs
Configuration
You can adjust XAMPP setting with plain-text configuration files in the following:
- Apache basic configuration: .\xampp\apache\conf\httpd.conf
- Apache SSL: .\xampp\apache\conf\ssl.conf
- Apache Perl (only addon): .\xampp\apache\conf\perl.conf
- Apache Tomcat (only addon): .\xampp\apache\conf\java.conf
- Apache Python (only addon): .\xampp\apache\conf\python.conf
- PHP: .\xampp\apache\bin\php.ini
(with the apache actually running php version) - MySQL: .\xampp\mysql\bin\my.cnf
- phpMyAdmin: .\xampp\phpMyAdmin\config.inc.php
- FileZilla FTP: .\xampp\FileZillaFTP\FileZilla Server.xml
- Mercury Mail basic configuration: .\xampp\MercuryMail\MERCURY.INI
- Sendmail: .\xampp\sendmail\sendmail.ini
Specified IP Address and Port
To specify Apache IP addresses and/or ports, instead of default.
Modify .\xampp\apache\conf\httpd.conf
# Change this to Listen on specific IP addresses as shown below to # prevent Apache from glomming onto all bound IP addresses (0.0.0.0) # #Listen 12.34.56.78:80 Listen 80
Enable mod_rewrite
XAMPP was disabled mod_rewrite by default. To enable it
Remove the comment from this line in .xamppapacheconfhttpd.conf
#LoadModule rewrite_module modules/mod_rewrite.so
Restart Apache after modified any configuration by stop and start it in XAMPP Control Panel or apache_stop.bat / apache_start.batXAMPP Security
XAMPP is not meant for production use but only for developers in a development environment (that’s what we’re talking about now) but It’s highly recommend to secure XAMPP if you’re developing in LAN or open Wireless Connection.
You may accidential connect to unsecure wireless network at anytimeYou can run the “XAMPP Security Consoe” and assign the passwords.
http://localhost/security/
(accessible only from localhost)

XAMPP Security Console
You can set
- root password for MySQL and PHPMyAdmin
- XAMPP directory protection
No related posts.
Leave a reply













