Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Working in cpanel, not in my PC[ubuntu] #58

Closed
pj8912 opened this issue Aug 15, 2023 · 3 comments
Closed

Working in cpanel, not in my PC[ubuntu] #58

pj8912 opened this issue Aug 15, 2023 · 3 comments

Comments

@pj8912
Copy link

pj8912 commented Aug 15, 2023

I'm using ubuntu and ran a local server in cmd php -S localhost:4000. This was not working.
Then I directly deployed this on my hosting which works fine. No changes in code, just the same one here.

Working in hosting, not in my local machine. Would like to know if there are any config needed to be done to be able to run on php -S localhost

@pj8912
Copy link
Author

pj8912 commented Aug 15, 2023

image
image

@NilsSlui
Copy link

If you want to use PHP's built in web-server you can try renaming routes.php to index.php.

@pj8912
Copy link
Author

pj8912 commented Aug 16, 2023

This works thanks!!
For using this in PHPs built in server :

  • rename routes.php file to index.php
  • change routes.php to index.php in .htaccess

@pj8912 pj8912 closed this as completed Aug 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants