Questions tagged [symfony]

Symfony is a PHP framework

Filter by
Sorted by
Tagged with
0 votes
0 answers
598 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
1 vote
1 answer
182 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
318 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
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
302 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
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
0 votes
0 answers
337 views

Sometimes POST request from client to backend does not contain body

We run 2 different apps on Heroku. Both have an API written with PHP and Symfony and run through an Apache. One of the frontend clients is written with Vue the other with Angular. In the API we ...
Christian Kolb's user avatar
0 votes
0 answers
297 views

NGINX liip_imagine unable to create path for ... "Get operation failed" webp - not creating .webp in media/cache/filter_name symfony

So in my liip_imagine i have something like: webp: generate: True quality: 70 and it works good locally, it serves .png.webp images, but when i put it on my NGINX server i have an issue called ...
camelyellow's user avatar
0 votes
1 answer
460 views

Increased CPU interrupts, degraded performance on upgrade to Symfony flex

We're upgrading our Symfony 3.4 app (LAMP w/ opcache/php-fpm) to flex (as per https://symfony.com/doc/current/setup/flex.html). In load testing, we're seeing increased CPU usage, particularly system ...
Matt's user avatar
  • 1
0 votes
1 answer
317 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
1 vote
0 answers
326 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
0 votes
2 answers
984 views

Nginx - Symfony 4 multi apps - same domain

I'm trying to setup 2 Symfony 4 apps in the same server block (same domain) but php don't render the php files. Here is my config : server { server_name mydomain.com; root /var/www/; ...
Guillaume MARIE's user avatar
0 votes
1 answer
46 views

Not a file, not a folder, but a hard link(?) to /bin from another partition - scared to delete

I have a not-quite-folder not-quite-file on my file system. It is an AWS EC2 instance running Ubuntu 18.04.4 LTS. I have a script that runs nightly that picks up a file (/ebsvol/dead-drop/sync) and ...
chrisfromredfin's user avatar
0 votes
0 answers
131 views

Syncing web servers over WAN without port forwarding

We have multiple locations (2 now, soon to be 3) with ProxMox servers that have containers (ubuntu server) on them set up as the following (but will have more web servers): Location 1: GitLab-server ...
MicWit's user avatar
  • 111
0 votes
1 answer
801 views

Load Symfony Project in a directory with Apache

I have a Symfony PHP Application I want to run in a Windows server with Apache 2.4 Its files are stored in D:\Apache24\htdocs\project1\public Its entry point is D:\Apache24\htdocs\project1\public\...
VBobCat's user avatar
  • 101
0 votes
1 answer
3k views

Trouble making nginx works with symfony in subdirectory

This question is imported from SO. I kept the edit made with the comments so we dont have to go over it once more :). The link to the OP: https://stackoverflow.com/questions/57503107/trouble-making-...
Kévin Bruneau's user avatar
1 vote
0 answers
346 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
0 votes
0 answers
239 views

SAFARI error white page with symfony and htaccess with php-fpm all work on chrome,IE, firefox

I have a problem i just finish and upload my site but he not work with safari got white page i check log [Thu May 16 07:56:17.534196 2019] [authz_core:debug] [pid 5671] mod_authz_core.c(820): [client ...
Jonny's user avatar
  • 1
0 votes
0 answers
1k views

How get works symfony 4, cors, localhost, nginx

i have such nginx config: server { listen 127.0.0.1:80; server_name wtf; root /home/egor/PhpstormProjects/wtf/public/; client_max_body_size 32m; location / { if ($...
Hayate's user avatar
  • 171
0 votes
0 answers
909 views

Rewrite URL after Symfony rewrites rules

The goal is to add the locale "en" at the beginning of the URLs which doesn't have it. Example https://example.com/document/file.php Becomes https://example.com/en/document/file.php The ...
DeepBlueMussel'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
1 answer
734 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
0 answers
261 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
0 votes
1 answer
532 views

Nginx config for symfony on ubuntu

I want to setup symfony with nginx and this config is working fine server { listen 80; root /src/web; location / { # try to serve file directly, fallback to app.php ...
Master's user avatar
  • 105
0 votes
1 answer
268 views

prevent nginx to handle subset url

I run an Angular app rendered from a Symfony controller. My symfony application is based on http://localhost/portal and has a route on http://localhost/portal/shop/ (wich renders the Angular app). My ...
Flohw's user avatar
  • 1
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
724 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
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
2 votes
1 answer
2k 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
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,515
3 votes
1 answer
546 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
2 votes
0 answers
1k 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
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
0 votes
1 answer
3k views

Symfony's PHP files doesn't work on prod server

I just try to deploy to production a Symfony (3.3.5) project for the first time and I am in a little trouble. MySQL is installed and running on the server, Symfony can connect to it. Apache2 and PHP ...
Victor Castro's user avatar
1 vote
1 answer
973 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
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
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
0 votes
1 answer
82 views

Web interface to manage users created with FOSUserBundle

Is there an existing web interface, which could ease the management of users created with FOSUserBundle in a Symfony (2 or 3) project? Typically it would be presented as a bundle extension of ...
yolenoyer's user avatar
  • 133
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
0 votes
2 answers
1k views

The behavior of SetEnvIf on PHP routes

We are using the mod_auth_openid plugin to provide OpenID support for part of our site. It works pretty well, but we're running into one of those "Do this, except when" conditions, and I'm not sure ...
sysadmin1138's user avatar
  • 133k
0 votes
0 answers
2k views

debian nginx 1.10.3 prevent headers injection

I have a debian 8 VPS running with nginx 1.10.3. I host several Symfony 3.2 websites (using php7-fpm), and I face headers injection problems. I can't figure out if the problem is more from nginx or ...
Flo Schild's user avatar
0 votes
1 answer
2k views

“Failed to start the session: already started by PHP” error using a CMS

I installed a CMS, named Prestashop: it runs under a specific domain, and with a specific VirtualHost configuration on Apache, on a server with other PHP applications (Wordpress). When I try to login ...
Round Robin'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
0 votes
1 answer
883 views

Symfony, CentOS, NGINX, php-fpm cache error

I have been searching for two days on google and here and i tried every single solution out there to fix this issue but it seems to be that i am always missing something. I have CentOS 7 installed and ...
Yamen Nassif's user avatar
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
1 vote
1 answer
2k 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
2 votes
1 answer
570 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
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
231 views

Rhel 7 directory write permissions for both CLI and Apache user

I have been setting up a production environment for Symfony framework application on Red Hat Enterprise 7 Linux. I have an issue with enabling writing permissions to certain directories. In order to ...
Đuro Mandinić's user avatar