I have been working in an online environment on a Polymer based project. Right now I am tasked with trying to run the polymer project on my local machine (Windows 10).
When using polymer, I run polymer serve --open, I get a not found error with a url of http://localhost:8080/components/wc/. wc is my project folder that I am running the command on, so when I switch to http://localhost:8080/wc/ or http://localhost:8080/wc/index.php , I still seem to get a not found error.
Am I doing this correctly? As an alternative, how would I go about setting this up in WAMP? Would I just drag my folder into a directory in wamp, then run the server?
Related
I've a lamp stack installed on my localhost. I just installed everything I needed via the command line, but I'm not very knowledgable about how the server works.
So when I just start a very simple php project from scratch, simply make a folder in the root directory and create an index.php with phpinfo() at the top, I find that I'm running php 7.3.
Then when I created another folder with a laravel installation inside (I didn't set up, just copied files and made the required changes - it works fine - note I'm just messing about with laravel, no expert!). If I stick a phpinfo() at the top of a file in the laravel project, it says I'm on php7.4!
How is it possible that the two projects, on the same server which are running different php versions?
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'm quite new with symfony and i'm trying to develop a base web application.
I install and configured symfony on my pc (windows 7 64bit) following the documentation and all works fine.
I run the server with command line (php bin/console server:run) and test the application in browser successfully.
Then iwould like to move the symfony folder under my local Xampp (xampp\htdocs\symfony\myproject) installation that i use for php development since now.
My problem is that when i run localhost\symfony\myproject\web the symfony welcome page is shown but if i modify the index.html.twig template no change are displayed.
Some routing problem? vhosts config?
try with
localhost\symfony\myproject\web\app_dev.php
since localhost\symfony\myproject\web is the prod url and has some cache, which may "hide" your modification
I have a DigitalOcean server running Ubuntu 14.04. I'm using this as a host for my web-development projects.
Now I want to start using Laravel for a project of mine, but I have a question about this.
In the /var/www/html folder of Ubuntu I created a folder, let's say, "project". In this folder I installed Laravel using this tutorial. Now everything is setup I want to run Laravel so I can test it and start developing on it.
When I run the command php artisan serve from within the "project"-folder it says "running on http://localhost:8000". So it's working.
But how do I access it? When I go to http://example.com/project it just shows me the files in that folder.
So it's running on the localhost on my server. Does that mean that it is external-accesible (the url above) or how does this work? (I guess the port is also different, 8000 instead of the default 80 for Apache)
I hope the question is clear and someone can help me out.
I have a Laravel project up and running on Digital Ocean with the Ubuntu 14.04 x64 vmlinuz-3.13.0-24-generic (1221) kernal.
I don't think you should be using php artisan serve for this purpose, as that is more for your local computer if you would like to preview your webpage if you don't want to use Apache.
To get set up, I used the excellent below instructions that were incredibly helpful. As you can see, there are many steps that you should carefully follow to get things up and running.
https://github.com/susanBuck/dwa15-fall2016-notes/blob/master/01_Servers_and_Git/07_Deploy_to_Digital_Ocean.md
Let me know if that helps you, and feel free to follow up with more questions if you get stuck on a step.