Posts

Showing posts from August, 2016

Laravel framework installation in linux(ubuntu)

->First, update the package manager cache by running:     sudo apt-get update -> Download Composer and php5-cli for installing and running for project dependencies as well as curl. it can be installed with the following command:     sudo apt-get install curl php5-cli git -> Install Composer First     cd ~     curl -sS https://getcomposer.org/installer | sudo php         //Composer successfully installed to: /home/sandeep/composer.phar -> Installer Composer Globally     sudo mv composer.phar /usr/local/bin/composer ->Install Laravel     cd /var/www/html     composer create-project laravel/laravel your-project --prefer-dist -> Set up your Apache virtual host     # Copy default Apache conf     sudo cp /etc/apache2/sites-available/000-default /etc/apache2/sites-available/laravel.conf         //if you need to change root then use otherwise its ok     # Edit laravel.conf and change DocumentRoot to /var/www/laravel/public     sudo nano /etc/apache2/sites-available/laravel.c

Yii 1.0 installation in Linux (Ubuntu)

- Copy yii and paste to var/www/html - Open Terminal write command: cd /var/www/html - write command: "php yii_framework/framework/yiic webapp mysite" Now it will work Test: http://localhost/mysite/index.php

Yii 1.0 installation in Window

- Set environment Variable Path php/bin from wamp - Copy yii and paste to wamp/www - make your project folder - Run yiic on the command line as follows:     % YiiRoot/framework/yiic webapp WebRoot/testdrive     YiiRoot:         Put proper path of yii folder path     WebRoot/testdrive:      Give path of project folder     Note: When running yiic on Mac OS, Linux or Unix, you may need to change       the permission of the yiic file so that it is executable. Alternatively,       you may run the tool as follows,         % cd WebRoot         % php YiiRoot/framework/yiic.php webapp testdrive Test:     http://localhost/testdrive/index.php