{"id":1002,"date":"2016-11-22T03:49:15","date_gmt":"2016-11-22T03:49:15","guid":{"rendered":"http:\/\/myprojects.advchaweb.com\/?p=1002"},"modified":"2017-01-11T14:39:36","modified_gmt":"2017-01-11T14:39:36","slug":"laravel-homestead-virtualbox-vagrant","status":"publish","type":"post","link":"https:\/\/myprojects.advchaweb.com\/index.php\/2016\/11\/22\/laravel-homestead-virtualbox-vagrant\/","title":{"rendered":"Laravel Homestead VirtualBox Vagrant"},"content":{"rendered":"<p>Url: <a href=\"https:\/\/laravel.com\/docs\/5.3\/homestead\" target=\"_blank\">https:\/\/laravel.com\/docs\/5.3\/homestead<br \/>\n<\/a>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 <a href=\"https:\/\/www.sitepoint.com\/quick-tip-get-homestead-vagrant-vm-running\/\" target=\"_blank\">Quick Tip: Get a Homestead Vagrant VM Up and Running<br \/>\n<\/a>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 <a href=\"https:\/\/scotch.io\/tutorials\/getting-started-with-laravel-homestead\" target=\"_blank\">Getting Started with Laravel Homestead<\/a><\/p>\n<p>Introduction<br \/>\nLaravel strives to make the entire PHP development experience delightful, including your local development environment. Vagrant provides a simple, elegant way to manage and provision Virtual Machines.<\/p>\n<p>Laravel Homestead is an official, pre-packaged Vagrant box that provides you a wonderful development environment without requiring you to install PHP, a web server, and any other server software on your local machine. No more worrying about messing up your operating system! Vagrant boxes are completely disposable. If something goes wrong, you can destroy and re-create the box in minutes!<\/p>\n<p>Homestead runs on any Windows, Mac, or Linux system, and includes the Nginx web server, PHP 7.0, MySQL, Postgres, Redis, Memcached, Node, and all of the other goodies you need to develop amazing Laravel applications.<\/p>\n<p>Installation:<\/p>\n<ol>\n<li>Install VirtualBox (<a href=\"https:\/\/www.virtualbox.org\/wiki\/Linux_Downloads\">https:\/\/www.virtualbox.org\/wiki\/Linux_Downloads<\/a>)<\/li>\n<li>Install Vagrant (<a href=\"https:\/\/www.vagrantup.com\/downloads.html\">https:\/\/www.vagrantup.com\/downloads.html<\/a>)<\/li>\n<li>Installing The Homestead Vagrant Box\n<pre class=\"lang:default decode:true\">teddy@teddy-K43SJ:~$ vagrant box add laravel\/homestead\r\n==&gt; box: Loading metadata for box 'laravel\/homestead'\r\n    box: URL: https:\/\/atlas.hashicorp.com\/laravel\/homestead\r\nThis box can work with multiple providers! The providers that it\r\ncan work with are listed below. Please review the list and choose\r\nthe provider you will be working with.\r\n\r\n1) virtualbox\r\n2) vmware_desktop\r\n\r\nEnter your choice: 1\r\n==&gt; box: Adding box 'laravel\/homestead' (v0.6.0) for provider: virtualbox\r\n    box: Downloading: https:\/\/atlas.hashicorp.com\/laravel\/boxes\/homestead\/versions\/0.6.0\/providers\/virtualbox.box\r\n==&gt; box: Successfully added box 'laravel\/homestead' (v0.6.0) for 'virtualbox'!<\/pre>\n<p>&nbsp;<\/li>\n<li>Installing Homestead\n<pre class=\"lang:default decode:true \">teddy@teddy-K43SJ:~$ cd ~\r\nteddy@teddy-K43SJ:~$ git clone https:\/\/github.com\/laravel\/homestead.git Homestead\r\nCloning into 'Homestead'...\r\nremote: Counting objects: 1675, done.\r\nremote: Total 1675 (delta 0), reused 0 (delta 0), pack-reused 1675\r\nReceiving objects: 100% (1675\/1675), 261.38 KiB | 152.00 KiB\/s, done.\r\nResolving deltas: 100% (989\/989), done.\r\nChecking connectivity... done.<\/pre>\n<p>Please check &#8216;Homestead&#8217; directory at Home (\/home\/teddy)<\/li>\n<li>Once you have cloned the Homestead repository, run the bash init.sh command from the Homestead directory to create the Homestead.yaml configuration file. The Homestead.yaml file will be placed in the ~\/.homestead hidden directory:\n<pre class=\"lang:default decode:true \">teddy@teddy-K43SJ:~$ cd Homestead\/\r\nteddy@teddy-K43SJ:~\/Homestead$ bash init.sh\r\nHomestead initialized!<\/pre>\n<pre class=\"lang:default decode:true \">teddy@teddy-K43SJ:~\/Homestead$ cd ~\/.homestead\/\r\nteddy@teddy-K43SJ:~\/.homestead$ ls\r\nafter.sh  aliases  Homestead.yaml<\/pre>\n<p>&nbsp;<\/li>\n<li>Configuring Homestead. Setting Your Provider<br \/>\nThe provider key in your ~\/.homestead\/Homestead.yaml file indicates which Vagrant provider should be used: virtualbox, vmware_fusion, or vmware_workstation. You may set this to the provider you prefer:<\/p>\n<pre class=\"lang:default decode:true \">teddy@teddy-K43SJ:~\/.homestead$ gedit Homestead.yaml<\/pre>\n<p>Here is the file content looks like:<\/p>\n<pre class=\"lang:default decode:true \">---\r\nip: \"192.168.10.10\"\r\nmemory: 2048\r\ncpus: 1\r\nprovider: virtualbox\r\n\r\nauthorize: ~\/.ssh\/id_rsa.pub\r\n\r\nkeys:\r\n    - ~\/.ssh\/id_rsa\r\n\r\nfolders:\r\n    - map: ~\/Code\r\n      to: \/home\/vagrant\/Code\r\n\r\nsites:\r\n    - map: homestead.app\r\n      to: \/home\/vagrant\/Code\/Laravel\/public\r\n\r\ndatabases:\r\n    - homestead\r\n\r\n# blackfire:\r\n#     - id: foo\r\n#       token: bar\r\n#       client-id: foo\r\n#       client-token: bar\r\n\r\n# ports:\r\n#     - send: 50000\r\n#       to: 5000\r\n#     - send: 7777\r\n#       to: 777\r\n#       protocol: udp<\/pre>\n<p>&nbsp;<\/li>\n<li>Configuring Shared Folders<br \/>\n<del>I prefer to let it as is (please see &#8216;folders&#8217; in ~.homestead\/Homestead.yaml file above)<\/del> &#8211;&gt; DON&#8217;T DO THIS, IF &#8216;map&#8217; VALUE STILL &#8216;~\/Code&#8217;, PLEASE MODIFY IT (CHECK YOUR WEB DIRECTORY IS BETTER) BECAUSE I GOT THIS ERROR:<\/p>\n<pre class=\"lang:default decode:true \">teddy@teddy-K43SJ:~\/Homestead$ vagrant up\r\nBringing machine 'homestead-7' up with 'virtualbox' provider...\r\nThere are errors in the configuration of this machine. Please fix\r\nthe following errors and try again:\r\n\r\nvm:\r\n* The host path of the shared folder is missing: ~\/Code<\/pre>\n<p>MODIFY IT TO &#8216;~\/Documents\/works\/laravel&#8217; LIKE THIS:<\/p>\n<pre class=\"lang:default decode:true \">...\r\nfolders:\r\n    - map: ~\/Documents\/works\/laravel\r\n      to: \/home\/vagrant\/Code\r\n...<\/pre>\n<\/li>\n<li>Configuring Nginx Sites<br \/>\nI prefer to let it as is (please see &#8216;sites&#8217; in ~.homestead\/Homestead.yaml file above)<br \/>\nIf you change the sites property after provisioning the Homestead box, you should re-run vagrant reload &#8211;provision to update the Nginx configuration on the virtual machine.<\/li>\n<li>Configure SSH Key (IF NOT EXIST IN \/home\/teddy\/.ssh\/)\n<pre class=\"lang:default decode:true \">teddy@teddy-K43SJ:~\/Homestead$ ssh-keygen -t rsa -C \"advcha@yahoo.com\"<\/pre>\n<\/li>\n<li>The Hosts File<br \/>\nYou must add the &#8220;domains&#8221; for your Nginx sites to the hosts file on your machine. The hosts file will redirect requests for your Homestead sites into your Homestead machine. On Mac and Linux, this file is located at \/etc\/hosts.<\/p>\n<pre class=\"lang:default decode:true \">teddy@teddy-K43SJ:~\/.homestead$ sudo gedit \/etc\/hosts<\/pre>\n<p>Add this line in the file:<\/p>\n<pre class=\"lang:default decode:true \">192.168.10.10  homestead.app<\/pre>\n<p>Make sure the IP address listed is the one set in your ~\/.homestead\/Homestead.yaml file. Once you have added the domain to your hosts file and launched the Vagrant box you will be able to access the site via your web browser:<\/li>\n<li>Launching The Vagrant Box<br \/>\nOnce you have edited the Homestead.yaml to your liking, run the vagrant up command from your Homestead directory. Vagrant will boot the virtual machine and automatically configure your shared folders and Nginx sites.<\/p>\n<pre class=\"lang:default decode:true \">teddy@teddy-K43SJ:~\/.homestead$ cd ~\r\nteddy@teddy-K43SJ:~$ cd Homestead\/\r\nteddy@teddy-K43SJ:~\/Homestead$ vagrant up<\/pre>\n<p>BUT I GOT THIS ERROR:<\/p>\n<pre class=\"lang:default decode:true\">\/home\/teddy\/Homestead\/scripts\/homestead.rb:109:in `read': No such file or directory @ rb_sysopen - \/home\/teddy\/.ssh\/id_rsa (Errno::ENOENT)\r\n\tfrom \/home\/teddy\/Homestead\/scripts\/homestead.rb:109:in `block (2 levels) in configure'\r\n\tfrom \/opt\/vagrant\/embedded\/gems\/gems\/vagrant-1.8.7\/plugins\/kernel_v2\/config\/vm_provisioner.rb:72:in `call'\r\n\tfrom \/opt\/vagrant\/embedded\/gems\/gems\/vagrant-1.8.7\/plugins\/kernel_v2\/config\/vm_provisioner.rb:72:in `add_config'\r\n\tfrom \/opt\/vagrant\/embedded\/gems\/gems\/vagrant-1.8.7\/plugins\/kernel_v2\/config\/vm.rb:324:in `provision'\r\n\tfrom \/home\/teddy\/Homestead\/scripts\/homestead.rb:106:in `block in configure'\r\n\tfrom \/home\/teddy\/Homestead\/scripts\/homestead.rb:105:in `each'\r\n\tfrom \/home\/teddy\/Homestead\/scripts\/homestead.rb:105:in `configure'\r\n\tfrom \/home\/teddy\/Homestead\/Vagrantfile:30:in `block in &lt;top (required)&gt;'\r\n\tfrom \/opt\/vagrant\/embedded\/gems\/gems\/vagrant-1.8.7\/lib\/vagrant\/config\/v2\/loader.rb:37:in `call'\r\n\tfrom \/opt\/vagrant\/embedded\/gems\/gems\/vagrant-1.8.7\/lib\/vagrant\/config\/v2\/loader.rb:37:in `load'\r\n\tfrom \/opt\/vagrant\/embedded\/gems\/gems\/vagrant-1.8.7\/lib\/vagrant\/config\/loader.rb:113:in `block (2 levels) in load'\r\n\tfrom \/opt\/vagrant\/embedded\/gems\/gems\/vagrant-1.8.7\/lib\/vagrant\/config\/loader.rb:107:in `each'\r\n\tfrom \/opt\/vagrant\/embedded\/gems\/gems\/vagrant-1.8.7\/lib\/vagrant\/config\/loader.rb:107:in `block in load'\r\n\tfrom \/opt\/vagrant\/embedded\/gems\/gems\/vagrant-1.8.7\/lib\/vagrant\/config\/loader.rb:104:in `each'\r\n\tfrom \/opt\/vagrant\/embedded\/gems\/gems\/vagrant-1.8.7\/lib\/vagrant\/config\/loader.rb:104:in `load'\r\n\tfrom \/opt\/vagrant\/embedded\/gems\/gems\/vagrant-1.8.7\/lib\/vagrant\/vagrantfile.rb:28:in `initialize'\r\n\tfrom \/opt\/vagrant\/embedded\/gems\/gems\/vagrant-1.8.7\/lib\/vagrant\/environment.rb:746:in `new'\r\n\tfrom \/opt\/vagrant\/embedded\/gems\/gems\/vagrant-1.8.7\/lib\/vagrant\/environment.rb:746:in `vagrantfile'\r\n\tfrom \/opt\/vagrant\/embedded\/gems\/gems\/vagrant-1.8.7\/lib\/vagrant\/environment.rb:492:in `host'\r\n\tfrom \/opt\/vagrant\/embedded\/gems\/gems\/vagrant-1.8.7\/lib\/vagrant\/environment.rb:214:in `block in action_runner'\r\n\tfrom \/opt\/vagrant\/embedded\/gems\/gems\/vagrant-1.8.7\/lib\/vagrant\/action\/runner.rb:33:in `call'\r\n\tfrom \/opt\/vagrant\/embedded\/gems\/gems\/vagrant-1.8.7\/lib\/vagrant\/action\/runner.rb:33:in `run'\r\n\tfrom \/opt\/vagrant\/embedded\/gems\/gems\/vagrant-1.8.7\/lib\/vagrant\/environment.rb:479:in `hook'\r\n\tfrom \/opt\/vagrant\/embedded\/gems\/gems\/vagrant-1.8.7\/lib\/vagrant\/environment.rb:728:in `unload'\r\n\tfrom \/opt\/vagrant\/embedded\/gems\/gems\/vagrant-1.8.7\/bin\/vagrant:192:in `ensure in &lt;main&gt;'\r\n\tfrom \/opt\/vagrant\/embedded\/gems\/gems\/vagrant-1.8.7\/bin\/vagrant:192:in `&lt;main&gt;'<\/pre>\n<p>SOLUTION: (ref: Problem launching vagrant on Homestead)<br \/>\nFrom this error<\/p>\n<pre class=\"lang:default decode:true \">No such file or directory @ rb_sysopen - \/home\/teddy\/.ssh\/id_rsa (Errno::ENOENT)<\/pre>\n<p>I didn&#8217;t find &#8216;id_rsa&#8217; file in \/home\/teddy\/.ssh\/ directory. I need to configure my SSH location like this:<\/p>\n<pre class=\"lang:default decode:true\">teddy@teddy-K43SJ:~\/Homestead$ ssh-keygen -t rsa -C \"advcha@yahoo.com\"\r\nGenerating public\/private rsa key pair.\r\nEnter file in which to save the key (\/home\/teddy\/.ssh\/id_rsa): \r\nEnter passphrase (empty for no passphrase): \r\nEnter same passphrase again: \r\nYour identification has been saved in \/home\/teddy\/.ssh\/id_rsa.\r\nYour public key has been saved in \/home\/teddy\/.ssh\/id_rsa.pub.\r\nThe key fingerprint is:\r\nb6:7b:c7:0c:c9:d1:3d:a7:8b:8f:56:25:52:2b:6a:48 advcha@yahoo.com\r\nThe key's randomart image is:\r\n+--[ RSA 2048]----+\r\n|                 |\r\n|              .  |\r\n|           . o . |\r\n|        E . + = o|\r\n|       .So + o * |\r\n|       ...*   o  |\r\n|        .. + o . |\r\n|         .. *..  |\r\n|        .. o...  |\r\n+-----------------+<\/pre>\n<p>SEE MY MODIFICATION AT #9.<br \/>\nThen I run &#8216;vagrant up&#8217; again. BUT GOT ANOTHER ERROR:<\/p>\n<pre class=\"lang:default decode:true\">teddy@teddy-K43SJ:~\/Homestead$ vagrant up\r\nBringing machine 'homestead-7' up with 'virtualbox' provider...\r\nThere are errors in the configuration of this machine. Please fix\r\nthe following errors and try again:\r\n\r\nvm:\r\n* The host path of the shared folder is missing: ~\/Code<\/pre>\n<p>SOLUTION: (ref: <a href=\"https:\/\/teamtreehouse.com\/community\/vagrant-the-host-path-of-the-shared-folder-is-missing\" target=\"_blank\">Vagrant: The host path of the shared folder is missing<\/a>)<br \/>\nSEE MY MODIFICATION AT #7 ABOVE!<br \/>\nRUN &#8216;vagrant up&#8217; again! SUCCESS:<\/p>\n<pre class=\"lang:default decode:true \">teddy@teddy-K43SJ:~\/Homestead$ vagrant up\r\nBringing machine 'homestead-7' up with 'virtualbox' provider...\r\n==&gt; homestead-7: Importing base box 'laravel\/homestead'...\r\n==&gt; homestead-7: Matching MAC address for NAT networking...\r\n==&gt; homestead-7: Checking if box 'laravel\/homestead' is up to date...\r\n==&gt; homestead-7: Setting the name of the VM: homestead-7\r\n==&gt; homestead-7: Clearing any previously set network interfaces...\r\n==&gt; homestead-7: Preparing network interfaces based on configuration...\r\n    homestead-7: Adapter 1: nat\r\n    homestead-7: Adapter 2: hostonly\r\n==&gt; homestead-7: Forwarding ports...\r\n    homestead-7: 80 (guest) =&gt; 8000 (host) (adapter 1)\r\n    homestead-7: 443 (guest) =&gt; 44300 (host) (adapter 1)\r\n    homestead-7: 3306 (guest) =&gt; 33060 (host) (adapter 1)\r\n    homestead-7: 5432 (guest) =&gt; 54320 (host) (adapter 1)\r\n    homestead-7: 22 (guest) =&gt; 2222 (host) (adapter 1)\r\n==&gt; homestead-7: Running 'pre-boot' VM customizations...\r\n==&gt; homestead-7: Booting VM...\r\n==&gt; homestead-7: Waiting for machine to boot. This may take a few minutes...\r\n    homestead-7: SSH address: 127.0.0.1:2222\r\n    homestead-7: SSH username: vagrant\r\n    homestead-7: SSH auth method: private key\r\n    homestead-7: \r\n    homestead-7: Vagrant insecure key detected. Vagrant will automatically replace\r\n    homestead-7: this with a newly generated keypair for better security.\r\n    homestead-7: \r\n    homestead-7: Inserting generated public key within guest...\r\n    homestead-7: Removing insecure key from the guest if it's present...\r\n    homestead-7: Key inserted! Disconnecting and reconnecting using new SSH key...\r\n==&gt; homestead-7: Machine booted and ready!\r\n==&gt; homestead-7: Checking for guest additions in VM...\r\n==&gt; homestead-7: Setting hostname...\r\n==&gt; homestead-7: Configuring and enabling network interfaces...\r\n==&gt; homestead-7: Mounting shared folders...\r\n    homestead-7: \/vagrant =&gt; \/home\/teddy\/Homestead\r\n    homestead-7: \/home\/vagrant\/Code =&gt; \/home\/teddy\/Documents\/works\/laravel\r\n==&gt; homestead-7: Running provisioner: file...\r\n==&gt; homestead-7: Running provisioner: shell...\r\n    homestead-7: Running: inline script\r\n==&gt; homestead-7: \r\n==&gt; homestead-7: ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDFs0+Hb8l+48Eq9Ac6kXclhIuecnLDF6W5jocqSQBcLjdixzCnwnvciW26PvUp2HEjzkzAX8s56Zx4v4cBJUoRRx7yxU60y3HeFDOFzrZEicnI\/10iwnmedFcm6SdvhhQvenVev8neZjI4SCnjAKvoTgu\/RKkHiU9wBVXhb7gHl0qkvo5333I9l8bMqjWQqdD7GDTjfdrbddQD0QrxR+aU+Hbpo6E1w7htbQ0iic\/Nif4oXjRQrQpgwHKA591oGyfAlqDNrQ361SZehIO0ZIBv\/3+am5696AluSTkm5DZW1TdidMChFKVIah9VcSZ3K+yRvtpavpCsJwfrnFLsjq+9 advcha@yahoo.com\r\n==&gt; homestead-7: Running provisioner: shell...\r\n    homestead-7: Running: inline script\r\n==&gt; homestead-7: Running provisioner: shell...\r\n    homestead-7: Running: \/tmp\/vagrant-shell20161122-2322-u1zhuj.sh\r\n==&gt; homestead-7: Running provisioner: shell...\r\n    homestead-7: Running: script: Creating Site: homestead.app\r\n==&gt; homestead-7: Running provisioner: shell...\r\n    homestead-7: Running: script: Restarting Nginx\r\n==&gt; homestead-7: Running provisioner: shell...\r\n    homestead-7: Running: script: Creating MySQL Database\r\n==&gt; homestead-7: Running provisioner: shell...\r\n    homestead-7: Running: script: Creating Postgres Database\r\n==&gt; homestead-7: Running provisioner: shell...\r\n    homestead-7: Running: script: Clear Variables\r\n==&gt; homestead-7: Running provisioner: shell...\r\n    homestead-7: Running: script: Update Composer\r\n==&gt; homestead-7: You are already using composer version 1.2.2 (stable channel).\r\n==&gt; homestead-7: Running provisioner: shell...\r\n    homestead-7: Running: \/tmp\/vagrant-shell20161122-2322-tjn045.sh<\/pre>\n<p>WE CAN SEE VAGRANT INSTALLED ALSO PHP, NGINX, MYSQL, POSTGRESQL,ETC.<br \/>\nOr you can see it from VirtualBox (Open Applications -&gt; System Tools -&gt; Oracle VM VirtualBox)<a href=\"http:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2016\/11\/vagrant-vm.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1012\" src=\"http:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2016\/11\/vagrant-vm.jpg\" alt=\"vagrant-vm\" width=\"775\" height=\"579\" srcset=\"https:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2016\/11\/vagrant-vm.jpg 775w, https:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2016\/11\/vagrant-vm-300x224.jpg 300w, https:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2016\/11\/vagrant-vm-768x574.jpg 768w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 984px) 61vw, (max-width: 1362px) 45vw, 600px\" \/><\/a>THIS GUI MORE CONVENIENT. I CAN &#8216;START&#8217;, &#8216;PAUSE&#8217; OR &#8216;CLOSE-&gt;POWER OFF&#8217; THE VIRTUAL MACHINE!<br \/>\nNOTE: START MUST BE FROM TERMINAL BY TYPING &#8216;vagrant up&#8217;. I CAN USE GUI TO START IT UP BECAUSE IT&#8217;S ALWAYS ASK FOR LOGIN AND PASSWORD THAT I DONT KNOW!<br \/>\nUSE &#8216;vagrant provision&#8217; TO RELOAD\/REFRESH VM!<br \/>\nTO SHUTDOWN THE VM (NO! USE SUSPEND INSTEAD. SEE BELOW), PLEASE TYPE &#8216;vagrant destroy &#8211;force&#8217;<br \/>\nREAD (https:\/\/www.vagrantup.com\/docs\/cli\/destroy.html): &#8220;The destroy command does not remove a box that may have been installed on your computer during vagrant up. Thus, even if you run vagrant destroy, the box installed in the system will still be present on the hard drive. To return your computer to the state as it was before vagrant up command, you need to use vagrant box remove.&#8221;<br \/>\nUSE SUSPEND INSTEAD OF SHUTDOWN (ref:https:\/\/scotch.io\/tutorials\/getting-started-with-laravel-homestead)<\/p>\n<pre class=\"lang:default decode:true \">teddy@teddy-K43SJ:~\/Homestead$ vagrant suspend\r\n==&gt; homestead-7: Saving VM state and suspending execution...<\/pre>\n<p>SOMETIMES I FORGOT TO SUSPEND THE VM BEFORE HIBERNATING MY LAPTOP. IT&#8217;D MAKE MY LAPTOP VERY SLOW. THE TERMINAL WOULD NOT RESPOND ANYMORE FOR ANYKEY BUT I CAN OPEN THE NEW ONE OR NEW TAB. USUALLY THE VM STATUS IS PAUSED.<\/p>\n<pre class=\"lang:default decode:true \">teddy@teddy-K43SJ:~\/Homestead$ vagrant status\r\nCurrent machine states:\r\n\r\nhomestead-7               paused (virtualbox)\r\n\r\nThe VM is paused. This VM may have been paused via the VirtualBox\r\nGUI or the VBoxManage command line interface. To unpause, please\r\nuse the VirtualBox GUI and\/or VBoxManage command line interface so\r\nthat vagrant would be able to control the VM again.\r\nteddy@teddy-K43SJ:~\/Homestead$ vagrant provision\r\n==&gt; homestead-7: VM is not currently running. Please, first bring it up with `vagrant up` then run this command.<\/pre>\n<p>I HAVE TO OPEN THE VirtualBox GUI AND DO Close -&gt; Save State MANUALLY TO STOP THE CURRENT PROCESS!<\/p>\n<pre class=\"lang:default decode:true \">teddy@teddy-K43SJ:~\/Homestead$ vagrant status\r\nCurrent machine states:\r\n\r\nhomestead-7               saved (virtualbox)\r\n\r\nTo resume this VM, simply run `vagrant up`.<\/pre>\n<p>&nbsp;<\/li>\n<li>Use SSH to get into the VM (ref: https:\/\/www.sitepoint.com\/quick-tip-get-homestead-vagrant-vm-running\/)\n<pre class=\"lang:default decode:true \">teddy@teddy-K43SJ:~\/Homestead$ vagrant ssh\r\nWelcome to Ubuntu 16.04.1 LTS (GNU\/Linux 4.4.0-38-generic x86_64)\r\n\r\n * Documentation:  https:\/\/help.ubuntu.com\r\n * Management:     https:\/\/landscape.canonical.com\r\n * Support:        https:\/\/ubuntu.com\/advantage\r\n\r\n4 packages can be updated.\r\n0 updates are security updates.\r\n\r\n\r\nvagrant@homestead:~$<\/pre>\n<p>It seems vagrant INSTALLED ubuntu 16.04 AS VM!<br \/>\nI can check the PHP version like this:<\/p>\n<pre class=\"lang:default decode:true\">vagrant@homestead:~$ php -v\r\nPHP 7.0.13-1+deb.sury.org~xenial+1 (cli) ( NTS )\r\nCopyright (c) 1997-2016 The PHP Group\r\nZend Engine v3.0.0, Copyright (c) 1998-2016 Zend Technologies\r\n    with Zend OPcache v7.0.13-1+deb.sury.org~xenial+1, Copyright (c) 1999-2016, by Zend Technologies\r\n    with blackfire v1.14.1~linux-x64-non_zts70, https:\/\/blackfire.io, by Blackfireio Inc.<\/pre>\n<p>I can browse the files and directories in it:<\/p>\n<pre class=\"lang:default decode:true\">vagrant@homestead:~$ ls\r\nCode\r\nvagrant@homestead:~$ cd Code\/\r\nvagrant@homestead:~\/Code$ ls\r\nblog           composer.lock     latihan-crud\r\ncomposer.json  crud-materialize  mylaravelproject<\/pre>\n<\/li>\n<li>Run http:\/\/homestead.app<br \/>\nBut before we do this, WE NEED TO ADD A FEW DIRECTORIES AND FILE. BECAUSE WE KNOW THE WEB ROOT FOR OUR VM IS &#8216;\/home\/vagrant\/Code&#8217; IS MAPPED TO &#8216;~\/Documents\/works\/laravel&#8217; (SEE ~\/.homestead\/Homestead.yaml). FOR &#8216;homestead.app&#8217; (IS MAPPED TO &#8216;\/home\/vagrant\/Code\/Laravel\/public&#8217;), ADD A NEW DIRECTORY &#8216;Laravel&#8217; in \/Documents\/works\/laravel\/, THEN ADD &#8216;public&#8217; DIRECTORY IN IT. THEN ADD A NEW FILE &#8216;index.php&#8217; IN IT. SO THE FULL PATH IS &#8216;\/Documents\/works\/laravel\/Laravel\/public\/index.php&#8217;. In the PHP file, just add a line of code:<\/p>\n<pre class=\"lang:default decode:true \">&lt;?php\r\nphpinfo();\r\n?&gt;<\/pre>\n<p>THEN RUN http:\/\/homestead.app\/ IN OUR BROWSER!<a href=\"http:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2016\/11\/vagrant-phpinfo.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1015\" src=\"http:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2016\/11\/vagrant-phpinfo.png\" alt=\"vagrant-phpinfo\" width=\"962\" height=\"958\" srcset=\"https:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2016\/11\/vagrant-phpinfo.png 962w, https:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2016\/11\/vagrant-phpinfo-150x150.png 150w, https:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2016\/11\/vagrant-phpinfo-300x300.png 300w, https:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2016\/11\/vagrant-phpinfo-768x765.png 768w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/a>I can see I&#8217;m using NGINX as a webserver instead of Apache<br \/>\n<a href=\"http:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2016\/11\/vagrant-nginx.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1023\" src=\"http:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2016\/11\/vagrant-nginx.png\" alt=\"vagrant-nginx\" width=\"947\" height=\"300\" srcset=\"https:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2016\/11\/vagrant-nginx.png 947w, https:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2016\/11\/vagrant-nginx-300x95.png 300w, https:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2016\/11\/vagrant-nginx-768x243.png 768w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/a><br \/>\nHOW TO RUN MYSQL DATABASE???<br \/>\nSOLUTION:<br \/>\n<span style=\"color: #ffff00;\">REMEMBER: VAGRANT MUST BE IN &#8216;UP&#8217; MODE FOR THIS SITUATION!<\/span><br \/>\nLogin to ssh (&#8216;vagrant ssh&#8217;) then check the mysql location with &#8216;which mysql&#8217;<\/p>\n<pre class=\"lang:default decode:true \">teddy@teddy-K43SJ:~\/Homestead$ vagrant ssh\r\nWelcome to Ubuntu 16.04.1 LTS (GNU\/Linux 4.4.0-38-generic x86_64)\r\n\r\n * Documentation:  https:\/\/help.ubuntu.com\r\n * Management:     https:\/\/landscape.canonical.com\r\n * Support:        https:\/\/ubuntu.com\/advantage\r\n\r\n4 packages can be updated.\r\n0 updates are security updates.\r\n\r\n\r\nLast login: Wed Nov 23 07:27:28 2016 from 10.0.2.2\r\nvagrant@homestead:~$ which mysql\r\n\/usr\/bin\/mysql<\/pre>\n<p>From ~\/.homestead\/Homestead.yaml, here is the databases:<\/p>\n<pre class=\"lang:default decode:true \">databases:\r\n    - homestead<\/pre>\n<p>To connect to mysql server at VM, use default user:<\/p>\n<pre class=\"lang:default decode:true \">user: homestead\r\npassword: secret<\/pre>\n<pre class=\"lang:default decode:true\">vagrant@homestead:~$ mysql -uhomestead -psecret\r\nmysql: [Warning] Using a password on the command line interface can be insecure.\r\nWelcome to the MySQL monitor.  Commands end with ; or \\g.\r\nYour MySQL connection id is 11\r\nServer version: 5.7.16-0ubuntu0.16.04.1 (Ubuntu)\r\n\r\nCopyright (c) 2000, 2016, Oracle and\/or its affiliates. All rights reserved.\r\n\r\nOracle is a registered trademark of Oracle Corporation and\/or its\r\naffiliates. Other names may be trademarks of their respective\r\nowners.\r\n\r\nType 'help;' or '\\h' for help. Type '\\c' to clear the current input statement.\r\n\r\nmysql&gt; quit\r\nBye<\/pre>\n<p>So MYSQL Server version is 5.7.16<br \/>\nFor better for myself to connect to the mysql server, I tried to install the latest mysql client &#8216;MySQL Workbench&#8217; from https:\/\/dev.mysql.com\/downloads\/workbench\/.<br \/>\n&lt;OLD&gt;<br \/>\nCurrently the version is 6.3.8. But when I installed it, I got dependenci error &#8220;Dependency is not satisfiable: libatkmm-1.6-1v5 (&gt;=2.24.0)&#8221;. I checked again the downloaded file (mysql-workbench-community-6.3.8-1ubu1604-amd64.deb), IT&#8217;S APPARENTLY FOR UBUNTU 16.04!<br \/>\n&lt;\/OLD&gt;<br \/>\n&lt;NEW&gt;<br \/>\nRef: http:\/\/elementaryos.stackexchange.com\/questions\/6779\/cant-install-mysql-workbench-dependency-is-not-satisfiable<br \/>\nDownload MySQL Workbench for Ubuntu 14.04 here http:\/\/cdn.mysql.com\/\/archives\/mysql-workbench\/mysql-workbench-community-6.3.6-1ubu1404-amd64.deb THEN INSTALL. SUCCESS!<br \/>\n&lt;\/NEW&gt;<br \/>\nCONFIGURE MySQL Worbench TO CONNECT MySQL Server AT VM:<\/p>\n<pre class=\"lang:default decode:true \">Connection Name: vagrant\r\nHostname: 192.168.10.10\r\nUser: homestead\r\nPassword: secret\r\nPort: 3306\r\nDefault Schema: homestead<\/pre>\n<p><a href=\"http:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2016\/11\/vagrant-mysql-connection.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1020\" src=\"http:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2016\/11\/vagrant-mysql-connection.jpg\" alt=\"vagrant-mysql-connection\" width=\"809\" height=\"531\" srcset=\"https:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2016\/11\/vagrant-mysql-connection.jpg 809w, https:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2016\/11\/vagrant-mysql-connection-300x197.jpg 300w, https:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2016\/11\/vagrant-mysql-connection-768x504.jpg 768w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 984px) 61vw, (max-width: 1362px) 45vw, 600px\" \/><\/a><a href=\"http:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2016\/11\/vagrant-mysql-open.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-1021\" src=\"http:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2016\/11\/vagrant-mysql-open-1024x717.jpg\" alt=\"vagrant-mysql-open\" width=\"840\" height=\"588\" srcset=\"https:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2016\/11\/vagrant-mysql-open.jpg 1024w, https:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2016\/11\/vagrant-mysql-open-300x210.jpg 300w, https:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2016\/11\/vagrant-mysql-open-768x538.jpg 768w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/a>Now I can see the database &#8216;homestead&#8217;. I also can create any table!<\/p>\n<p>WHERE IS NGINX CONFIGURATION FILE???<br \/>\nSOLUTION:<br \/>\nUse &#8216;vagrant ssh&#8217; TO GET INTO THE HOME DIRECTORY OF VM. THEN GO TO THE ROOT DIRECTORY<\/p>\n<pre class=\"lang:default decode:true \">teddy@teddy-K43SJ:~\/Homestead$ vagrant ssh\r\nWelcome to Ubuntu 16.04.1 LTS (GNU\/Linux 4.4.0-38-generic x86_64)\r\n\r\n * Documentation:  https:\/\/help.ubuntu.com\r\n * Management:     https:\/\/landscape.canonical.com\r\n * Support:        https:\/\/ubuntu.com\/advantage\r\n\r\n4 packages can be updated.\r\n0 updates are security updates.\r\n\r\n\r\nLast login: Wed Nov 23 07:51:16 2016 from 10.0.2.2\r\nvagrant@homestead:~$ ls\r\nCode\r\nvagrant@homestead:~$ cd ..\r\nvagrant@homestead:\/home$ ls\r\nvagrant\r\nvagrant@homestead:\/home$ cd ..\r\nvagrant@homestead:\/$ ls\r\nbin   home            lib64       opt   sbin  tmp      vmlinuz\r\nboot  initrd.img      lost+found  proc  snap  usr      vmlinuz.old\r\ndev   initrd.img.old  media       root  srv   vagrant\r\netc   lib             mnt         run   sys   var<\/pre>\n<p>THE NGINX CONF FILE IN \/etc\/nginx\/nginx.conf<\/p>\n<pre class=\"lang:default decode:true \">vagrant@homestead:\/$ cd \/etc\/nginx\/\r\nvagrant@homestead:\/etc\/nginx$ ls\r\nconf.d          koi-win            proxy_params     ssl\r\nfastcgi.conf    mime.types         scgi_params      uwsgi_params\r\nfastcgi_params  modules-available  sites-available  win-utf\r\nhhvm.conf       modules-enabled    sites-enabled\r\nkoi-utf         nginx.conf         snippets<\/pre>\n<p>USE &#8216;nano&#8217; TO OPEN\/EDIT THE FILE<\/p>\n<pre class=\"lang:default decode:true \">vagrant@homestead:\/$ nano \/etc\/nginx\/nginx.conf<\/pre>\n<p>Here is the file content:<\/p>\n<pre class=\"lang:default decode:true\">user vagrant;\r\nworker_processes auto;\r\npid \/run\/nginx.pid;\r\ninclude \/etc\/nginx\/modules-enabled\/*.conf;\r\n\r\nevents {\r\n        worker_connections 768;\r\n        # multi_accept on;\r\n}\r\n\r\nhttp {\r\n\r\n        ##\r\n        # Basic Settings\r\n        ##\r\n\r\n        sendfile on;\r\n        tcp_nopush on;\r\n        tcp_nodelay on;\r\n        keepalive_timeout 65;\r\n        types_hash_max_size 2048;\r\n        # server_tokens off;\r\n\r\n        server_names_hash_bucket_size 64;\r\n        # server_name_in_redirect off;\r\n\r\n        include \/etc\/nginx\/mime.types;\r\n        default_type application\/octet-stream;\r\n\r\n        ##\r\n        # SSL Settings\r\n        ##\r\n\r\n        ssl_protocols TLSv1 TLSv1.1 TLSv1.2; # Dropping SSLv3, ref: POODLE\r\n        ssl_prefer_server_ciphers on;\r\n\r\n        ##\r\n        # Logging Settings\r\n        ##\r\n\r\n        access_log \/var\/log\/nginx\/access.log;\r\n        error_log \/var\/log\/nginx\/error.log;\r\n\r\n        ##\r\n        # Gzip Settings\r\n        ##\r\n\r\n        gzip on;\r\n        gzip_disable \"msie6\";\r\n\r\n        # gzip_vary on;\r\n        # gzip_proxied any;\r\n        # gzip_comp_level 6;\r\n        # gzip_buffers 16 8k;\r\n        # gzip_http_version 1.1;\r\n        # gzip_types text\/plain text\/css application\/json application\/javascrip$\r\n\r\n        ##\r\n        # Virtual Host Configs\r\n        ##\r\n\r\n        include \/etc\/nginx\/conf.d\/*.conf;\r\n        include \/etc\/nginx\/sites-enabled\/*;\r\n}\r\n\r\n\r\n#mail {\r\n#       # See sample authentication script at:\r\n#       # http:\/\/wiki.nginx.org\/ImapAuthenticateWithApachePhpScript\r\n#\r\n#       # auth_http localhost\/auth.php;\r\n#       # pop3_capabilities \"TOP\" \"USER\";\r\n#       # imap_capabilities \"IMAP4rev1\" \"UIDPLUS\";\r\n#\r\n#       server {\r\n#               listen     localhost:110;\r\n#               protocol   pop3;\r\n#               proxy      on;\r\n#       }\r\n#\r\n#       server {\r\n#               listen     localhost:143;\r\n#               protocol   imap;\r\n#               proxy      on;\r\n#       }\r\n#}<\/pre>\n<p>TIPS FOR USING NANO:<br \/>\nTO &#8216;COPY&#8217; THE TEXT AT THE TERMINAL, JUST USE MOUSE &amp; DRAG THEN Edit-&gt;Copy<br \/>\nTO &#8216;EXIT&#8217;\u00a0 THE TERMINAL, PRESS &#8216;Ctrl+X&#8217;<br \/>\nuse CTRL-O to Save\/overwrite the changes then ENTER<\/li>\n<li>\u00a0HOW TO CREATE NEW PROJECT ON VAGRANT???<br \/>\nOK!. Make sure to run the VM (&#8216;vagrant up&#8217;) and go to the ssh (&#8216;vagrant ssh&#8217;). I want to clone the laravel 5 project here (Please read <a href=\"http:\/\/myprojects.advchaweb.com\/index.php\/2016\/08\/09\/install-laravel-5-on-ubuntu-14-04\/\" target=\"_blank\">Install Laravel 5 On Ubuntu 14.04<\/a>) For the first time, check our git and composer:<\/p>\n<pre class=\"lang:default decode:true \">vagrant@homestead:~$ git --version\r\ngit version 2.7.4\r\nvagrant@homestead:~$ composer --version\r\nComposer version 1.2.2 2016-11-03 17:43:15<\/pre>\n<p>GO TO &#8216;\/Code&#8217; DIRECTORY FIRST!<\/p>\n<pre class=\"lang:default decode:true \">vagrant@homestead:~$ cd Code\/<\/pre>\n<p>NOTE: THIS IS A REMAINDER! I MADE A MISTAKE FOR THE FIRST TIME SO I HAVE TO MOVE THE LARAVEL PROJECT INTO &#8216;\/Code&#8217; DIRECTORY!<\/p>\n<pre class=\"lang:default decode:true \">vagrant@homestead:~$ mv laravelvagrant\/ Code\/<\/pre>\n<p>OK. Create the Laravel project with name &#8216;laravelvagrant&#8217;<\/p>\n<pre class=\"lang:default decode:true\">vagrant@homestead:~\/Code$ composer create-project --prefer-dist laravel\/laravel laravelvagrant\r\nInstalling laravel\/laravel (v5.3.16)\r\n  - Installing laravel\/laravel (v5.3.16)\r\n    Downloading: 100% \r\n...\r\n&gt; php artisan key:generate\r\nApplication key [base64:n13iBSiaaoRlpmuP9Mu1B4aL1SUSv2oCMEveVnY8NbQ=] set successfully.<\/pre>\n<p>CHECK THE NEW PROJECT &#8216;laravelvagrant&#8217;!<\/p>\n<pre class=\"lang:default decode:true \">vagrant@homestead:~\/Code$ ls\r\nblog           composer.lock     Laravel         latihan-crud\r\ncomposer.json  crud-materialize  laravelvagrant  mylaravelproject<\/pre>\n<p>We want to run this new project, BUT we need to modify &#8216;Homestead.yaml&#8217; file first to map &#8216;homestead.app&#8217; to our new project &#8216;laravelvagrant&#8217;. Here is the modification:<\/p>\n<pre class=\"lang:default decode:true \">sites:\r\n    - map: homestead.app\r\n      to: \/home\/vagrant\/Code\/laravelvagrant\/public<\/pre>\n<p>We changed from &#8216;\/home\/vagrant\/Code\/Laravel\/public&#8217; to &#8216;\/home\/vagrant\/Code\/laravelvagrant\/public&#8217;<br \/>\nTHEN WE NEED TO REFRESH OUR VM WITH &#8216;vagrant provision&#8217;! (exit from ssh first!). Then IT&#8217;S READY TO RUN homestead.app (http:\/\/homestead.app\/) ON OUR BROWSER! HERE IS THE WELCOME SCREEN<a href=\"http:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2016\/11\/vagrant-laravel.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1028\" src=\"http:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2016\/11\/vagrant-laravel.png\" alt=\"vagrant-laravel\" width=\"799\" height=\"481\" srcset=\"https:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2016\/11\/vagrant-laravel.png 799w, https:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2016\/11\/vagrant-laravel-300x181.png 300w, https:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2016\/11\/vagrant-laravel-768x462.png 768w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 984px) 61vw, (max-width: 1362px) 45vw, 600px\" \/><\/a><\/li>\n<li>I have a test from interviewed.com (https:\/\/upwork.interviewed.com\/candidate\/interviews\/905600) from upwork.com about my understanding for PHP things to go into the enterprise level!. Here is the description:<br \/>\n&#8220;This project assumes your computer is already set up with minimal development tools including Git, Vagrant, Composer, etc. If you don&#8217;t already have these installed, you may want to switch to the computer that you normally develop on or follow these instructions.This project uses Laravel 5.3, PHP 7.0, and SQLite (so that database is portable without seeds).Download the project and start your server:<br \/>\n<a href=\"https:\/\/github.com\/prehire\/php-23093023909ad09a09\">https:\/\/github.com\/prehire\/php-23093023909ad09a09<\/a><br \/>\nView the project in your browser and click around: http:\/\/homestead.appMost people allocate about 1 hour to this project, but you can invest up to 4 hours if you want to. Because the project has a time limit, you can&#8217;t pause once you&#8217;ve started.&#8221;<br \/>\nOK! I already setup vagrant and virtualbox<br \/>\nRun the VM and go into the ssh<br \/>\nThen clone the project &#8216;https:\/\/github.com\/prehire\/php-23093023909ad09a09.git&#8217;<\/p>\n<pre class=\"lang:default decode:true \">vagrant@homestead:~\/Code$ git clone https:\/\/github.com\/prehire\/php-23093023909ad09a09.git\r\nCloning into 'php-23093023909ad09a09'...\r\nremote: Counting objects: 152, done.\r\nremote: Total 152 (delta 0), reused 0 (delta 0), pack-reused 152\r\nReceiving objects: 100% (152\/152), 174.46 KiB | 191.00 KiB\/s, done.\r\nResolving deltas: 100% (30\/30), done.\r\nChecking connectivity... done.\r\nvagrant@homestead:~\/Code$ ls\r\nblog           crud-materialize  latihan-crud\r\ncomposer.json  Laravel           mylaravelproject\r\ncomposer.lock  laravelvagrant    php-23093023909ad09a09<\/pre>\n<p>Go into the project &#8216;php-23093023909ad09a09&#8217; then install the dependencies via composer<\/p>\n<pre class=\"lang:default decode:true \">vagrant@homestead:~\/Code$ cd php-23093023909ad09a09\/\r\nvagrant@homestead:~\/Code\/php-23093023909ad09a09$ composer install\r\nLoading composer repositories with package information\r\nInstalling dependencies (including require-dev) from lock file\r\n  - Installing nikic\/php-parser (v2.1.1)\r\n    Loading from cache\r\n...\r\nGenerating autoload files\r\n&gt; Illuminate\\Foundation\\ComposerScripts::postInstall\r\n&gt; php artisan optimize\r\nGenerating optimized class loader\r\nThe compiled class file has been removed.<\/pre>\n<p>Now we want to test it on our browser BUT REMEMBER TO MODIFY &#8216;Homestead.yaml&#8217; FIRST!<\/p>\n<pre class=\"lang:default decode:true \">sites:\r\n    - map: homestead.app\r\n      to: \/home\/vagrant\/Code\/php-23093023909ad09a09\/public<\/pre>\n<p>THEN EXIT FROM SSH &amp; REFRESH OUR VM WITH &#8216;vagrant provision&#8217;!<br \/>\nREFRESH OUR BROWSER (http:\/\/homestead.app\/). HERE IS THE HOMEPAGE SCREEN!<a href=\"http:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2016\/11\/vagrant-project-test.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-1031\" src=\"http:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2016\/11\/vagrant-project-test-1024x141.png\" alt=\"vagrant-project-test\" width=\"840\" height=\"116\" srcset=\"https:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2016\/11\/vagrant-project-test-1024x141.png 1024w, https:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2016\/11\/vagrant-project-test-300x41.png 300w, https:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2016\/11\/vagrant-project-test-768x106.png 768w, https:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2016\/11\/vagrant-project-test.png 1171w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/a>The App with 4 top menu: Homework (http:\/\/homestead.app\/booking OR http:\/\/homestead.app\/ &#8211;&gt; HOMEPAGE), Booking (http:\/\/homestead.app\/booking), Customer (http:\/\/homestead.app\/customer) and Cleaner (http:\/\/homestead.app\/cleaner). Here are the screens for each of them:<br \/>\nBooking<a href=\"http:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2016\/11\/project-test-booking.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-1033\" src=\"http:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2016\/11\/project-test-booking-1024x203.png\" alt=\"project-test-booking\" width=\"840\" height=\"167\" srcset=\"https:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2016\/11\/project-test-booking-1024x203.png 1024w, https:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2016\/11\/project-test-booking-300x59.png 300w, https:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2016\/11\/project-test-booking-768x152.png 768w, https:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2016\/11\/project-test-booking.png 1167w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/a>Customer<a href=\"http:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2016\/11\/project-test-customer.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-1034\" src=\"http:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2016\/11\/project-test-customer-1024x200.png\" alt=\"project-test-customer\" width=\"840\" height=\"164\" srcset=\"https:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2016\/11\/project-test-customer-1024x200.png 1024w, https:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2016\/11\/project-test-customer-300x59.png 300w, https:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2016\/11\/project-test-customer-768x150.png 768w, https:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2016\/11\/project-test-customer.png 1171w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/a>Cleaner<a href=\"http:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2016\/11\/project-test-cleaner.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-1035\" src=\"http:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2016\/11\/project-test-cleaner-1024x192.png\" alt=\"project-test-cleaner\" width=\"840\" height=\"158\" srcset=\"https:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2016\/11\/project-test-cleaner-1024x192.png 1024w, https:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2016\/11\/project-test-cleaner-300x56.png 300w, https:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2016\/11\/project-test-cleaner-768x144.png 768w, https:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2016\/11\/project-test-cleaner.png 1160w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/a>OK. THE SETUP IS OKAY. WHAT IS THE TASK FOR THIS PROJECT???<br \/>\nUSE PDO INSTEAD OF MYSQL!!! SETUP IT FIRST OR TRY THE AVAILABLE PROJECT IN <a href=\"http:\/\/myprojects.advchaweb.com\/index.php\/2017\/01\/11\/cleaner-booking\/\">http:\/\/myprojects.advchaweb.com\/index.php\/2017\/01\/11\/cleaner-booking\/<\/a> TO MAKE SURE PDO WORK IN HOMESTEAD!<\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>Url: https:\/\/laravel.com\/docs\/5.3\/homestead \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Quick Tip: Get a Homestead Vagrant VM Up and Running \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Getting Started with Laravel Homestead Introduction Laravel strives to make the entire PHP development experience delightful, including your local development environment. Vagrant provides a simple, elegant way to manage and provision Virtual Machines. Laravel Homestead is an official, pre-packaged Vagrant box &hellip; <a href=\"https:\/\/myprojects.advchaweb.com\/index.php\/2016\/11\/22\/laravel-homestead-virtualbox-vagrant\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Laravel Homestead VirtualBox Vagrant&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[14,13,17,18],"tags":[],"class_list":["post-1002","post","type-post","status-publish","format-standard","hentry","category-laravel","category-tutorial","category-ubuntu","category-ubuntu-14-04"],"_links":{"self":[{"href":"https:\/\/myprojects.advchaweb.com\/index.php\/wp-json\/wp\/v2\/posts\/1002","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/myprojects.advchaweb.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/myprojects.advchaweb.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/myprojects.advchaweb.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/myprojects.advchaweb.com\/index.php\/wp-json\/wp\/v2\/comments?post=1002"}],"version-history":[{"count":26,"href":"https:\/\/myprojects.advchaweb.com\/index.php\/wp-json\/wp\/v2\/posts\/1002\/revisions"}],"predecessor-version":[{"id":1458,"href":"https:\/\/myprojects.advchaweb.com\/index.php\/wp-json\/wp\/v2\/posts\/1002\/revisions\/1458"}],"wp:attachment":[{"href":"https:\/\/myprojects.advchaweb.com\/index.php\/wp-json\/wp\/v2\/media?parent=1002"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/myprojects.advchaweb.com\/index.php\/wp-json\/wp\/v2\/categories?post=1002"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/myprojects.advchaweb.com\/index.php\/wp-json\/wp\/v2\/tags?post=1002"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}