Tampilkan postingan dengan label Laravel. Tampilkan semua postingan
Tampilkan postingan dengan label Laravel. Tampilkan semua postingan

Install Laravel in Ubuntu 16.04

Installing Laravel

In previous post i have explain you how to install composer, today we will learn how to install Laravel using composer.
becouse i'm using apache webserver then my default Documentroot is in the /var/www/html.

so, open you terminal and go to /var/www/html and then run this command


Make VirtualHost

Now go to the /etc/apache2/sites-available directory and use 
the following command to create a configuration file for our laravel install.

cd /etc/apache2/sites-available
sudo nano laravel.conf


Now we have to enable this newly created .conf file and disable the default .conf file that is installed with the default Apache install. Also we need to enable mod_rewrite so that permalinks can function properly.


now open  browser and hit http://webtoken.faiz . picture below is screesshoot of my project















On next post we will learn about crud in laravel and postgre.

Install Composer on Ubuntu 16.04

Introduction

Composer is an application-level package manager for the PHP programming language that provides a standard format for managing dependencies of PHP software and required libraries.


1- Installing Dependency

Before you are Downloding and installing composer, you have to make sure that your server already updated. all you need is to update Package manager chache by running this command
you need curl and php7.0-cli to install composer  use this commond to install both of them


2- Download And Installas Composer

it's really easy to install composer, all you need is just run this command

Yes, after executing the Command above, Composer is already downloaded and installed as a system command named 'composer', in the / usr / local / bin directory. Well, after the composer is installed, there is a notification like this:
 All settings correct for using ComposerDownloading 1.2.4... 
 Composer successfully installed to: /usr/local/bin/composer
 Use it: php /usr/local/bin/composer

make sure that you composer already installed properly by executing this command in you terminal






Install Laravel in Ubuntu 16.04

Installing Laravel In previous post i have explain you how to install composer , today we will learn how to install Laravel using composer...