Symfony 1.2 sous Ubuntu
Par Samuel MARTIN le mardi, 6 janvier 2009, 19:34 - Programmation - Lien permanent
Suite à la parution des tutoriaux "Jobeet", je me permets de rédiger un court article vous permettant d'installer le framework Symfony en 10 minutes sur Ubuntu. Pour les curieux, Symfony est un framework MVC libre écrit en PHP 5. En tant que framework, il facilite et accélère le développement de sites et d'applications Internet et Intranet à conditon bien sûr d'assimiler quelques concepts.
Installation des paquets LAMP
sudo apt-get install apache2 apache2-doc mysql-server php5 libapache2-mod-php5 php5-mysql phpmyadmin php5-xsl php5-cli, php-pear
Quelques détails sur la documentation LAMP d'ubuntu. Afin de bénéficier des commandes internes de Symfony telles que la création d'un schema.xml à partir de fichier yml, php5-xsl semble être indispensable.
Vérifier votre version de php
php -V doit vous retourner une version >= 5.0
Télécharger et installer Symfony 1.2 via Pear
sudo pear channel-discover pear.symfony-project.comsudo pear install symfony/symfony-1.2.1
Vérifier la version de Symfony
symfony -V doit retourner 1.2
Créer l'application
sudo mkdir /var/www/jobeetcd /var/www/sudo chmod 777 jobeet/symfony generate:project jobeetsymfony generate:appescaping-strategy=oncsrf-secret=UniqueSecret frontend
Configurer votre serveur
sudo gedit /etc/apache2/httpd.conf
Copier-coller ceci :
# Be sure to only have this line once in your configuration NameVirtualHost 127.0.0.1:8080 # This is the configuration for Jobeet Listen 127.0.0.1:8080 <VirtualHost 127.0.0.1:8080> DocumentRoot "/var/www/jobeet/web" DirectoryIndex index.php <Directory "/var/www/jobeet/web"> AllowOverride All Allow from All </Directory> Alias /sf /usr/share/php/data/symfony/web/sf <Directory "/usr/share/php/data/symfony/web/sf"> AllowOverride All Allow from All </Directory> </VirtualHost>
Redémarrer votre serveur via sudo /etc/init.d/apache2 restart
Tester l'application
Dans votre navigateur préféré taper : http://localhost:8080/
Commentaires
Pour obtenir la version de php, php -V ne marche pas chez moi contrairement a php --version
Youpi un Symfonian sur le puf \o/
euh... si tu mets ton projet dans /var/www, n'importe quel hacker débutant pourra accéder à l'ensemble des fichiers de ton projet, y compris celui où tu mets tes mots de passe, non?
Comme Samuel, je vous conseille à tous ce fabuleux outils pour vos futurs projets PHP ! À noter qu'il existe un vrai dépôt symfony si on n'aime pas l'installation via Pear.
Juste à dire qu'il est recommandé d'utiliser PHP 5.2 minimum, voir même la 5.2.4, avec symfony 1.2
C'est clair, après une prise en main pas toujours évidente, on se retrouve avec un outils de qualité, qui ne possèdent que des bonnes pratiques, et permet un développement plus rapide et plus efficace. Le tutos Jobeet est de qualité et permet de se faire une très bonne idée des capacités.
A conseiller vivement...
It's a precise and informative article. Things are formed symptom less. Get to know lot's of artifact which were unbeknownst to me. It's truly one of the most facilitative article I get ever read. Thanks for to percentage sensing for author from you. Symmetrical I bookmarked this diplomat as asymptomatic for to get supply from it in incoming.
http://www.uggsboot.us
Unlike the boots
http://www.uggsboot.us
Unlike the boots
http://www.guccis.net
j'ai lu tout cet article et il est vraiment bien. merci
Fine information, many thanks to the author. It is puzzling to me now, but in general, the usefulness and importance is overwhelming. Very much thanks again and good luck!
If we uphold the real facts that many times that it begins to run yesterday. Yes, you can be talked about school
I opine that to get the personal loans from banks you must present a good reason. But, one time I have got a short term loan, because I was willing to buy a bike.
Very often, people, which require the custom paper writing, do not really know how to find it. But it will be possible to buy book reports in the masters writing service. This is a usual action for most students.
To reach success, different students have to state if they want to perform the essay papers or just buying essay papers of superior upper-class.
Be wice and buy course work writing service to rid of your writing pain.
They Traveled to that clothing establishment to buy the stuff
How could that be that you know such a lot futuristic idea just like this good topic? Entirely the professional paper writing services know the right way to make a kind good buy thesis and dissertation service.
Thank you a lot for the very good topic about this good topic. It’s worthy to buy essay about this good post.
good article,nice post