XAMPP

Turorial ini saya tekankan bukan buatan saya. Saya hanya ingin turut menyebarkannya saja. Silahkan kunjungi website nya di : 

http://www.cast-control.net/mediacp/docs/upgrading-xampp.html

Upgrading XAMPP

This guide will show you how to upgrade XAMPP (for windows) to the latest version with our MediaCP.

IMPORTANT!
If you encounter problems, please contact your server administrator first otherwise our staff will invoice you for support regarding XAMPP.

  1. Backup!
    A backup is always crucial to upgrading any software, if something goes wrong you can quickly restore the backup.

    a) Firstly backup your database, navigate to http://localhost:2000/phpmyadmin and login as root. You can find the password in C:/xampp/htdocs/database.php
    b) Select your database and press export, save this file to your desktop – we will need this soon.
    c) Install WinRar, we find this to be the best archive program.
    d) Open XAMPP control panel and stop all running services.
    e) Open XAMPP control panel and uninstall all services.
    f) Close XAMPP control panel.
    g) Right click on the c:/xampp and select “Add to Archive..”

    ***important***
    If you find the archive takes too long, you can exclude the backup of the C:/xampp/htdocs/content directory as follows:
    In WinRar select the “Files” tab and press “Append…” next to “Files to exclude”.
    Exclude C:/xampp/htdocs/content or C:/xampp/htdocs/mediacp/content depending on your install.

  2. Update XAMPP
    a) Move C:/xampp/ to C:/xampp.bak/ – this is your old installation.
    b) Download the latest version of XAMPP as a .ZIP from http://www.apachefriends.org
    c) Extract to C:/xampp/
    d) Run C:/xampp/setup_xampp.bat
    e) Don’t start apache/mysql just yet.
  3. Setup PHP Extensions (CURL + LDAP)
    Open C:/xampp/php/php.ini in WordPad.

    Press CTRL + F to find “php_curl.dll” and uncomment this line (delete the ; before the line).
    Press CTRL + F to find “php_ldap.dll” and uncomment this line (delete the ; before the line).

    Save and close the php.ini file.

    Copy C:/xampp/php/libsasl.dll into C:/Windows/libsasl.dll
    (some php versions have difficulty finding this file, it is necessary for LDAPS secure connection)

  4.  Configure APACHE
    Open C:/xampp/apache/conf/httpd.conf in WordPad.
    Press CTRL + F to find “Listen 80” and change this to “Listen 2000”.

    Press CTRL + F to find “conf/extra/httpd-ssl.conf” and place a hash (#) at the beginning of the line
    This line should now look like: #Include “conf/extra/httpd-ssl.conf”

    Save and close the httpd.conf file.

  5. Configure XAMPP & MySQL Authorisation
    Open  the browser on the server and navigate to http://localhost:2000/security/index.php
    Update the MySQL root password and configure the XAMPP Directory username/password.
  6. Install Ioncube Loaders
    a) Download and extract the ioncube loader wizard into C:/xampp/htdocs/ioncube/
    http://www.ioncube.com/loader-wizard/loader-wizard.zip

    b) Open http://localhost:2000/ioncube/loader-wizard.php and follow install instructions for Dedicated Server.

  7. Restore MediaCP
    a) Copy the contents of C:/xampp.bak/htdocs/ into C:/xampp/htdocs/
    b) Login to phpMyAdmin at http://localhost:2000/phpmyadmin/ (password in C:/xampp/htdocs/database.php)
    c) Create a new database with the same name as your previous database (name in C:/xampp/htdocs/database.php if unsure)
    d) Select the new database and press Import, navigate to the backup you took earlier in step 1 and restore the database.
  8. Restore FileZilla (If used as FTP)
    If you used the native XAMPP FileZilla FTP Server, you will need to copy C:/xampp.bak/FileZillaFTP/FileZilla Server.xml to C:/xampp/FileZillaFTP/FileZilla Server.xml
  9. Start XAMPP, Apache & MySQL
    a) Open XAMPP Control panel and install Apache & MySQL as a service
    b) Now start both services
  10. That is it!
    You should now be able to login to your control panel as normal.
    If you have any questions or concerns, please contact your server administrator first.