Fork me on GitHub

Install LAMP Stack on Ubuntu

The acronym of LAMP stands for Linux, Apache, MySQL, and PHP. It’s straight forward to install LAMP on Ubuntu. To install apache: sudo apt-get update sudo apt-get install apache2 To install MySQL: sudo apt-get install mysql-server libapache2-mod-auth-mysql php5-mysql During the installation, MySQL will ask you to set a root password....

Set Proper permission for upload folder

What are the proper permissions for an upload folder with PHP/Apache? The proper permission for an upload folder is 775. But sometimes only giving chmod 775 -R folders/path and change ownership of the folder doesn’t work when we’re trying to upload a file to that folders/path. For this, we’ve to...

Working with Git - Git LifeHacks

Git Basic: To add all the changes for commit : git add -A For commit : git commit -m "Your commit message" For commit with all the changes in a single line : git commit -am "Your commit message" With this, you don’t need to write git add -A To...

Setting up Ubuntu for Web Development

Update apt cache : sudo apt-get update Upgrade apt cache : sudo apt-get upgrade Install Guake Terminal : If you love to work in terminal, then you’ll must love Guake terminal. By pressing F12, you can easily turn on/off the terminal. To install guake terminal, run: sudo apt-get -y install...