Goonple-1-Book

Goonple Developer One Book
RSS icon Email icon Home icon
  • XAMPP Configurations & Security

    Posted on March 6th, 2009 Goonple No comments

    After succesfully installation of XAMPP, your folder will look like these (depend on your installed version)

    XAMPP folder structure

    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.bat

    XAMPP 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 anytime

    You can run the “XAMPP Security Consoe” and assign the passwords.

    http://localhost/security/

    (accessible only from localhost)

    1223 XAMPP Configurations & Security

    XAMPP Security Console

     You can set

    • root password for MySQL and PHPMyAdmin
    • XAMPP directory protection
  • XAmpp Setup

    Posted on March 5th, 2009 Goonple No comments

    XAMPP, apache friend, is an easy to install Apache distribution containing MySQL, PHP, and Perl. It’s very easy to install – just download, extract and start. Moreover, it is free of charge.

    XAMPP can used in Windows, Linux, Mac OS X, and Solaris. (I only setup XAMPP in Windows. So, let’s focus on it)

    XAMPP / XAMPP Lite

    XAMPP (full) including:

    • Apache + Openssl
    • MySQL 5
    • PHP 5
    • phpMyAdmin
    • FileZilla FTP Server
    • and Mercury Mail Transfer System

    XAMPP Lite including:

    • Apache + Openssl
    • MySQL 5
    • PHP 5
    • phpMyAdmin

    I alway face the apache error and terminated when use XAMPP with WordPress Installation and CakePHP. The use of XAMPP Lite can resolve this

    Installation

    Method A: Installation with the Installer

    Using the installer version is the easiest way to install XAMPP

    After installation is complete, you will find XAMPP unter Start / Programs / XAMPP. You can use the XAMPP Control Panel to start/stop all server and also install/uninstall services.

    1161 XAmpp Setup

    Method B: Installation without the Installer

    Download and unzip the 7-zip or zip archives into the folder of your choice. Then open XAMPP folder and run the “setup_xampp.bat” file.

    1212 XAmpp Setup

    All paths in the configuration will be updated.

    1157 XAmpp Setup

    With this method you can move your XAMPP folder anywhere, anytime. Just run “setup_xampp.bat” again after that

    Finally, start the different servers with the start/stop batch files or use the XAMPP Control Panel – “xampp-control.exe”.