Questions tagged [symfony]

Symfony is a PHP framework

Filter by
Sorted by
Tagged with
0
votes
1answer
27 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 ...
0
votes
0answers
19 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 ...
0
votes
0answers
27 views

Right way to configure Symfony / Apache behind a Load balancer

We have the following architecture: Load balancer -> Apache 2.4 -> Symfony 3.4 The load balancer handles the SSL connection (SSL termination: HTTP is used between the load balancer and Symfony). ...
0
votes
0answers
18 views

nginx - two Symfony (3 and 4) apps in different locations (first for root and specific path, second for everything else)

I'm looking for some help with nginx vhost configuration. I need to configure two applications within one vhost (same domain, different paths): A) PHP 7.1 / Symfony3 / index = app.php B) PHP 7.2 / ...
0
votes
0answers
57 views

symfony 3.4 console command in docker env vars in crontab

I have a symfony 3.4 command to run with crontab in a aws ECS docker container. I've tried everything but seems that symfony is not reading env vars at all if runned in crontab. My crontab test is the ...
0
votes
1answer
75 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\...
0
votes
1answer
517 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-...
1
vote
0answers
126 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://...
0
votes
0answers
78 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 ...
0
votes
0answers
589 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 ($...
0
votes
0answers
318 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 ...
1
vote
0answers
2k 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 ...
1
vote
0answers
255 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 ...
1
vote
0answers
176 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
246 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
165 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 ...
1
vote
2answers
2k 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
469 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/(...
1
vote
0answers
1k 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
1answer
1k 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
820 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 ...
2
votes
0answers
836 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
206 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 ...
2
votes
0answers
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 ...
3
votes
0answers
1k 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
2k 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
665 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; ...
2
votes
1answer
3k 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
35 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
78 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 ...
1
vote
1answer
770 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
599 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
885 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
782 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 ...
5
votes
1answer
6k 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
586 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 ...
2
votes
1answer
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/...
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
441 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
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/...
0
votes
0answers
191 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
133 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
508 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
580 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
852 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
92 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
600 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 ...