Quantcast
Channel: WeAreWebDevelopers » Information Technology
Viewing all articles
Browse latest Browse all 6

Upgrading XAMPP Localhost in Windows

$
0
0

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

IMPORTANT!

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

 

thanks to : http://www.cast-control.net/mediacp/documentation/configuration/upgrading-xampp/

To update XAMPP in Windows. Please follow these steps.

  1. Download the latest version of XAMPP
  2. Now backup your existing “htdocs” folder.
  3. Backup your existing “data” folder, which is inside the mysql folder.
  4. Over-right all the files of existing “xampp” folder with the latest version of “xampp”
  5. If you have installed the installer version of XAMPP then just download the latest installer version of XAMPP and just install the latest version on the same location so it overwrites the existing files.
  6. After overwriting all the files run “setup_xampp.bat“, which is inside the “xampp” folder.
  7. Copy all your sites folder back to “htdocs” folder.
  8. Copy your old “data” folder and paste it inside the “mysql” folder
  9. Now fire up Apache and MySQL
  10. Visit your sites.
  11. If you can visit you sites then its done. But sites that uses MySQL database might cause some problem if you used any other user name and password other than the default xampp password. In that case follow on.
  12. Visit “phpMyAdmin” from http://localhost/phpmyadmin
  13. Press the “Privileges” tab, here if you used “root” user with a password then change the passwords for bothroot at localhost and 127.0.0.1
  14. If you used a different user name and password all together then create the new user using your old details that you used on your previous XAMPP installation.
  15. Now you should be able to visit your sites that uses MySQL database. eg: Joomla, wordperss etc
  16. Remember if you change the root users passwords then phpMyAdmin will not be able to connect to theMySQL database until you change the phpMyAdmin configuration.
  17. To change phpMyAdmin configuration goto (using file explorer not your browser) “xampp/phpMyAdmin” and open “config.inc.php
  18. On line 21 of “config.inc.php” type the root users password. eg:$cfg['Servers'][$i]['password'] = ‘root_users_password‘;
  19. If you want then you can change the user name too, in that case you will have provide that users password.

If you have followed my instructions then you should have a functioning XAMPPP with no issues. If you do face any problem then please leave a comment and I will do my best to get back to you.

 

thanks to : http://www.abouthack.com/articles/windows/how-to-update-xampp-in-windows.html

 


Viewing all articles
Browse latest Browse all 6

Latest Images

Trending Articles





Latest Images