Skip to main content

Posts

Showing posts from May, 2015

How to install Laravel on Ubuntu

To install Laravel you must have install LAMP stack (Linux, Apache2, MySql, and PHP) on your Ubuntu system Install LAMP: If not installed LAMP sudo apt-get install apache2 sudo apt-get install php5 sudo apt-get install mysql-server sudo apt-get install php5-mysql Install PHP extensions Some PHP extensions are necessary to install before installing Laravel 1.  unzip used for the unzip laravel sudo apt-get install unzip 2. Use Composer (which needs CURL) sudo apt-get install curl 3. Use Composer (which downloads via HTTPS, usable only with install Openssl) sudo apt-get install openssl 4. Use Laravel 4 (which needs mcrypt) sudo apt-get install php5-mcrypt Install Composer curl -sS https://getcomposer.org/installer | php sudo mv composer.phar /usr/local/bin/composer Activate mod_rewrite sudo a2enmod rewrite sudo service apache2 restart Open the default vhost config file: sudo nano /etc/apache2/sites-available/default Now search for "AllowOv

How to know currently installed PHP version

1. Create a php file in your web root directory,     If you are using Linux then it will in /var/www directory       Create a file using linux commands:     cd /var/www     nano phpinfo.php 2. Write the following code     <?php               phpinfo();      ?> 3. Then run this php script on the browser and have fun!!!

How to fix E: could not get lock /var/lib/dpkg/lock - open (11 resource temporarily unavailable) in ubuntu 12.04

Use the following commands to resolve this problem 1. Search for processes       ps -A | grep apt-get 2. See if there is any process running as apt-get then kill that process using the process id       sudo kill -9 <process id>            for example: if the process id  9119 then command will be sudo kill -9 9119