Issue when running a laravel app built-in server - Error 500
Posted: May 18th, 2018, 9:19 pm
Hello,
I want to make PHP Tools with VS 2017 Community to become my new IDE for coding some things in PHP if I have success.
However, it doesn`t yet really work for me and for what I want to do.
I have no problem with a "normal" simple PHP script, but if I run my more extended Laravel framework application from built-in webserver I did not yet have (full) success.
I found that thread and followed the steps from there to configure the settings:
viewtopic.php?f=21&t=1768&p=7981&hilit=laravel#p7981
Steps:
1) Properties -> Application -> Web root -> changed to "public"
2) Properties -> Server -> Routing script -> changed to "server.php"
3) Finally in Properties -> Application -> Start action changed to "Specific Page" and "public/" to enable xdebug
If I do not perform the second step (change of routing script) I get the default laravel page "not found" showing up succesfully (so it seems to work basically). But then my routings are not recognized.
When I change the routing script, after restarting, in the browser the error code 500 is returned immediatly from the server and a blank page is displayed (no more content).
VS 2017 and Platform Tools are on latest versions.
Tried with PHP 7.1 and 7.2 and built-in webserver.
On a WAMP installation the app performed well earlier.
Any chance to find out what is wrong or some sort of error log available anywhere to find out more ?
Please help, up to now I think the dev tools are really a quite cool thing if I could use them.
Thank you !
I want to make PHP Tools with VS 2017 Community to become my new IDE for coding some things in PHP if I have success.
However, it doesn`t yet really work for me and for what I want to do.
I have no problem with a "normal" simple PHP script, but if I run my more extended Laravel framework application from built-in webserver I did not yet have (full) success.
I found that thread and followed the steps from there to configure the settings:
viewtopic.php?f=21&t=1768&p=7981&hilit=laravel#p7981
Steps:
1) Properties -> Application -> Web root -> changed to "public"
2) Properties -> Server -> Routing script -> changed to "server.php"
3) Finally in Properties -> Application -> Start action changed to "Specific Page" and "public/" to enable xdebug
If I do not perform the second step (change of routing script) I get the default laravel page "not found" showing up succesfully (so it seems to work basically). But then my routings are not recognized.
When I change the routing script, after restarting, in the browser the error code 500 is returned immediatly from the server and a blank page is displayed (no more content).
VS 2017 and Platform Tools are on latest versions.
Tried with PHP 7.1 and 7.2 and built-in webserver.
On a WAMP installation the app performed well earlier.
Any chance to find out what is wrong or some sort of error log available anywhere to find out more ?
Please help, up to now I think the dev tools are really a quite cool thing if I could use them.
Thank you !