2 posts tagged

php

Fix security check 404 error in your symfony project

The bin/console security:check was recently shutted down by Symfony stakeholders. If you try to use it you will get an error:

The web service failed for an unknown reason (HTTP 404).

Now you must checking the project locally with utility written by Fabien Potencier.

Attention!

My instructions are only suitable for those using docker or linux as a host system.

  1. That scripts allows to download latest version of security utility:
  1. Script generates “local-php-security-checker” file in project’s root folder. You may run downloaded file directly or add aliases to the composer.json file at “scripts” section:

Now you able to run security check with 1 line of code

 No comments   8 mon   eng   php   symfony

Install composer globally on Ubuntu

curl -sS https://getcomposer.org/installer -o composer-setup.php
sudo php composer-setup.php --install-dir=/usr/local/bin --filename=composer

In one line:

curl -sS https://getcomposer.org/installer | sudo php -- --install-dir=/usr/local/bin --filename=composer
 No comments   2017   eng   php   system