How to change the document root in XAMPP on windows

I have installed XAMPP in C drive on my windows. Today I thought I will move my installation to another directory. After searching the web for couple of minutes, I got a solution that worked perfectly. Here are the steps you have to follow. Open the file httpd.conf from the location C:/xampp/apache/conf Search for DocumentRoot and you will get something …

How to change the document root in XAMPP on windows Read More »

Create virual host in apache

Step 1) C:\WINDOWS\system32\drivers\etc\ Open the “hosts” file : localhost Step 2) xampp\apache\conf\extra\httpd-vhosts.conf DocumentRoot C:/xampp/htdocs/test/ ServerName DocumentRoot C:/xampp/htdocs/example/ ServerName Step 3) C:\xampp\apache\conf\httpd.conf. Scroll down to the Supplemental configuration section at the end, and locate the following section (around line 500), Remove the # from the beginning of the second …

Create virual host in apache Read More »

Change password root in mysql

1) Tiếp tục $ mysql -u root -p 2) sử dụng database bất kỳ (dùng db mysql mặc định) mysql> use mysql; 3)Thay đổi password của tài khoản root: mysql> update user set password=PASSWORD(“NEWPASSWORD”) where User=’root’; 4) Khởi tạo quyền mysql> flush privileges; mysql> quit

How to use GIT command line

Git clone: lấy một project mới về Git checkout -b (branh-name): tách và tạo nhánh mới Git checkout (branch-name): chuyển nhánh Git pull: lấy code từ remote về local branch Git add .  or Git add -A: chấp nhận các thay đổi trong code Git commit -m “meassage”: đưa code lên local Git push: đẩy …

How to use GIT command line Read More »