Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [symfony]

Symfony is a PHP framework

0
votes
0answers
23 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 ...
0
votes
0answers
45 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 ...
0
votes
0answers
9 views

How to fix misredirection after rewriting Symfony4's 302 redirected URL (to login page)

Problem summary I'm trying to setup a reverse proxy (apache 2.4.29 Ubuntu) with a Symfony4.1.8 server. Where the end user goes to the webserver, the webserver reverse-proxies the request to the ...
1
vote
0answers
27 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 ...
0
votes
0answers
29 views

Symfony + Nginx + Proxy_pass + Subdirectory : How to rewrite url?

I am trying to step a bit out my comfort zone as programmer and trying to do myself a full setup from a webserver . I could do it using apache, but, I have the need to use proxy_pass because I have a ...
0
votes
0answers
20 views

Exclude folder with deployer.php

I have a symfony project that every time I make a change I use the deploy. Now I need to add a wordpress project in the web folder and I do not want it to be affected by the deploy. I wanna exclude ...
1
vote
0answers
30 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 ...
0
votes
1answer
76 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 ...
0
votes
1answer
49 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 ...
0
votes
0answers
10 views

configuring nginx + symfony on internal location in existing site

I want to configure a symfony project on internal directory of existing site. so I have a directory on the server /home/mysymfonyproj/ which has the symfony project and the folder web and I have my ...
1
vote
2answers
356 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 ...
1
vote
1answer
242 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/(...
0
votes
0answers
534 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 ...
1
vote
0answers
280 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 ...
2
votes
1answer
196 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 ...
0
votes
0answers
205 views

Memory leak with a basic Symfony controller

The issue I have a memory leak issue with Symfony 4.0.0, on a fresh basic VPS server (OVH/Arch linux). The used memory is growing by ~1Mb for each ~1000 requests. After a few tests I finally reduced ...
1
vote
0answers
344 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....
1
vote
1answer
102 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 ...
0
votes
0answers
33 views

AuthType Basic produces to many redirects

I do have symfony3 installed. The uncomment lines works perfectly. This configuration below produces to many redirects. What is wrong? I want to have htpasswd in front of the application. <...
0
votes
0answers
833 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 ...
0
votes
0answers
3k views

Laravel - Call to undefined function Illuminate\Encryption\openssl_cipher_iv_length()

I'm using the Laravel framework to build a web application. I'm also using Uniform Server (which is a server platform that in turn uses Apache2). As you probably know, Laravel creates a default ...
2
votes
0answers
582 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 ...
0
votes
1answer
1k 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 ...
1
vote
1answer
452 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; ...
1
vote
1answer
951 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; ...
1
vote
2answers
32 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 ...
0
votes
1answer
59 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 ...
0
votes
1answer
472 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/...
0
votes
1answer
374 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 ...
0
votes
0answers
632 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 ...
0
votes
1answer
506 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 ...
2
votes
1answer
4k 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 ...
0
votes
1answer
432 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 ...
3
votes
1answer
1k 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/...
1
vote
1answer
1k 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-...
2
votes
1answer
348 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 ...
0
votes
2answers
820 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/...
0
votes
0answers
152 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 ...
0
votes
0answers
125 views

Nginx configuration file with sf2, php-fpm and fastCGI

This is my config file, it's taken from the official symfony 2 website so it should work: server { server_name domain.tld www.domain.tld; root /var/www/project/web; location / { #...
0
votes
1answer
358 views

DirectoryIndex in Subfolder/New project with virtualhosts and SSL, same domain

I have som problems with setting up a new project in apache. I have an old project in sub.domain.com/api/something.php, but am trying to add a new project (symfony) that requires a DirectoryIndex, sub....
1
vote
1answer
356 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 ...
0
votes
0answers
697 views

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

Currently I am setting up a server to run a web site built on Symfony framework (1.4 version). After tuning Apache2 to work with needed folders, and setting proper permissions on every chunk of path ...
0
votes
0answers
2k views

HTTPS Config for symfony2

I have followed this tutorial for setting up https on an ubuntu server: https://www.digitalocean.com/community/tutorials/how-to-create-a-ssl-certificate-on-apache-for-ubuntu-14-04 I have ended up ...
0
votes
1answer
1k views

Configuration of Symfony2 + Nginx on CentOS6 not working

im stucked here about 2 days traying to figure out how to make this run, hope somebody could point what I'm doing wrong. Trying to run Symfony2 over Nginx-CentOS 6 with this configuration file. ...
2
votes
3answers
2k 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 ...
0
votes
1answer
91 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/...
0
votes
1answer
560 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 ...
1
vote
1answer
12k 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 ...
0
votes
1answer
260 views

Continuously deploying a Symfony app on Cloudformation

My current plan is to begin hosting my team's Symfony-based app on a load-balanced, autoscaling group generated via Cloudformation. When someone on my team pushes to our Github repo, I would like ...
0
votes
2answers
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 ...