CrazyEngineers
  • I want to use laravel framework. My System is installed with apache on port 81. But my laravel application shows the url as 127.0.0.1:8000. It is not working. What will be the solution?

    Suchitra Vipin

    Suchitra Vipin

    @suchitra-p7aYWk
    Updated: Oct 27, 2024
    Views: 1.3K
    0
    Replies
Howdy guest!
Dear guest, you must be logged-in to participate on CrazyEngineers. We would love to have you as a member of our community. Consider creating an account or login.
Replies
  • Kaustubh Katdare

    AdministratorJun 6, 2018

    Welcome to CE, #-Link-Snipped-#‍ . I work on Laravel as well and may try to address your question. 

    I see that the problem is with your apache port. Normally apache runs on port 80. You will have to configure it to run on 8000 or 80. If you do set it on 8000 then your current url: `127.0.0.1:8000` will work fine. 

    Are you using Valet or XAMPP to run Laravel? You should look for Apache port settings. 

    Does that help? 

    Are you sure? This action cannot be undone.
    Cancel
  • Anna Parker

    MemberJun 6, 2018

    Yes you need to change it form port 81 to port 80 for it to work fine. 

    I use Valet on windows 10 for laravel application. It bit easy I suppose. 

    Are you sure? This action cannot be undone.
    Cancel
  • Suchitra Vipin

    MemberJun 6, 2018

    #-Link-Snipped-#‍ Thank you for the time and reply

    Are you sure? This action cannot be undone.
    Cancel
  • Kaustubh Katdare

    AdministratorJun 6, 2018

    You're welcome. Did that solution work? 

    Are you sure? This action cannot be undone.
    Cancel
  • Suchitra Vipin

    MemberJun 6, 2018

    #-Link-Snipped-#‍  i changed the port to 8000 and tried  .. But not working.. :(.. Url shows loading only for a long time

    Are you sure? This action cannot be undone.
    Cancel
  • Kaustubh Katdare

    AdministratorJun 6, 2018

    That looks like a strange problem. Could you tell us a bit about your configuration? 

    1. Are you using Valet or Xampp to setup your local server?
    2. Could you add a screenshot of your apache settings? 
    3. Does a normal php file load fine?

    You may try with a simple file in the web root directory -

    <?php phpinfo(); ?>

    Is there any error being thrown in the Laravel log? Some more information would definitely help fixing this issue. 


    Are you sure? This action cannot be undone.
    Cancel
Home Channels Search Login Register