Monday 26 October 2015

phpmyadmin security for xampp 1.8.1

how to secure your phpmyadmin
Steps
1. please see the link:  http://localhost/security/

make sure that your xampp are active

2. select your language

3. click the link on your page..

To fix the problems for mysql, phpmyadmin and the xampp directory simply use
=> http://localhost/security/xamppsecurity.php <=   [allowed only for localhost]

just follow the instructions and your good to go!!
 

Sunday 25 October 2015

How To Setup Virtual Hosts Using XAMPP

steps

1. C:/xampp/apache/conf/extra

edit : httpd-vhosts.conf

add: 
<VirtualHost *:80>
DocumentRoot "C:/xampp/htdocs/testsite"
ServerName dev.test.com
ServerAlias dev.test.com
<Directory "c:/xampp/htdocs/testsite">
AllowOverride All
Require all Granted
</Directory>
</VirtualHost>
 
2.locate C:/Windows/System32/drivers/etc/
 
edit host file.
 
add the ff.
 
127.0.0.1             localhost
127.0.0.1             dev.test.com
 
restart xampp and now you have your vhost!!! 
  
 

Wednesday 21 October 2015

How to add git(bitbucket) to existing source code folder?

Create a project with some code:
$ mkdir project_name
$ cd project_name
$ echo "sample txt" > name of file to update
 
Inside the project's folder, do an initial commit:
$ git init
$ git add file_name or --all if all files
$ git commit -m "Initial commit"
 
and remote and push up

$ git remote add file_name  user@host:repo
$ git push filename or --all 
 
 

Saturday 3 October 2015