I have uploaded the project in the server, but when i go to the link of my site url.com/public/index.php
i see this error HTTP ERROR 500.
I have make a clear to cache and same problem Any suggestion to solve this problem? CAN I disable the putenv() in symfony?
after displaying error, i see this message :
Warning: putenv() has been disabled for security reasons in /home/vol15_7/byethost8.com/b8_23863116/htdocs/vendor/symfony/dotenv/Dotenv.php on line 130
The
putenv
function is forbidden on your server. Your hosting provider has certainly forbidden the usage of this function which is used byDotEnv
component.Try to use another method to set environment variable like described in Symfony documentation about server configuration.