en faite cela fonctionne effectivement, tout seul.
il faut juste commenter le path initial
/var/www
cela parmet de voir le dossier www et de travailler dessus.
donc je laisse le mien qui correspond à une version ubuntu 9.10 et une
install taskel.
symfony 1.4
( ont ne sait jamais, sa peux rendre service je ne suis qu'un novice) ?
<VirtualHost *:8080>
ServerAdmin webmas...@localhost
# DocumentRoot /var/www
# C'est la configuration pour votre projet
DocumentRoot "/home/sfprojects/jobeet/web"
DirectoryIndex index.php
<Directory "/home/sfprojects/jobeet/web">
AllowOverride All
Allow from All
</Directory>
Alias /sf /home/sfprojects/jobeet/lib/vendor/symfony/data/web/sf
<Directory "/home/sfprojects/jobeet/lib/vendor/symfony/data/web/sf">
AllowOverride All
Allow from All
</Directory>
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin">
AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Directory>
ErrorLog /var/log/apache2/error.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
CustomLog /var/log/apache2/access.log combined
Alias /doc/ "/usr/share/doc/"
<Directory "/usr/share/doc/">
Options Indexes MultiViews FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
Allow from 127.0.0.0/255.0.0.0 ::1/128
</Directory>
</VirtualHost>
2010/2/2 legeox <[email protected]>
> pour apache2 tu peux faire dans ce fichier :
> /etc/apache2/apache2.conf
>
>
> mais le mieux c'est de créer un fichier dans
> /etc/apache2/sites-enabled/
>
> voici un des miens: (attention : je met mes lib de symfony dans un dossier
> commun à tous mes projets)
>
>
>
> Alias /monProjetSymfony/sfProtoculousPlugin
> /Users/xxx/Documents/sf_libraries/symfony/lib/plugins/sfProtoculousPlugin/web
> <Directory
> "/Users/xxx/Documents/sf_libraries/symfony/lib/plugins/sfProtoculousPlugin/web">
> Options FollowSymLinks Indexes
> AllowOverride None
> Allow from All
> </Directory>
>
>
> Alias /monProjetSymfony/sfDoctrinePlugin
> /Users/xxx/Documents/sf_libraries/symfony/lib/plugins/sfDoctrinePlugin/web
> <Directory
> "/Users/xxx/Documents/sf_libraries/symfony/lib/plugins/sfDoctrinePlugin/web">
> Options FollowSymLinks Indexes
> AllowOverride None
> Allow from All
> </Directory>
>
>
> Alias /monProjetSymfony /Users/xxx/Documents/projets/monProjet/web
> <Directory "/Users/xxx/Documents/projets/monProjet/web">
> Options FollowSymLinks Indexes
> AllowOverride None
> Allow from All
> </Directory>
>
>
>
>
>
> Le 2 févr. 10 à 19:11, artotal a écrit :
>
> il y a pas mal de commande.
>
> J'en suis à configurer les hote virtuel.
> Mais le problème est que j'utilise apache2 et il n'y a plus de httpd.conf
> ont à un fichiers host dans lequel ont met un ip/monSite1
>
> 127.0.0.1 monSite1.fr
>
>
> et ainsi faire la résolution ip/nom
>
> ont crée un dossier monSite1 dns le dir /www
> sudo mkdir monSite1
> sudo chmod 755 -R monSite1
>
> puis dans
> *sudo vi /etc/apache2/sites-available*/default
>
> c'est là que je bloque
>
> <VirtualHost *:80>
> ServerAdmin webmas...@localhost
>
> DocumentRoot /var/www
> <Directory />
> Options FollowSymLinks
> AllowOverride None
> </Directory>
> <Directory /var/www/>
> Options Indexes FollowSymLinks MultiViews
> AllowOverride None
> Order allow,deny
> allow from all
> </Directory>
>
> ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
> <Directory "/usr/lib/cgi-bin">
> AllowOverride None
> Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
> Order allow,deny
> Allow from all
> </Directory>
>
> ErrorLog /var/log/apache2/error.log
>
> # Possible values include: debug, info, notice, warn, error, crit,
> # alert, emerg.
> LogLevel warn
>
> CustomLog /var/log/apache2/access.log combined
>
> Alias /doc/ "/usr/share/doc/"
> <Directory "/usr/share/doc/">
> Options Indexes MultiViews FollowSymLinks
> AllowOverride None
> Order deny,allow
> Deny from all
> Allow from 127.0.0.0/255.0.0.0 ::1/128
> </Directory>
>
>
>
> 2010/2/2 geo geo <[email protected]>
>
>> qu'appelle tu installer un module, qu'est-ce qu'un module dans le sens de
>> ta phrase ? si c'est un dossier dans apps/monApp/modules
>> alors il y a une commande symfony pour ca: symfony generate:module
>>
>>
>> tapes 'symfony' dans ton terminal tu verras les options des commandes
>> possibles
>>
>>
>>
>> Le 2 février 2010 16:12, artotal <[email protected]> a écrit :
>>
>>
>>> Merci,
>>> encore, il se sert donc de cli (je vais surrement comprendre plus tard)
>>>
>>> Et pour installer les modules avez-vous une solutions préférables à
>>> d'autres ?
>>>
>>>
>>> [[WARNING]] XSL module is installed: FAILED
>>> *** Install the XSL module (recommended for Propel) ***
>>> OK The token_get_all() function is available
>>> OK The mb_strlen() function is available
>>> OK The iconv() function is available
>>> OK The utf8_decode() is available
>>> [[WARNING]] A PHP accelerator is installed: FAILED
>>> *** Install a PHP accelerator like APC (highly recommended)
>>> ***
>>>
>>>
>>> 2010/2/2 Lélio ML <[email protected]>
>>>
>>> il faut utiliser le /etc/php5/cli/php.ini comme indiqué : c'est le
>>>> php.ini utilisé par le php-cli
>>>>
>>>> ------------------------------
>>>> *De :* [email protected] [mailto:[email protected]]
>>>> *De la part de* artotal
>>>> *Envoyé :* mardi 2 février 2010 12:34
>>>> *À :* [email protected]
>>>> *Objet :* Re: [symfony-fr] Re: débuter
>>>>
>>>> Merci pour vos réponses, effectivement le français c'est plus agréable
>>>> :)
>>>>
>>>> Par contre quand je lance le fichier de config, j'ai trois warning
>>>>
>>>> x...@artotal:/var/www$ php check_configuration.php
>>>> ********************************
>>>> * *
>>>> * symfony requirements check *
>>>> * *
>>>> ********************************
>>>>
>>>> php.ini used by PHP: /etc/php5/cli/php.ini
>>>>
>>>> ** WARNING **
>>>> * The PHP CLI can use a different php.ini file
>>>> * than the one used with your web server.
>>>> * If this is the case, please launch this
>>>> * utility from your web server.
>>>> ** WARNING **
>>>>
>>>> ** Mandatory requirements **
>>>>
>>>> OK PHP version is at least 5.2.4 (5.2.10-2ubuntu6.4)
>>>>
>>>> ** Optional checks **
>>>>
>>>> OK PDO is installed
>>>> OK PDO has some drivers installed: mysql
>>>> OK PHP-XML module is installed
>>>> [[WARNING]] XSL module is installed: FAILED
>>>> *** Install the XSL module (recommended for Propel) ***
>>>> OK The token_get_all() function is available
>>>> OK The mb_strlen() function is available
>>>> OK The iconv() function is available
>>>> OK The utf8_decode() is available
>>>> [[WARNING]] A PHP accelerator is installed: FAILED
>>>> *** Install a PHP accelerator like APC (highly recommended)
>>>> ***
>>>> [[WARNING]] php.ini has short_open_tag set to off: FAILED
>>>> *** Set it to off in php.ini ***
>>>> [[WARNING]] php.ini has magic_quotes_gpc set to off: FAILED
>>>> *** Set it to off in php.ini ***
>>>> OK php.ini has register_globals set to off
>>>> OK php.ini has session.auto_start set to off
>>>> OK PHP version is not 5.2.9
>>>> x...@artotal:/var/www$
>>>>
>>>>
>>>> Donc quand je veux modifier mon php.ini il ne se passe rien.
>>>> je l'ouvre comme cela :
>>>> sudo gedit /etc/php5/apache2/php.ini
>>>>
>>>> je met à off:
>>>> short_open_tag = Off
>>>> magic_quotes_gpc = On
>>>>
>>>> et je redémarre apache2
>>>> sudo /etc/init.d/apache2 restart
>>>>
>>>> ensuite je relance
>>>> x...@artotal:/var/www$ php check_configuration.php
>>>>
>>>> Mais rien ne bouge ?
>>>>
>>>> J'ai peut-être d'autre php.ini
>>>> Mais j'en doute parce que j'ai utiliser qu'une seule fois
>>>> sudo apt-get install tasquel
>>>> Qui me permet d'installer lamp très simplement
>>>>
>>>> --
>>>> Vous recevez ce message, car vous êtes abonné au groupe Google
>>>> Groupes Symfony-fr.
>>>> Pour envoyer un message à ce groupe, adressez un e-mail à
>>>> [email protected].
>>>> Pour vous désabonner de ce groupe, envoyez un e-mail à l'adresse
>>>> [email protected]<symfony-fr%[email protected]>
>>>> .
>>>> Pour plus d'options, consultez la page de ce groupe :
>>>> http://groups.google.com/group/symfony-fr?hl=fr
>>>>
>>>>
>>>> --
>>>> Vous recevez ce message, car vous êtes abonné au groupe Google
>>>> Groupes Symfony-fr.
>>>> Pour envoyer un message à ce groupe, adressez un e-mail à
>>>> [email protected].
>>>> Pour vous désabonner de ce groupe, envoyez un e-mail à l'adresse
>>>> [email protected]<symfony-fr%[email protected]>
>>>> .
>>>> Pour plus d'options, consultez la page de ce groupe :
>>>> http://groups.google.com/group/symfony-fr?hl=fr
>>>>
>>>
>>>
>>>
>>> --
>>> Xavier ARTOT
>>> contribution open source
>>> http://www.phpclasses.org/browse/file/23687.html
>>> Professeur de développement web pour particulier et professionnel.
>>> N° siret : 511 644 676 00013
>>>
>>>
>>> --
>>> Vous recevez ce message, car vous êtes abonné au groupe Google
>>> Groupes Symfony-fr.
>>> Pour envoyer un message à ce groupe, adressez un e-mail à
>>> [email protected].
>>> Pour vous désabonner de ce groupe, envoyez un e-mail à l'adresse
>>> [email protected]<symfony-fr%[email protected]>
>>> .
>>> Pour plus d'options, consultez la page de ce groupe :
>>> http://groups.google.com/group/symfony-fr?hl=fr
>>>
>>
>>
>> --
>> Vous recevez ce message, car vous êtes abonné au groupe Google
>> Groupes Symfony-fr.
>> Pour envoyer un message à ce groupe, adressez un e-mail à
>> [email protected].
>> Pour vous désabonner de ce groupe, envoyez un e-mail à l'adresse
>> [email protected]<symfony-fr%[email protected]>
>> .
>> Pour plus d'options, consultez la page de ce groupe :
>> http://groups.google.com/group/symfony-fr?hl=fr
>>
>
>
>
> --
> Xavier ARTOT
> contribution open source http://www.phpclasses.org/browse/file/23687.html
> Professeur de développement web pour particulier et professionnel.
> N° siret : 511 644 676 00013
>
> --
> Vous recevez ce message, car vous êtes abonné au groupe Google
> Groupes Symfony-fr.
> Pour envoyer un message à ce groupe, adressez un e-mail à
> [email protected].
> Pour vous désabonner de ce groupe, envoyez un e-mail à l'adresse
> [email protected].
> Pour plus d'options, consultez la page de ce groupe :
> http://groups.google.com/group/symfony-fr?hl=fr
>
>
> --
> Vous recevez ce message, car vous êtes abonné au groupe Google
> Groupes Symfony-fr.
> Pour envoyer un message à ce groupe, adressez un e-mail à
> [email protected].
> Pour vous désabonner de ce groupe, envoyez un e-mail à l'adresse
> [email protected]<symfony-fr%[email protected]>
> .
> Pour plus d'options, consultez la page de ce groupe :
> http://groups.google.com/group/symfony-fr?hl=fr
>
--
Xavier ARTOT
contribution open source http://www.phpclasses.org/browse/file/23687.html
Professeur de développement web pour particulier et professionnel.
N° siret : 511 644 676 00013
--
Vous recevez ce message, car vous êtes abonné au groupe Google
Groupes Symfony-fr.
Pour envoyer un message à ce groupe, adressez un e-mail
à [email protected].
Pour vous désabonner de ce groupe, envoyez un e-mail à l'adresse
[email protected].
Pour plus d'options, consultez la page de ce groupe :
http://groups.google.com/group/symfony-fr?hl=fr