[DRE-maint] redmine debian package

tarik fannane tariqfan at gmail.com
Mon Jul 27 10:32:48 UTC 2009


Hi all

I've question for redmine package, Could anyone helps me.

I don't know hwo i can restart and stop redmine, any idea ?

I started it using this command : "ruby script/server webrick -e production
&" ( it works fine ).

So i need to restart the application when i made a backup/restore.

-- Tarik

2009/7/20 tarik fannane <tariqfan at gmail.com>

> Merci Jérémy , ça marche mnt avec
>    <VirtualHost *:80>
> Merci becaup
>
> j'ai changer le port 80 to 3000 /etc/apache2/ports.conf , et apres un
> restart ça ne marche pas , par ce que je pense mongrel use ce port là
> jé re changer le port to 80 et ça marche
>
> Merci bcp
>
>
>
> 2009/7/20 tarik fannane <tariqfan at gmail.com>
>
>> Oui j'ai mis les deux par ce que j'ai pa bien compris le code.
>>
>> mnt j'ai mis   apache2-host.conf dans /etc/apache2/sites-enabled, voilà
>>
>>
>>    <VirtualHost *:3000>
>>             # the fcgid socket path
>>             #ServerName redmine.ma <http://redmine.ma>
>>             SocketPath "/var/run/redmine/sockets"
>>             DocumentRoot /usr/share/redmine/public
>>    <Directory "/usr/share/redmine/public">
>>                     Options +FollowSymLinks +ExecCGI
>>                     Order allow,deny
>>                     Allow from all
>>                     RewriteEngine On
>>                     RewriteRule ^$ index.html [QSA]
>>                     RewriteRule ^([^.]+)$ $1.html [QSA]
>>                     RewriteCond %{REQUEST_FILENAME} !-f [OR]
>>                     RewriteCond %{REQUEST_FILENAME} dispatch.fcgi$
>>                     RewriteRule ^(.*)$ dispatch.fcgi [QSA,L]
>>    </Directory>
>>    </VirtualHost>
>>
>> then restart apache2 :
>>
>> debian:/etc/apache2/sites-enabled# /etc/init.d/apache2 restart
>> Restarting web server: apache2[Mon Jul 20 19:01:23 2009] [warn]
>> NameVirtualHost *:80 has no VirtualHosts
>>  ... waiting .[Mon Jul 20 19:01:25 2009] [warn] NameVirtualHost *:80 has
>> no VirtualHosts
>>
>>
>>
>>
>>
>>
>> 2009/7/20 Jérémy Lal <jerry at edagames.com>
>>
>>> tu as mis les deux fichiers de conf ou quoi ?
>>> il n'en faut qu'un, forcément.
>>> celui que tu veux est celui sans la directive Alias (le second que tu as
>>> mis dans ton mail)
>>>
>>> On 20/07/2009 17:04, tarik fannane wrote:
>>>
>>>> Ah, avant c'etait 80 a la place de 3000
>>>>
>>>> petit erreur apache2:
>>>> =========
>>>> debian:/etc/apache2/sites-enabled# /etc/init.d/apache2 restart
>>>> Restarting web server: apache2[Mon Jul 20 18:41:29 2009] [warn]
>>>> _default_ VirtualHost overlap on port 3000, the first has precedence
>>>> [Mon Jul 20 18:41:29 2009] [warn] NameVirtualHost *:80 has no
>>>> VirtualHosts
>>>>  ... waiting .[Mon Jul 20 18:41:32 2009] [warn] _default_ VirtualHost
>>>> overlap on port 3000, the first has precedence
>>>> [Mon Jul 20 18:41:32 2009] [warn] NameVirtualHost *:80 has no
>>>> VirtualHosts
>>>> =========
>>>>
>>>>
>>>> 2009/7/20 tarik fannane <tariqfan at gmail.com <mailto:tariqfan at gmail.com
>>>> >>
>>>>
>>>>    J'ai rien a changer dans le fichier selement le port.
>>>>
>>>>    ******** apache2-alias.conf*********
>>>>
>>>>    <VirtualHost *:3000>
>>>>             # if one day the special option is no longer needed
>>>>             #SetEnv RAILS_RELATIVE_URL_ROOT "/redmine"
>>>>             #ServerName redmine.ma <http://redmine.ma>
>>>>             # the needed special fcgid option
>>>>             DefaultInitEnv RAILS_RELATIVE_URL_ROOT "/redmine"
>>>>             # the fcgid socket path
>>>>             SocketPath "/var/run/redmine/sockets"
>>>>             Alias "/redmine" /usr/share/redmine/public
>>>>    <Directory "/usr/share/redmine/public">
>>>>                     Options +FollowSymLinks +ExecCGI
>>>>                     Order allow,deny
>>>>                     Allow from all
>>>>                     RewriteEngine On
>>>>                     RewriteBase "/redmine"
>>>>                     RewriteRule ^$ index.html [QSA]
>>>>                     RewriteRule ^([^.]+)$ $1.html [QSA]
>>>>                     RewriteCond %{REQUEST_FILENAME} !-f [OR]
>>>>                     RewriteCond %{REQUEST_FILENAME} dispatch.fcgi$
>>>>                     RewriteRule ^(.*)$ dispatch.fcgi [QSA,L]
>>>>    </Directory>
>>>>    </VirtualHost>
>>>>
>>>>    **************  apache2-host.conf
>>>>
>>>>
>>>>    <VirtualHost *:3000>
>>>>             # the fcgid socket path
>>>>             #ServerName redmine.ma <http://redmine.ma>
>>>>             SocketPath "/var/run/redmine/sockets"
>>>>             DocumentRoot /usr/share/redmine/public
>>>>    <Directory "/usr/share/redmine/public">
>>>>                     Options +FollowSymLinks +ExecCGI
>>>>                     Order allow,deny
>>>>                     Allow from all
>>>>                     RewriteEngine On
>>>>                     RewriteRule ^$ index.html [QSA]
>>>>                     RewriteRule ^([^.]+)$ $1.html [QSA]
>>>>                     RewriteCond %{REQUEST_FILENAME} !-f [OR]
>>>>                     RewriteCond %{REQUEST_FILENAME} dispatch.fcgi$
>>>>                     RewriteRule ^(.*)$ dispatch.fcgi [QSA,L]
>>>>    </Directory>
>>>>    </VirtualHost>
>>>>
>>>>
>>>>
>>>>
>>>>    2009/7/20 Jérémy Lal <jerry at edagames.com <mailto:jerry at edagames.com
>>>> >>
>>>>
>>>>        si tu mets *:80 dans ton fichier apache, tu ne risques pas de
>>>>        trouver
>>>>        l'appli sur le port 3000 !!!
>>>>        il faut mettre *:3000
>>>>        montre moi le fichier de config apache pour redmine en entier
>>>>        (celui que tu
>>>>        as adapté à partir de /usr/share/doc/redmine/examples/apache...)
>>>>
>>>>
>>>>        On 20/07/2009 16:52, tarik fannane wrote:
>>>>
>>>>            Could you please explain to more, i've spend 14hours for it.
>>>>            and without
>>>>            any result.
>>>>
>>>>            http://ip-address ==> refer me to /var/www ( index.html ==<
>>>>            It works )
>>>>            http://ip-address:3000  ==> page introuvable
>>>>
>>>>            Thanks in advanced
>>>>
>>>>
>>>>            2009/7/20 Jérémy Lal <jerry at edagames.com
>>>>            <mailto:jerry at edagames.com> <mailto:jerry at edagames.com
>>>>
>>>>            <mailto:jerry at edagames.com>>>
>>>>
>>>>
>>>>                On 20/07/2009 16:42, tarik fannane wrote:
>>>>
>>>>                    Hi
>>>>
>>>>                    I need your helps please.
>>>>
>>>>                    My redmine works fine now, Just i want to configure
>>>>            apache2 for
>>>>                    access
>>>>                    using my address IP. http://ip-addres:3000, because
>>>>            now he is
>>>>                    running on
>>>>                    localhost (it's by default).
>>>>                    I used an example of Jérémy [1] and [2], i did change
>>>>  :
>>>>
>>>>                    |<VirtualHost localhost>  to||<VirtualHost *:80>|
>>>>
>>>>                you bind port 80 here, not port 3000 !!!
>>>>                this has nothing to do with redmine...
>>>>
>>>>
>>>>
>>>>                    then restart apache2, but is still running on
>>>>            http://127.0.0.1:3000 and
>>>>                    not http://ip-addres:3000.
>>>>
>>>>                    Should i change those examples ?
>>>>
>>>>
>>>>                    [1]
>>>>
>>>> http://svn.debian.org/wsvn/pkg-ruby-extras/packages-wip/redmine/trunk/debian/doc/examples/apache2-alias.conf
>>>>                    [2]
>>>>
>>>> http://svn.debian.org/wsvn/pkg-ruby-extras/packages-wip/redmine/trunk/debian/doc/examples/apache2-host.conf
>>>>
>>>>
>>>>                    2009/7/19 tarik fannane <tariqfan at gmail.com
>>>>            <mailto:tariqfan at gmail.com>
>>>>            <mailto:tariqfan at gmail.com <mailto:tariqfan at gmail.com>>
>>>>            <mailto:tariqfan at gmail.com <mailto:tariqfan at gmail.com>
>>>>
>>>>            <mailto:tariqfan at gmail.com <mailto:tariqfan at gmail.com>>>>
>>>>
>>>>
>>>>
>>>>                        Hi
>>>>
>>>>                        Thanks for your heleps, I did update lenny to
>>>>            squeeze.
>>>>                        redmine package  works now good without any
>>>> problem.
>>>>
>>>>                        Tarik Fannane
>>>>                        regards
>>>>
>>>>                        2009/7/17 Ryan Niebur <ryanryan52 at gmail.com
>>>>            <mailto:ryanryan52 at gmail.com>
>>>>            <mailto:ryanryan52 at gmail.com <mailto:ryanryan52 at gmail.com>>
>>>>            <mailto:ryanryan52 at gmail.com <mailto:ryanryan52 at gmail.com>
>>>>            <mailto:ryanryan52 at gmail.com <mailto:ryanryan52 at gmail.com
>>>> >>>>
>>>>
>>>>
>>>>
>>>>                            On Fri, Jul 17, 2009 at 06:11:29PM +0000,
>>>>            tarik fannane
>>>>                    wrote:
>>>>             >
>>>>             >    But always the same error :(
>>>>             >
>>>>             >    other thing. I run redmine :
>>>>             >
>>>>             >    ladmin at redmine02:/usr/share/redmine$ ruby
>>>> script/server
>>>>                            webrick -e
>>>>             >    production -p 3000
>>>>             >    => Booting WEBrick...
>>>>             >    => Rails 2.2.2 application started on
>>>> http://0.0.0.0:3000
>>>>             >    => Ctrl-C to shutdown server; call with --help for
>>>> options
>>>>             >    [2009-07-17 21:23:53] INFO WEBrick 1.3.1
>>>>             >    [2009-07-17 21:23:53] INFO ruby 1.8.7 (2008-08-11)
>>>>                            [i486-linux]
>>>>             >    [2009-07-17 21:23:53] INFO WEBrick::HTTPServer#start:
>>>>                            pid=6058 port=3000
>>>>             >
>>>>             >    It seems that works good. ButA  when i point to my
>>>> browser
>>>>             > http://ip-address:3000 ===> ( 500 Internal Server Error
>>>> ).
>>>>             >    I used other ports and i got the same message.
>>>>             >
>>>>             >    -- Tarik
>>>>
>>>>                            oh. you already have it half installed. hm.
>>>>            so after you
>>>>                    install the
>>>>                            newer rails package and uninstall the gem,
>>>>            then "apt-get
>>>>                    purge
>>>>                            redmine" and reinstall redmine how you did
>>>>            last time.
>>>>                    you've broken
>>>>                            your redmine package, and I'm not sure how,
>>>>            so just
>>>>                    reinstalling
>>>>                            seems like the best way to fix it. if it
>>>>            still doesn't work,
>>>>                            show us the logs with the error messages,
>>>>            500 is too broad.
>>>>
>>>>                            --
>>>>                            _________________________
>>>>                            Ryan Niebur
>>>>            ryanryan52 at gmail.com <mailto:ryanryan52 at gmail.com>
>>>>            <mailto:ryanryan52 at gmail.com <mailto:ryanryan52 at gmail.com>>
>>>>            <mailto:ryanryan52 at gmail.com <mailto:ryanryan52 at gmail.com>
>>>>            <mailto:ryanryan52 at gmail.com <mailto:ryanryan52 at gmail.com>>>
>>>>
>>>>
>>>>
>>>>                            -----BEGIN PGP SIGNATURE-----
>>>>                            Version: GnuPG v1.4.9 (GNU/Linux)
>>>>
>>>>
>>>>
>>>>
>>>>  iEYEARECAAYFAkpgwKIACgkQMihv+PacasWKXgCgomUmRfTVs79JtF6VN0sIMWfZ
>>>>                            10cAoKE2RC2DhIHb1gpJlJH5TQ24q5Hf
>>>>                            =91N5
>>>>                            -----END PGP SIGNATURE-----
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>
>>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/pkg-ruby-extras-maintainers/attachments/20090727/b6b0c6ad/attachment-0001.htm>


More information about the Pkg-ruby-extras-maintainers mailing list