mardi 1 avril 2014

Symfony 2 - Installation

Installation prérequis :

installer Mysql, Apache et plugin php nécessaire :

>sudo apt-get install php5-intl php-apc curl


Télécharger Symfony2 : 

>cd /var/www>sudo curl -s http://getcomposer.org/installer | php

>php composer.phar create-project symfony/framework-standard-edition [path]/ 2.4.2


pour pouvoir accéder depuis un pc distant via son navigateur : 
> sudo nano /var/www/Symfony/web/config.php

et modifier :

if (!in_array(@$_SERVER['REMOTE_ADDR'], array(
    '127.0.0.1',
 '192.168.1.180',
    '::1',
))) {
    header('HTTP/1.0 403 Forbidden');
    exit('This script is only accessible from localhost.');
}
 
mettre les droits qu'il faut sur les dossiers suivant :

>sudo chmod 777 -R Symfony/app/cache/
>sudo chmod 777 -R Symfony/app/logs/

plus qu'a ce connecter :

http://192.168.1.98/symfony/web/config.php

Aucun commentaire:

Enregistrer un commentaire

Dockker - 001 - De zéro à HTTPS : Déployer SWAG sur Debian avec Docker et OVH

Installer SWAG sur Debian avec Docker et gérer les DNS OVH Dans ce tutoriel, découvrez comment installer SWAG (Secure Web Application Ga...