How To Update XAMPP

If you have websites installed on your computer with xampp connected with some DNS, and you want to update just xampp do so:

1. Stop services or process under XAMPP control panel and EXIT
2. Rename installation folder C:\XAMPP\… with C:\XAMPP_old\
3. Create new folder with the same name C:\XAMPP\…
4. Install there new version of XAMPP (in security options you have to write the same passwords and usernames you had before)
5. Ctrl+c or ctrl+x just website folders under C:\XAMPP\htdocs\*… (don’t copy xampp folder and others who came with installation)
6. Create databases (with same name as before), this will create just new folder under C:\XAMPP\mysql\data\* with file inside db.opt + copy ibdata1 file under folder C:\XAMPP\mysql\
7. Copy content of older C:\XAMPP_old\mysql\data\*\ to C:\XAMPP\mysql\data\*\ and skip the file db.opt
8. If you did changes in previous xampp of file httpd-vhosts.conf under C:\XAMPP\apache\conf\extra\ don’t forget to copy it right and create folder C:\XAMPP\log
9. Start XAMPP control panel, start apache and mysql
10. DONE

add web pages under c:/windows/system32/drivers/etc/hosts
127.0.0.1 www.example.com


ServerAdmin webmaster@dummy-host.example.com
DocumentRoot “C:/xampp/htdocs/dummy-host.example.com”
ServerName dummy-host.example.com
ServerAlias www.dummy-host.example.com

port forwarding 80, 443, 3306

Disk Recovery Windows User Permission for Files and Folders

Take Ownership of old disk windows user files and folders under Documents and Settings folder (User)

Run an elevated command prompt (Start –> type command in the search box –> Right click command prompt and Run as Administrator (or control+shift+enter)

Navigate to the partition containing the folder in question (C:, D:, E:, etc). If the folder in question is on the C: drive, type CD\ to get to the root (assuming C is your OS drive).

Type the following command:

TAKEOWN /F *directory name or path*

Example:

C:\Windows\system32>D:

D:\>TAKEOWN /F Music

Next, use the following command:

ICACLS *Directory name or path* /grant %USERNAME%:F /T

Example:

D:\>ICACLS Music /grant %USERNAME%:F /T

The screen will scroll through all of the subfolders and files within that directory until it’s finished.

CMD (Command Prompt) as Administrator

cd to the relevant drive root (in my case D:\)

TAKEOWN /F *.* /A /R /D Y 
/F processes all files
/R recurs for all subfolders and files
/A takes permission for the Administrators group (I could easily have specified my own username but shouldn’t be necessary as I’m running CMD as Administrator anyway and so it might have failed in the next step)
/D Y suppresses the confirmation prompt

ICACLS D:\* /grant:R everyone:F /T