Hey I'm new Laravel user. Using Windows 7.
I made my project on computer, on wamp. I have migrations (create tables and etc).
I uploaded my project to my host and it's not working. That's becuase i need to use php artisan serve command in the composer. But I can't do it! Becuase it's an host.
How should I run the project when it's on host?
Please help! thakns!
Related
So i searched the first 2 pages of google for it but i cant seem to get it straight so, the problem is that i have the ip adress and the username and the password for the server and i can connect to it over cmd with ssh username#ipadress but i cant upload my laravel app there.
I installed apache2, nginx, and a lot of other packages for php and composer, but all the tutorials show me how to create a new laravel app there, which is not what i need because i developed the project and i just need to put it up there on the server i will let here a photo of the cmd right after i installed the composer and laravel on it
the cmd ss
what should i do next ? or how should i upload it...
are you using git ?
if not first setup git and upload your project to git
then in git you have option deploy project
in that option generate deployment key and use that to clone/deploy your
project into the server.
I have a whole project with database, everything is working here.
Project with database
I would like to run website so I can see changes I have made.
Im using XAMPP. My configs for VirtualHost hosts and http-vghosts.conf
I have tried this https://youtu.be/iXYCnYRalaw?t=2m13s ->> from [2:13] to [4:22]
using XAMPP, but still cant run it.
Can you give me any advice or steps how to make website run on my PC? [ofcourse just for me (VirtualHost)].
Editor using: Atom
My PC spec
If running laravel appliation inside XAMPP htdocs folder is really necessary, then could you provide some kind of error, simply telling "it doesn't work" doesn't help at all.
One thing you can try is to open command prompt inside laravel folder and run
php artisan serve
This will open local server that runs current project in:
http://127.0.0.1:8000
Also, checking laravel minimum requirements is something you should check out. 5.5 requires PHP 7 and you didnt tell what XAMPP version you are running.
I need to understand this behavior.
I use xampp for web development. I start to apache server in the xampp gui and then I can start my projects in the browser via localhost...
Since yesterday I have added laravel to my mac book. My project is in the xampp htdocs folder and I want to use it witch xampp. But when the xampp apache server instance is running, nothing is happened to my laravel project until I run php artisan serve in the cmd.
How can I combine larael with xampp?
And what exactly does php artisan serve do? Start another apache server instance?
The artisan command is just a command line utility for laravel. The serve command just starts up the PHP server.
to run it without artisan you can Configure a server virtual-host (Apache or Nginx) which have the public directory of your project as root directory. Since you are using a MAC I can't exactly instruct you to how to do that.
NOTE
this will help to create the virtual host. but i haven't tried that
sorry i can't comment due to reputation :/ i use lumen (rest api of laravel) with xampp and it works fine. Can you provide somemore details?
I also think the path is the problem. Which path you use to access it via a browser? for lumen its /htdocs/project/public/ so in browser: http://localhost/project/public/
there i can access the api. should be similar for full laravel project?
Create virtual host and point it to laravel_directory/public/index.php and restart apache.
Creating apache virtual host:
http://laravel-recipes.com/recipes/25/creating-an-apache-virtualhost
If you don't want to do that load, localhost/lara_dir/public/index.php
index.php is where all the requests go through.
I am currently working on laravel 5.3. My team mate installed laravel on his machine using composer. In my machine i also have installed composer, and installed a larvel project using laravel installer, which was installed by composer. Now when i got the archive file o fproject installed by my team mate on my machine i run
php artisan cache:clear,
php artisan route:clear,
php artisan key:generate,
php artisan serve
commands and clicked the link provided (i.e localhost:8000 ) in terminal,by this project is running fine but, but when i am entering the url in the browser like
localhost\laravel\public it is not running correctly.
As local dev is always susceptible to configuration issues. I would also suggest your team look into a proper virtualization solution using vagrant/Homestead, More information and documentation available # enter link description here
The advantage is that once the project is configured you never need to worry about these system-specific occurrences and all team members can work on the same underlying system specs.
Note that you can use real domains (e.i project-name.dev.yourdomain.com) by just pointing them to the 10.x.x.x ip range.
Just Give the permissions to these directories
storage
bootstrap/cache
and the work is done.
Hello guys I am new in Laravel framework. I have successfully install Laravel4 in wamp server in windows os. After that I create a new project in Laravel trhough command prompt like that:
c:\wampp\www> composer create-project laravel/laravel project1
And it successfully installed. But when I am running this project in the browser(google chrome and mozila) like the url:
http://localhost/project1
all the files are in listing manner.
So how do I start my project in Laravel. In many site I have shown that the are only using
http://project1.dev/
but when i am using it can't find the server. Please help me out.
Thanks in advance.
Try http://localhost/project1/public
To get it running from http://project1.dev you'll need to create a VirtualHost (also known as vhost in your webserver (wamp). Here's a tutorial: http://www.codeforest.net/multiple-virtual-hosts-in-wamp