Questions tagged [symfony]

Symfony is a PHP framework

Symfony is a PHP Web Development framework edited by Sensiolabs. Symfony is an internationally recognized, stable development environment. It is written in PHP.

76 questions
1
vote
1 answer

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.php?p=6807475#post6807475 Can I just use…
Matt
  • 135
  • 1
  • 7
1
vote
0 answers

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, and has an intel Xeon 3470 CPU, with 12GB Ram.…
1
vote
1 answer

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 would need rare changes. Let's call them partially…
mert
  • 121
  • 5
1
vote
2 answers

'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 insert. With too much update, I mean 20k-30k transaction…
Gurkan Oluc
  • 11
  • 1
  • 3
1
vote
1 answer

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: "${NGINX_IMAGE}" build: build/nginx …
jotyhista
  • 57
  • 1
  • 1
  • 7
1
vote
1 answer

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 user and group other than root FPM initialization…
blackarcanis
  • 119
  • 2
1
vote
1 answer

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 255 Here is the autoload_runtime file : //…
IneedSomeone
  • 11
  • 1
  • 3
1
vote
0 answers

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. after some times my server works properly. My…
Arman Ali
  • 11
  • 1
0
votes
1 answer

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\index.php I followed instructions available at…
VBobCat
  • 101
  • 2
0
votes
1 answer

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-nginx-works-with-symfony-in-subdirectory I'm trying…
0
votes
0 answers

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 172.31.33.224:4894] AH01626: authorization result…
Jonny
  • 1
  • 1
0
votes
0 answers

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 ($request_method = 'OPTIONS') { add_header…
Hayate
  • 171
  • 1
  • 8
0
votes
0 answers

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 following rule works fine alone: RewriteCond %{REQUEST_URI}…
0
votes
1 answer

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 try_files $uri /app.php$is_args$args; } …
Master
  • 105
  • 1
  • 5
0
votes
1 answer

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 current nginx configuration works well for this…
Flohw
  • 1
  • 1