Questions tagged [symfony]

Symfony is a PHP framework

Filter by
Sorted by
Tagged with
11 votes
2 answers
8k views

Nginx + PHP-FPM produce 502 bad gateway instead of fatal error?

I'm currently testing Symfony2 with Nginx and PHP-FPM. I also use Xdebug. Symfony2 comes with a Demo bundle, I wanted to test the new handling of fatal errors which comes with Symfony 2.2.0 by ...
jchatard's user avatar
  • 213
10 votes
2 answers
5k views

running setfacl on a vagrant shared directory

Trying to get a Symfony2 project up and running with a vagrant VM. I've seen a zillion articles on this, but getting the cache directory permissioned correctly is proving to be excruciatingly painful. ...
Josh Nankin's user avatar
6 votes
1 answer
12k views

docker-compose exec composer as user

I have a docker-compose setup working perfect on my local machine for my symfony projects with nginx, php7-fpm and mysql. I often need to install new packages via composer, so I just deliver the ...
sh4's user avatar
  • 241
3 votes
4 answers
6k views

Symfony2 Vhost Configuration

I'm new to Symfony2 and following the EnsJobeet tutorial. My VirtualHost config is as follows: <VirtualHost *:80> ServerName jobeet.local DocumentRoot /var/www/ensjobeet/web/ ...
Bendihossan's user avatar
3 votes
1 answer
5k views

NGINX + Symfony - what is the internal directive redirecting to?

Over at the official NGINX docs, they have the following configuration for production-level Symfony: # PROD location ~ ^/app\.php(/|$) { fastcgi_pass unix:/var/run/php5-fpm.sock; ...
Major Productions's user avatar
3 votes
3 answers
4k views

PHP FPM state Finishing but never completes

We are running a Symfony application on Ubuntu 14.04 with Nginx and PHP-FPM The problem is that individual PHP FPM will occasionally hang on our production servers. I have the output from the status ...
Joshua Cullen's user avatar
3 votes
1 answer
589 views

OPcache cache same file for different users only once

Is there some way to make OPcache use a hash or target a specific directory on each domain to disable use_pwd so it won't cache the same packages over and over? By default OPcache appends the working ...
ButterMilkMan's user avatar
3 votes
0 answers
2k views

How to escape/quote a dollar sign `$` in an env var in a php-fpm pool?

As symfony4 uses dotenv and environment variables for configuration, they are also needed on the server. to pass the variables it is possible to add the following to the pool config: example-pool....
c33s's user avatar
  • 1,525
3 votes
0 answers
2k views

Nginx - 400 Request Header Or Cookie Too Large (Angular + Symfony)

I have two projects on the same server: a Symfony 3 API (api.example.com) an Angular 5 webapp that uses the API mentionned above (www.example.com) Both are on the same server, served with one Nginx ...
Maxime Lafarie's user avatar
2 votes
1 answer
4k views

Symfony2 app in subdirectory nginx

I'm trying to setup a symfony2 app in a subdirectory of our Server Webserver: nginx 1.1.6 + php fpm OS: gentoo my target is to get the app working from a subdirectory subdomain.xy.domain.tld/tool ...
Frido's user avatar
  • 83
2 votes
1 answer
3k views

Stop Apache from decoding characters from URI for PATH_INFO

I want to stop Apache from decoding %2B (+) and %3D (=) from URI. I need those chars not decoded in PATH_INFO. I've did that for %2F (/) by using: AllowEncodedSlashes NoDecode But, I can't find any ...
Jakov Sosic's user avatar
  • 5,267
2 votes
1 answer
2k views

Nginx rewrite to symfony2 not working

I'm a newbie with nginx and it's rewrite commands and I really need some help with this one. I've been trying to solve this the whole day but nothing.. If user gives this url: someurl.com/sub/1.0/...
GotBatteries's user avatar
2 votes
1 answer
14k views

Nginx + php5-fpm + Symfony2 = "File not found."

This is the site config based on official Symfony2 doc server { listen 80; server_name project.local; root /media/Storage/project/web; location / { # try to ...
loostro's user avatar
  • 539
2 votes
1 answer
828 views

open_basedir problems with APC and Symfony2

I'm currently setting up a shared staging environment for one of our applications, written in PHP5.3 and using the Symfony2 framework. If I only host a single instance of the application per server, ...
Steve Hill's user avatar
2 votes
0 answers
2k views

Cookies aren't being set/overwritten through nginx reverse proxy

For some reason, when I'm proxying my API request through an nginx reverse proxy, my cookies aren't being overwritten with the new values. I've tried adding the following to my nginx config, but I'm ...
robert.bo.roth's user avatar
2 votes
1 answer
1k views

Handling multiple Symfony sites depending on the URL path

I have multiple Symfony projects, each of them are stored in custom subdirs inside /srv/http; these subdirs are not intended to be public URLs. For example: /srv/http/some/dir/sfprojA /srv/http/some/...
yolenoyer's user avatar
  • 133
2 votes
1 answer
572 views

google load balancer + nginx + symfony2

i'm trying to configure a scalable symfony2 app, so i read this page https://cloud.google.com/compute/docs/load-balancing/http/cross-region-example i did every thing like they said, is working with a ...
anthony's user avatar
  • 21
1 vote
2 answers
64 views

A lot more write then read IO [closed]

As shown in the picture above we are having a lot more writes then reads on our appserver. Cache is enabled and the Framework is running with PHP/Symofony and using HTTP Cache. Is this I/O behavior ...
Isengo's user avatar
  • 133
1 vote
1 answer
3k views

Why is my Docker Symfony project with Composer consuming so much memory?

Description I'm deploying my symfony project in prod. It works fine when I simply run docker-compose up. However I'm getting an issue with my deploy script and try accessing the web page in my ...
kemicofa ghost's user avatar
1 vote
1 answer
4k views

Symfony vendor autoload_runtime

When I try to do : symfony console d:d:c to initiate my database I have : Parse error: syntax error, unexpected '?' in C:\Users\user\my_project_name\vendor\autoload_runtime.php on line 21 exit status ...
IneedSomeone's user avatar
1 vote
1 answer
761 views

AppEngine - Client closed keepalive connection

I have deployed my Symfony 4 app to Google App Engine (Flexible environment). The build seems to have worked, but loading the app on in Chrome results in error: Oops! An Error Occurred The server ...
TimothyAURA's user avatar
1 vote
1 answer
3k views

502 Bad Gateway when trying to write session with PHP and nginx on a debian vagrant box

I'm using a Vagrant box with Debian 8.5 with the following stuff packages. tmux curl wget nginx php7.0-fpm php7.0-cli php7.0-curl php7.0-gd php7.0-intl php7.0-mysql php7.0-memcached memcached php-...
Musterknabe's user avatar
1 vote
1 answer
292 views

Moving an Application to Amazon EC2 with S3

Recently I have created a web application. The application has some static parts (libraries, classes etc) and dynamic parts (images, cache, log etc) as well. However, some static parts of the app ...
mert's user avatar
  • 121
1 vote
2 answers
3k views

'PDO Connection Error: SQLSTATE[HY000] [2002] Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock'

I'm getting 'PDO Connection Error: SQLSTATE[HY000] [2002] Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' error when I'm trying to make too much update and ...
Gurkan Oluc's user avatar
1 vote
1 answer
184 views

Nginx: route all LAN request on port X to act as if they came from 127.0.0.1:8000

I have dockerized symfony app that I access on my machine via 127.0.0.1:8000 it runs via docker compose with an nginx container and a app container like so nginx: container_name: nginx image: &...
jotyhista's user avatar
1 vote
1 answer
363 views

Use port 80 with Symfony Server

I'm trying to set the port 80 while using the built-in Symfony Server on MacOS instead of defaulting to 8000. But keep getting this error: [ERROR] PHP-FPM failed to start: pool www] please specify ...
blackarcanis's user avatar
1 vote
0 answers
343 views

why apache response very slow when traffic goes high?

I have a news android application which is workes on API as backend (admin panel) on symfony (PHP Frameworks). When i send push notification API (Firebase) to my user my server response very slow. ...
Arman Ali's user avatar
1 vote
0 answers
358 views

Nginx behind proxy and symfony 4 application

I'm deploying Symfony 4 application which will be available through proxy: https://proxydomain.com/application The application works when it's accessed with the URL without trailing slash: https://...
Szymon Olewniczak's user avatar
1 vote
0 answers
5k views

Apache? ERR_INCOMPLETE_CHUNKED_ENCODING 200

I've been trying for several days to find out why the following error is happening to me: GET https://www.******.com/ net::ERR_INCOMPLETE_CHUNKED_ENCODING 200 (OK) I have also looked at some ...
jcarlosweb's user avatar
1 vote
0 answers
264 views

MBString Segfault with apache2 ubuntu 18.04 Laravel 5.7

I am working on a script API with Laravel 5.7. When I try and run a command on the API, I get the following segfault segfault at 7ffc466e9ee8 ip 00007f2adb4144ed sp 00007ffc466e9ef0 error 6 in ...
ArcticMediaRyan's user avatar
1 vote
2 answers
5k views

Unable to write in the cache directory Symfony 3.1

/var/log/nginx/app.local_error.log: 2018/09/13 11:25:20 [error] 20627#0: *18 FastCGI sent in stderr: "PHP message: PHP Fatal error: Uncaught RuntimeException: Unable to write in the cache ...
Viking777's user avatar
1 vote
1 answer
729 views

nginx + php5-fpm: Resource temporarily unavailable

I have an nginx (in a Debian docker container) with this config for a Symfony app: location ~ ^/api/(app|app_dev|config)\.php(/|$) { root /var/www/backend/web/; fastcgi_split_path_info ^/api/(...
Tim's user avatar
  • 115
1 vote
0 answers
3k views

504 Gateway Time-out Nginx -> PHP-FPM kubernetes

I've been trying to get my nginx connection to work with php-fpm for several days now. The problem is, he always gives me a 504 and gives me the next error log: 2018/07/09 10:57:25 [error] 5#5: *10 ...
Sermanes's user avatar
  • 113
1 vote
1 answer
988 views

.htaccess mod_deflate not working for dynamic URL

I have a URL as follows www.example.com/fr_FR the curl return type is as follows: HTTP/1.1 200 OK Date: Mon, 16 Oct 2017 10:35:19 GMT Server: Apache Set-Cookie: PHPSESSID=img4385scm6ldm6vngtntsrou1; ...
Kheshav Sewnundun's user avatar
1 vote
1 answer
810 views

Conditionally serving files from a directory outside of the document root with Apache2

I have inherited a web application written in PHP. The code is not the best and I want to start using the Symfony framework. It will be a gradual migration through several releases so I need the ...
emurano's user avatar
  • 111
1 vote
0 answers
2k views

Nginx rewrite directory to Symfony App but remove host directory

I have a VM with several development apps living on it. The basic web directory looks like: /var/web/subdoms/: index.php MyApp/ SomeOtherApp/ I have my Nginx config file specifying the ...
Fodagus's user avatar
  • 111
1 vote
1 answer
332 views

Securely configuring nginx for php

I want to use nginx for both Symfony2 sites and other software like phpMyAdmin. I've read the nginx docs on setting up Symfony2 and came across this issue: http://www.webhostingtalk.com/showthread....
Matt's user avatar
  • 135
1 vote
0 answers
397 views

Problems with MySQL/Apache-based symfony website

in the company where I started working on 1. July, I inherited, among others, a webserver that runs a MySQL/Apache stack on which a Website built in Symfony is running. The server runs openSuSE 12.1, ...
Constantijn Blondel's user avatar
0 votes
3 answers
113 views

/tmp flooded with ".myapp" files

On my new server (dedicated, CentOs5), 2 or 3 .myapp files (like "51b9dc4cc246f.myapp", ~500 Mo) is created every minute under /tmp, fulling my harddisk at an alarming speed. There is nothing in ...
Nicolas Reynolds's user avatar
0 votes
1 answer
724 views

Apache web server, virtual hosts, sub domains and multiple web frameworks

I have a website www.mysite.com This is the main site and I will be using the Django web framework for the site I also want to have other subdomains such as: https://mail.mysite.com (handled by ...
Homunculus Reticulli's user avatar
0 votes
1 answer
104 views

Nginx server default does not apply

I installed nginx on a debian server. I have three servers (virtual hosts): default (/etc/nginx/sites-enabled/0-default) mydomain.com (/etc/nginx/sites-enabled/1-mydomain) booking.mydomain.com (/etc/...
maxime's user avatar
  • 140
0 votes
2 answers
2k views

Diabling Symfony2 sessions files

I'm looking for a way to disable the file saving of PHP sessions. (I do not need sessions in my application) I tried to set save_path = NULL, but it only set it to the default path (/tmp). Is there ...
Nicolas Reynolds's user avatar
0 votes
1 answer
322 views

Google redirect failing on symfony website

I am helping a friend with her website mainteinance and there is some strange behaviour that I do not fully understand. When you search for her site on google.com, and click on her main website, the ...
jmrueda's user avatar
  • 101
0 votes
2 answers
1k views

Symfony Project Nginx

Heey all, I'm trying to host my symfony project but i'm getting a 500 error back from nginx. The error log doesn't show anything. Yet the access log does show something: 46.243.152.13 - - [17/Mar/...
Baklap4's user avatar
  • 127
0 votes
0 answers
73 views

All routes return 404 with Symfony app and nginx

I think title says it all, this is my nginx config file. I should mention that locally everything is working fine in dockerized environment so I think it will be nginx related problem. Also the React ...
jnd's user avatar
  • 3
0 votes
0 answers
34 views

clamdscan returns "Clamav Daemon cannot be started" but clamd is running

I am using clamdscan to scan files uploaded to a website. If I run clamdscan from the command line it works fine. However, if I call from a PHP script it throws an exception: App\Util\Exception\...
williamsdb's user avatar
0 votes
0 answers
141 views

NGINX config for multiple Symfony installations using subfolders

I have a shopware installation (version 6.5.5.1) running on my domain. I want to add more independent Shopware installations, using the same domain (for different languages/countries). For example, ...
dorina's user avatar
  • 1
0 votes
0 answers
896 views

Error 500: Internal server error deploying Symfony 6 application on shared hosting (Apache)

I have successfully deployed my application to a remote host using Deployer. I'm on shared hosting and I don't have access to the Apache configuration. The application is deployed in a directory ...
A. Cedano's user avatar
  • 101
0 votes
0 answers
1k views

Deploying symfony 5 application to shared hosting with just FTP access

I'm trying to deploy a Symfony web application on a server that only gives ftp access, without ssh possibilities, and I could only put files on two root folders: /data and /html folder. I'm trying to ...
Josema Gutiérrez's user avatar
0 votes
0 answers
334 views

Nginx configuration for matching wildcard server_name to specific Symfony route

i have a Symfony 5 application at domain.tld with this basic nginx configuration: map "$http_cloudfront_forwarded_proto:$http_x_forwarded_proto" $cloudfront_proto { default "http&...
El Lobo Blanco's user avatar