Error | Laravel's Lumen on x10hosting

Discussion in 'Free Hosting' started by wooprapp, Apr 10, 2019.

  1. wooprapp

    wooprapp Member

    Messages:
    66
    Likes Received:
    4
    Trophy Points:
    8
    Hi everyone,
    so I'm new to Laravel and Lumen. From what I've learned is that Lumen is Laravel's lightweight version which is a lot faster (and great for designing an API). So, I've been studying Lumen trying to figure out how it works. I set up my x10 PHP Version 7.2 (and its plugins/addons), I've also moved my "/public" into my root "/". The root "/" works but no other routes work (everything works locally, but not on x10)... I've posted on Laravel's Community forums and no one's responding.

    Here's the link: https://laracasts.com/discuss/channels/lumen/lumen-works-on-shared-web-host-but-isnt-working

    Can anyone please help me resolve this issue?

    Thanks!

    (Attached is two screenshots trying to show the issue):
    [​IMG]
    [​IMG]
     
  2. wooprapp

    wooprapp Member

    Messages:
    66
    Likes Received:
    4
    Trophy Points:
    8
    Update:
    Apparently I got it working now but it's forcing/showing my shared web-hosts path, I don't like that. It's a huge security risk for me. It's like:

    https://api.mysite.com/home/myusername/public_html/another_folder/NewBlog/NewBlog

    When I go to the root "/" it takes me to "/NewBlog" then once I replace the "NewBlog" it set with my route "status" or "test" it'll display their results on the screen.

    Any advice?
    Thanks!
     
  3. wooprapp

    wooprapp Member

    Messages:
    66
    Likes Received:
    4
    Trophy Points:
    8

Share This Page