Symfony2 and nginx web host - symfony

Hello i installed symfony2 on my nginx web host but it densest show up the project I've done
http://www.instelamrketing.es its the website and i used this commands to configure the server
http://www.leaseweblabs.com/2013/05/symfony2-under-nginx-on-ubuntu-12-04/
here some error logs
tail -f logs/error_log
#4 /home/intelmarketing.es/public_html/app/cache/prod/classes.php(5519): Monolog\Logger->addRecord(500, 'Uncaught PHP Ex...', Array)
#5 /home/intelmarketing.es/public_html/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/EventListener/ExceptionL in /home/intelmarketing.es/public_html/app/cache/prod/classes.php on line 5141" while reading response header from upstream, client: 180.211.176.176, server: intelmarketing.es, request: "GET / HTTP/1.1", upstream: "fastcgi://127.0.0.1:9007", host: "www.intelmarketing.es"
2013/08/14 18:15:05 [error] 2583#0: *3 FastCGI sent in stderr: "PHP Fatal error: Uncaught exception 'UnexpectedValueException' with message 'The stream or file "C:/wamp/www/symfony/app/logs/prod.log" could not be opened: failed to open stream: No such file or directory' in /home/intelmarketing.es/public_html/app/cache/prod/classes.php:5141
Stack trace:
#0 /home/intelmarketing.es/public_html/app/cache/prod/classes.php(5089): Monolog\Handler\StreamHandler->write(Array)
#1 /home/intelmarketing.es/public_html/app/cache/prod/classes.php(5018): Monolog\Handler\AbstractProcessingHandler->handle(Array)
#2 /home/intelmarketing.es/public_html/app/cache/prod/classes.php(5204): Monolog\Handler\AbstractHandler->handleBatch(Array)
#3 /home/intelmarketing.es/public_html/app/cache/prod/classes.php(5419): Monolog\Handler\FingersCrossedHandler->handle(Array)
#4 /home/intelmarketing.es/public_html/app/cache/prod/classes.php(5519): Monolog\Logger->addRecord(500, 'Uncaught PHP Ex...', Array)
#5 /home/intelmarketing.es/public_html/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/EventListener/ExceptionL in /home/intelmarketing.es/public_html/app/cache/prod/classes.php on line 5141" while reading response header from upstream, client: 180.211.176.176, server: intelmarketing.es, request: "GET / HTTP/1.1", upstream: "fastcgi://127.0.0.1:9007", host: "www.intelmarketing.es"
what might be the problem?
Thank you
/Aleksandar!

Clear your app/logs and app/cache directories and give your web server permissions to write to them (read the installation chapter). You left there some files from your development machine.

Related

After auto upgrade to 5.8 seeing errors and site unusable

After an auto upgrade to 5.8 seeing this error... can't even run the wp-cli to downgrade back to 5.7.2. I forgot to turn off the auto upgrade to this one particular site...
2021/07/23 14:46:03 [error] 83504#0: *10332 FastCGI sent in stderr:
"PHP message: PHP Fatal error: Cannot declare class
WP_Block_Template, because the name is already in use in
/Library/WebServer/clients/test/FASLAND/wp-content/plugins/gutenberg/lib/full-site-editing/class-wp-block-template.php
on line 12" while reading response header from upstream, client:
192.168.1.1, server: xx.xx.com, request: "GET / HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host:
"xx.xx.com" 2021/07/23 14:46:04 [error] 83504#0:
*10334 FastCGI sent in stderr: "PHP message: PHP Fatal error: Cannot declare class WP_Block_Template, because the name is already in use in
/Library/WebServer/clients/test/FASLAND/wp-content/plugins/gutenberg/lib/full-site-editing/class-wp-block-template.php
on line 12" while reading response header from upstream, client:
192.168.1.1, server: xx.xx.com, request: "GET /favicon.ico HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host:
"xx.xx.com", referrer:
"https://xx.xx.com/"
The critical error is caused by the Gutenberg plugin attempting to redeclare the class WP_Block_Template which is now included as part of the WordPress Core as of version 5.8
Ref: WordPress/wp-includes/class-wp-block-template.php
To resolve this issue, uninstall the Gutenberg plugin.
For WP-CLI, use the command:
wp plugin uninstall gutenberg

Critical error on mailgun plugin on wordpress

Trying to setup mailgun in wordpress with mailgun plugin.
Installs fine but the 'mailgun lists' settings section shows:
"There has been a critical error on this website. Please check your site admin email inbox for instructions."
Error:
#0 /home/runcloud/webapps/example/wp-content/plugins/mailgun/mailgun.php(241): Mailgun->api_call()
Stack trace:
2021/03/29 22:59:07 [error] 266087#266087: *179493 FastCGI sent in stderr: "PHP message: PHP Fatal error: Uncaught Error: Call to undefined function mg_api_get_region() in /home/runcloud/webapps/example/wp-content/plugins/mailgun/mailgun.php:188
2021/03/29 22:58:18 [error] 266087#266087: *179488 access forbidden by rule, client: 158.801.119.239, server: _, request: "GET /.env HTTP/1.1", host: "159.203.922.254"
2021/03/29 22:35:56 [error] 266087#266087: *179452 FastCGI sent in stderr: "PHP message: PHP Warning: escapeshellcmd() has been disabled for security reasons in /home/runcloud/webapps/example/wp-includes/PHPMailer/PHPMailer.php on line 1779" while reading response header from upstream, client: 262.258.622.926, server: _, request: "POST /wp-login.php?action=lostpassword HTTP/1.1", upstream: "fastcgi://unix:/var/run/example.sock:", host: "example.net", referrer: "https://example.net/wp-login.php?action=lostpassword"
Any ideas on how to fix this?

How to reduce size of error.log in Nginx?

I have no idea how to fix this...
2019/01/14 05:15:02 [alert] 27307#27307: *9 write() to "/var/log/nginx/access.log" failed (28: No space left on device) while logging request, client: 108.162.226.175, server: titomi.cf, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/run/php/php7.0-fpm.sock", host: "titomi.cf"
2019/01/14 05:15:22 [error] 27307#27307: *11 FastCGI sent in stderr: "PHP message: PHP Warning: mysqli_connect(): (HY000/2002): No such file or directory in /var/www/test/lib/common.lib.php on line 1443" while reading response header from upstream, client: 162.158.118.78, server: test.titomi.cf, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/run/php/php7.0-fpm.sock:", host: "test.titomi.cf"
I think this is access.log error size
How can I reduce the size of access.log?
You probably need log rotation to rotate the logs.
sudo vim /etc/logrotate.d/nginx
/var/log/nginx/*.log {
daily
missingok
rotate 14
compress
notifempty
create 0640 www-data adm
}
Daily: Rotate the logs daily basis
missingok: Do not give output if log is missing
Rotate 14: Will keep the last 14 logs
Compress: Will the compress the old copies of the log files.
You can run the logrotate
logrotate /var/log/nginx/

NGinx: connect() to unix:/var/run/hhvm/sock failed, No such file

I am Tryig to install FB-CTF which uses HHVM, and NGinx. Everything is set completely by Shell command itself.. but now error log showing
2017/01/18 21:48:17 [crit] 15143#0:
***6 connect() to unix:/var/run/hhvm/sock failed**
(2: No such file or directory) while connecting to upstream,
client: 127.0.0.1, server: ,
request: "GET / HTTP/1.1",
upstream: "fastcgi://unix:/var/run/hhvm/sock:",
host: "localhost"
actually /var/run/hhvm/ contains only hhvm.hhbc.. getting 502 BAD GATEWAY
I reinstalled HHVM. then missing files are reinstalled. all the dependent files are correctly restored.

502 Bad Gateway error with nginx and unicorn

I have nginx 1.4.1 and unicorn set up on centos - I am getting a 502 Bad Gateway error and my nginx logs shows this:
1 connect() to unix:/tmp/unicorn.pantry.sock failed (2: No such file or directory)
while connecting to upstream, client: 192.168.1.192, server: , request: "GET / HTTP/1.1",
upstream: "http://unix:/tmp/unicorn.pantry.sock:/", host: "192.168.1.30"
There is no /tmp/unicorn.pantry.sock file or directory. I am thinking that it might be a permission error and therefore the file can't be written if so who requires what permission - I have also read that I can create a tcp client
Also I don't understand where the 192.168.1.192 comes from
I just want to make it work How can I do it?
Ok I figured this out. I had unicorn.sock in my shared directory so I needed to point unix: to it

Resources