Can't run my project on web host service
- aleemont
- Member | 11
Hi, I'm creating a project with this fw.
It perfectly works on my local web server (Apache24) with PHP
7.4.9 installed.
But on my domain, registered on a free web hosting service, it shows Error
500. I can't access the error log of the server, and I have no clue about how
to solve this problem. I thought it may be because this web hosting service
supports only PHP 7.3 or lower, but I'm not so sure about that.
I modified .htaccess files on my server to run php 7.3.11, but i don't know
what else may be causing Error 500.
Any ideas, or better, what free web hosting service do you suggest to run my nette 3.0 app?
In the end, is there any particular setting or configuration that I should set to run my app on a web hosting service?
Last edited by aleemont (2020-08-23 13:03)
- Ondřej Kubíček
- Member | 494
if you cannot access to your logs (which is weird), you can temporary disable production mode and see what error it reports https://tracy.nette.org/en/guide#…
- aleemont
- Member | 11
Ondřej Kubíček wrote:
if you cannot access to your logs (which is weird), you can temporary disable production mode and see what error it reports https://tracy.nette.org/en/guide#…
So, I tried with a new web hosting service. I got the same error, but this time the error page has been loaded from my nette project, while before only the web hosting service's page was loaded. Now I can access to errors log, and this is what i see:
[2020-08-23 16-27-31] Nette\Neon\Exception: Unexpected '=' on line 5, column 34. in <path_to_project>/vendor/nette/neon/src/Neon/Decoder.php:371 @ https://myDomain.com/ @@ exception--2020-08-23--16-27--0eacbc4acb.html
I went to the file in the path, but on line 5 there were just a comment with credits to the author, and no ‘=’
Last edited by aleemont (2020-08-23 16:36)
- aleemont
- Member | 11
aleemont wrote:
Ondřej Kubíček wrote:
if you cannot access to your logs (which is weird), you can temporary disable production mode and see what error it reports https://tracy.nette.org/en/guide#…
So, I tried with a new web hosting service. I got the same error, but this time the error page has been loaded from my nette project, while before only the web hosting service's page was loaded. Now I can access to errors log, and this is what i see:
[2020-08-23 16-27-31] Nette\Neon\Exception: Unexpected '=' on line 5, column 34. in <path_to_project>/vendor/nette/neon/src/Neon/Decoder.php:371 @ https://myDomain.com/ @@ exception--2020-08-23--16-27--0eacbc4acb.html
I went to the file in the path, but on line 5 there were just a comment with credits to the author, and no ‘=’
SOLVED
I removed spaces in local.neon file. Working fine.