Comments on How to Install Symfony 5 Framework with Nginx on Debian 10
Symfony is a free, open-source and high-performance PHP framework that can be used to build web applications, APIs, microservices and web services. In this tutorial, we will show you how to install Symfony 5 with Nginx on Debian 10.
5 Comment(s)
Comments
Hi in two places you write symphony4 and not 5:
a) Next, you will need to create an Nginx virtual host configuration file for Symfony4.
b) Symfony4 is now installed, you can access it by visiting the URL http://your-server-ip
Thanks, corrected that.
chmod -R 755 /var/www/html/symfony5
With chmod 755 all files will be executable for all users, use chmod -R a-x,u+rwX,g+rX,o+rX instead and add +x only for scripts that realy needs it (none with symfony)
true public dir solution free ;) u tnx me later
location / { rewrite ^/(.*)$ /public/$1 break; #try_files /public /index.php$is_args$query_string; try_files $uri $uri/ @symfonyFront;} location @symfonyFront { fastcgi_pass unix:php-cgi-73.sock; fastcgi_split_path_info ^(.+\.php)(/.*)$; include fastcgi_params; fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name; fastcgi_param DOCUMENT_ROOT $realpath_root; internal;}location ~ \.php$ { return 404;}
Bonjour,
j'ai tout bien suivi et quand je créé un projet:
symfony new mon_projet --full
j'ai comme reponse -bash:symfony : commande introuvable T_T (sur une debian 10 up to date)