I have a problem with Laravel I recently put it in a VPS I could download, I could use composer, BUT I do not know what it's happening because I go into the folder with URL I mean, I write:
http://myproject.com/
It should be shown me something but it is not happening, when i do that it just makes a download and it does not display anything.
You can test it http://dominicanspasalon.com/ then make click in dominican_spa_salon where the larave is... you will see that it does not display anything, it just makes the download... what could it be?
Thanks!
If nginx you need edit Nginx Configuration "server {}". In that file change root path.
Good luck!
Related
i try to copy laravel proyect (server to localhost) but the proyect don't have any documentation. i copy the proyect in new laravel proyect and work i think, becouse it show the login, but when i try to get in i get this error
the url is diferent because in the login show this
http://localhost/cresi/laravel/public_html/transacciones/
in the server doesn't exist the folder webservices, i think is internal url but i don't know how check this.
thanks for your advises
regards
You need to update the .env file values to make it work on your machine.
Most likely the APP_URL is wrong in there.
You can learn more about what is going wrong by looking at the doc at https://laravel.com/docs/7.x/installation
my very first post to the forum.. Only due to the fact I've just started a new Job in development and I've spent over xmas trying to get this to work! The job requires me to carry on with JQuery & PHP with the ongoing project - but done offline(localhost) in wamp or xammp and not 'live' as you call it, its already an 8 months project so ideally this does need to be setup like this as I've just started.
I've looked everywhere, I've tried playing around plenty with the .htaccess file, config, checked database, checked routes. Everything on stack overflow.
Now, when they let me try this on my personal server (1and1) to see if it all worked when I copied there ftp files to mine - IT WORKED! But in XAMPP or WAMP it doesn't, for starters it said missing 'MY_CONTROLLER' class which I fixed, it does seem to work when I changed
How come this is working on 1and1 but not on localhost(XAMPP/WAMP) etc?
Please be aware, I have looked everywhere for a solution. All I can think is PHP versions & tweaks on the server installation? Any help would be great, I've been tempting to post for the last week!
UPDATE: I forgot to mention, I followed a tip on here regarding the .htaccess file, it got me to land on the home.php but it wasnt displaying any views, so I changed the < ? tags to < ? php and just gave me a lot of errors, before that all it was displaying its just plain HTML and no CSS with load->view-> everywhere
SOLVED - I created a virtual host and set up windows hosts with the same domain e.g 127.0.0.1, basically what Riggs said so if anyone else is having trouble see his link - and read carefully! Should of put this sooner so sorry - I'm new
I need to work with my website, made with Laravel 3, in the localhost. I am using a Xampp server, but i don't know which steps I should take in order to get it working, I can't see nothing right know. Somebody could tell me?
Thank you
Well for starters you should copy the laravel downloaded files in C:\xampp\htdocs\
then you should go with your browser to
http://localhost/index.php
and see what you got there..
Hello all :)
I am currently working on a WP website and a the moment I am working locally with Wampserver.
None of my pictures happen to appear on my website.
Here is the error I get when I put the image url in my browser :
Forbidden
You don't have permission to access
/appetitclic/wp-content/themes/Apc/img/logo.png on this server.
I have no problem accessing phpmyadmin and image from TewentyTwelve template work fine.
Things I have tried :
-Editing (and creating) .htaccess in wp-admin.
-Editing phpmyadmin.conf
-Puting Wamp on online mode
-Working through http://127.0.0.1/ instead of locally.
I am pretty sure the problem doesn't have to so with the code because I have access to the /appetitclic/wp-content/themes/Apc/img/ folder and I see the list of images (not working). I maybe missed one or two workarounds but I am pretty sure I tried most of the common ones.
If you need any info on my setup / configs I have tried ask away.
Thank you very much,
Cheers.
If you start your relative url with a backslash '/' that means go to the servers root folder and work up from there.
Try loosing the leading slash and see what that does.
I have that same problem when I downloaded random images for img preloading testing.
So I went to change permission from no access to read & write (if on Mac then > Get info. You shall see that permission section at the very bottom).
You might use chmod to change permission to particular users.
Hope this help.
I had the same problem today. I created a static webpage put in the html folder of my web server. It turned out that some images could not be loaded. The solution is quite simple. I just right click the image folder and changed the properties to allow readers to view the images.
I am using Aptana 3.22 with XAMPP. When I run a PHP file, the url shows as http://127.0.0.1:8020/somefile.php and the PHP code is just listed in the browser. However, if I replace 127.0.0.1:8020 with localhost it all works just fine.
I think that to vague to be able to get a good answer, in that there's too many variables that could affect it, I'd hazard a guess that localhost doesn't really point to localhost:8020 but rather just localhost:80 (the standard), so you might be seeing a different site.
Go to run configurations select Web Browser then choose which browser you want to use. Then in the main tab find use base URL and click on it. Enter http://localhost/ and make sure that you check the append project name.
Make sure that your index page's name is index.php and try running it. Hope this helps.