Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Problemi con emerge net-www/apache {RISOLTO}
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian)
View previous topic :: View next topic  
Author Message
M4ll0C
n00b
n00b


Joined: 12 Mar 2006
Posts: 47
Location: localhost

PostPosted: Thu Mar 23, 2006 10:40 am    Post subject: Problemi con emerge net-www/apache {RISOLTO} Reply with quote

Ciao a tutti.........Nel dare il comando emerge net-www/apache ho riscontrato alcuni problemi che non riesco a risolvere.....
Arrivando a questo punto gentoo mi da questo errore:

>>> /var/cache/apache2/.keep
>>> /usr/lib64/apache2/logs -> /var/log/apache2
*
* Generating self-signed test certificate in /etc/apache2/ssl...

!!! ERROR: net-www/apache-2.0.55-r1 failed.
!!! Function pkg_postinst, Line 319, Exitcode 1
!!! gentestcrt.sh failed
!!! If you need support, post the topmost build error, NOT this status message.

!!! FAILED postinst: 1

Naturalmente prima ha compilato tutti i pacchetti ma nell'arrivare quasi alla fine dell'emerge mi da questo errore......
Grazie in anticipo :D


Last edited by M4ll0C on Thu Mar 23, 2006 12:24 pm; edited 1 time in total
Back to top
View user's profile Send private message
Peach
Advocate
Advocate


Joined: 08 Mar 2003
Posts: 3686
Location: London, UK

PostPosted: Thu Mar 23, 2006 10:50 am    Post subject: Reply with quote

con che flag di USE lo emergi? e soprattutto che versione di apache?
_________________
Gentoo user since 2004.
"It's all fun and games, until someone loses an eye" - mom
Back to top
View user's profile Send private message
M4ll0C
n00b
n00b


Joined: 12 Mar 2006
Posts: 47
Location: localhost

PostPosted: Thu Mar 23, 2006 10:51 am    Post subject: Reply with quote

Peach wrote:
con che flag di USE lo emergi? e soprattutto che versione di apache?


USE="apache2 mysql php pam ssl xml xml2 berkdb innodb jpeg png"
la versione di apache è 2.0.51-r1
Back to top
View user's profile Send private message
Peach
Advocate
Advocate


Joined: 08 Mar 2003
Posts: 3686
Location: London, UK

PostPosted: Thu Mar 23, 2006 10:57 am    Post subject: Reply with quote

M4ll0C wrote:
Peach wrote:
con che flag di USE lo emergi? e soprattutto che versione di apache?


USE="apache2 mysql php pam ssl xml xml2 berkdb innodb jpeg png"

no dico che flag ha Apache al momento dell'emerge?
Code:
# emerge -pv apache

_________________
Gentoo user since 2004.
"It's all fun and games, until someone loses an eye" - mom
Back to top
View user's profile Send private message
M4ll0C
n00b
n00b


Joined: 12 Mar 2006
Posts: 47
Location: localhost

PostPosted: Thu Mar 23, 2006 11:00 am    Post subject: Reply with quote

no dico che flag ha Apache al momento dell'emerge?
Code:
# emerge -pv apache
[/quote]

non ho messo nessuna flag......ho fatto semplicemente emerge net-www/apache :oops:
Back to top
View user's profile Send private message
makoomba
Bodhisattva
Bodhisattva


Joined: 03 Jun 2004
Posts: 1856

PostPosted: Thu Mar 23, 2006 11:05 am    Post subject: Reply with quote

esegui
Code:
/usr/sbin/gentestcrt.sh

e posta l'output
_________________
When all else fails, read the instructions.
Back to top
View user's profile Send private message
Peach
Advocate
Advocate


Joined: 08 Mar 2003
Posts: 3686
Location: London, UK

PostPosted: Thu Mar 23, 2006 11:06 am    Post subject: Reply with quote

Ti dispiacerebbe semplicemente riportare l'output di questo comando?
Code:
# emerge -pv apache

_________________
Gentoo user since 2004.
"It's all fun and games, until someone loses an eye" - mom
Back to top
View user's profile Send private message
M4ll0C
n00b
n00b


Joined: 12 Mar 2006
Posts: 47
Location: localhost

PostPosted: Thu Mar 23, 2006 11:08 am    Post subject: Reply with quote

Peach wrote:
Ti dispiacerebbe semplicemente riportare l'output di questo comando?
Code:
# emerge -pv apache


BlaCkSh3ll apache # emerge -pv apache
--- Invalid atom in /etc/portage/package.keywords: mod_php
--- Invalid atom in /etc/portage/package.keywords: php

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[ebuild R ] net-www/apache-2.0.55-r1 +apache2 -debug -doc -ldap -mpm-leader -mpm-peruser -mpm-prefork -mpm-threadpool -mpm-worker -no-suexec (-selinux) +ssl -static-modules -threads 0 kB

Total size of downloads: 0 kB
BlaCkSh3ll apache #

Questo invece è gentestcrc.sh....
BlaCkSh3ll apache # /usr/sbin/gentestcrt.sh
maketestcrt -- Create self-signed test certificate
(C) 2001 Jean-Michel Dault <jmdault@mandrakesoft.com> and Mandrakesoft
Based on cca.sh script by Ralf S. Engelschall



Will create server.key and server.crt in /etc/apache

INITIALIZATION

Generating custom Certificate Authority (CA)
______________________________________________________________________

STEP 1: Generating RSA private key for CA (1024 bit)
2169329 semi-random bytes loaded
Generating RSA private key, 1024 bit long modulus
..++++++
................++++++
e is 65537 (0x10001)
______________________________________________________________________

STEP 2: Generating X.509 certificate signing request for CA
You are about to be asked to enter information that will be incorporated
into your certificate request.
What you are about to enter is what is called a Distinguished Name or a DN.
There are quite a few fields but you can leave some blank
For some fields there will be a default value,
If you enter '.', the field will be left blank.
-----
1. Country Name (2 letter code) []:1
problems making Certificate Request
867:error:0D07A098:asn1 encoding routines:ASN1_mbstring_copy:string too short:a_mbstr.c:147:minsize=2
cca:Error: Failed to generate certificate signing request
BlaCkSh3ll apache #
Back to top
View user's profile Send private message
makoomba
Bodhisattva
Bodhisattva


Joined: 03 Jun 2004
Posts: 1856

PostPosted: Thu Mar 23, 2006 11:19 am    Post subject: Reply with quote

M4ll0C wrote:
1. Country Name (2 letter code) []:1

devi mettere una stringa di 2 lettere, non "1".
scrivi IT

edit:
anzi, posta direttamente il risultato di
Code:
yes "" 2>/dev/null | /usr/sbin/gentestcrt.sh

_________________
When all else fails, read the instructions.
Back to top
View user's profile Send private message
M4ll0C
n00b
n00b


Joined: 12 Mar 2006
Posts: 47
Location: localhost

PostPosted: Thu Mar 23, 2006 11:27 am    Post subject: Reply with quote

makoomba wrote:
M4ll0C wrote:
1. Country Name (2 letter code) []:1

devi mettere una stringa di 2 lettere, non "1".
scrivi IT

edit:
anzi, posta direttamente il risultato di
Code:
yes "" 2>/dev/null | /usr/sbin/gentestcrt.sh


BlaCkSh3ll apache # yes "" 2>/dev/null | /usr/sbin/gentestcrt.sh
maketestcrt -- Create self-signed test certificate
(C) 2001 Jean-Michel Dault <jmdault@mandrakesoft.com> and Mandrakesoft
Based on cca.sh script by Ralf S. Engelschall



server.key and server.crt already exist, dying
BlaCkSh3ll apache #
Back to top
View user's profile Send private message
makoomba
Bodhisattva
Bodhisattva


Joined: 03 Jun 2004
Posts: 1856

PostPosted: Thu Mar 23, 2006 11:36 am    Post subject: Reply with quote

posta
Code:
ls -l /etc/apache2/ssl/

_________________
When all else fails, read the instructions.
Back to top
View user's profile Send private message
M4ll0C
n00b
n00b


Joined: 12 Mar 2006
Posts: 47
Location: localhost

PostPosted: Thu Mar 23, 2006 11:39 am    Post subject: Reply with quote

makoomba wrote:
posta
Code:
ls -l /etc/apache2/ssl/


BlaCkSh3ll nicolas # ls -l /etc/apache2/ssl/
total 0
BlaCkSh3ll nicolas #
:(

Mi hanno comunque consigliato siccome avevo la ACCEPT_KEYWORDS="~amd64" di metterla a amd64 e fare emerge -auDNv world
Back to top
View user's profile Send private message
makoomba
Bodhisattva
Bodhisattva


Joined: 03 Jun 2004
Posts: 1856

PostPosted: Thu Mar 23, 2006 11:43 am    Post subject: Reply with quote

quello sei sempre in tempo a farlo.
prova così:
Code:
mkdir /root/test
cd /root/test
yes "" 2>/dev/null | /usr/sbin/gentestcrt.sh
ls -l


edit:
quanto posti il risultato, usa il tag Code
_________________
When all else fails, read the instructions.
Back to top
View user's profile Send private message
M4ll0C
n00b
n00b


Joined: 12 Mar 2006
Posts: 47
Location: localhost

PostPosted: Thu Mar 23, 2006 11:45 am    Post subject: Reply with quote

makoomba wrote:
quello sei sempre in tempo a farlo.
prova così:
Code:
mkdir /root/test
cd /root/test
yes "" 2>/dev/null | /usr/sbin/gentestcrt.sh
ls -l


edit:
quanto posti il risultato, usa il tag

Code:
BlaCkSh3ll apache # mkdir /root/test
BlaCkSh3ll apache # cd /root/test
BlaCkSh3ll test # yes "" 2>/dev/null | /usr/sbin/gentestcrt.sh
maketestcrt -- Create self-signed test certificate
(C) 2001 Jean-Michel Dault <jmdault@mandrakesoft.com> and Mandrakesoft
Based on cca.sh script by Ralf S. Engelschall



Will create server.key and server.crt in /root/test

INITIALIZATION

Generating custom Certificate Authority (CA)
______________________________________________________________________

STEP 1: Generating RSA private key for CA (1024 bit)
2169419 semi-random bytes loaded
Generating RSA private key, 1024 bit long modulus
..++++++
...........................................++++++
e is 65537 (0x10001)
______________________________________________________________________

STEP 2: Generating X.509 certificate signing request for CA
You are about to be asked to enter information that will be incorporated
into your certificate request.
What you are about to enter is what is called a Distinguished Name or a DN.
There are quite a few fields but you can leave some blank
For some fields there will be a default value,
If you enter '.', the field will be left blank.
-----
1. Country Name             (2 letter code) []:problems making Certificate Request
cca:Error: Failed to generate certificate signing request
BlaCkSh3ll test # ls -l
total 0
BlaCkSh3ll test #   
Back to top
View user's profile Send private message
makoomba
Bodhisattva
Bodhisattva


Joined: 03 Jun 2004
Posts: 1856

PostPosted: Thu Mar 23, 2006 11:51 am    Post subject: Reply with quote

ok
Code:
cd /root/temp
/usr/sbin/gentestcrt.sh
ls -l

se rispondi correttamente alle domande, dovrebbe creare i certificati

edit.
avevo sbagliato il copia&incolla
_________________
When all else fails, read the instructions.
Back to top
View user's profile Send private message
M4ll0C
n00b
n00b


Joined: 12 Mar 2006
Posts: 47
Location: localhost

PostPosted: Thu Mar 23, 2006 11:56 am    Post subject: Reply with quote

Code:
Certificate creation done!
BlaCkSh3ll test # ls -l /etc/apache2/ssl/
total 0
BlaCkSh3ll test #     



Il certificato me lo ha creato...ma la cartella non ha nulla :(
Back to top
View user's profile Send private message
makoomba
Bodhisattva
Bodhisattva


Joined: 03 Jun 2004
Posts: 1856

PostPosted: Thu Mar 23, 2006 11:57 am    Post subject: Reply with quote

scusa, avevo editato il post
Code:
ls -l /root/temp

_________________
When all else fails, read the instructions.
Back to top
View user's profile Send private message
M4ll0C
n00b
n00b


Joined: 12 Mar 2006
Posts: 47
Location: localhost

PostPosted: Thu Mar 23, 2006 12:01 pm    Post subject: Reply with quote

Code:
BlaCkSh3ll nicolas # ls -l /root/temp
ls: /root/temp: No such file or directory
BlaCkSh3ll nicolas # ls -l /root/test
total 8
-r--------  1 root root 956 Mar 23 12:54 server.crt
-r--------  1 root root 887 Mar 23 12:54 server.key
BlaCkSh3ll nicolas #
[/quote]

Eccolo
Back to top
View user's profile Send private message
makoomba
Bodhisattva
Bodhisattva


Joined: 03 Jun 2004
Posts: 1856

PostPosted: Thu Mar 23, 2006 12:03 pm    Post subject: Reply with quote

ok
Code:
cp /root/test/*  /etc/apache2/ssl/

e prova a riemergere apache
_________________
When all else fails, read the instructions.
Back to top
View user's profile Send private message
M4ll0C
n00b
n00b


Joined: 12 Mar 2006
Posts: 47
Location: localhost

PostPosted: Thu Mar 23, 2006 12:10 pm    Post subject: Reply with quote

Andato :D :D

Grazie Mille....comunque....mi consigli anche tu di cambiare l'accept keywords e fare l'emerge -auDNv world...
Perchè mi hanno detto che se lo tengo con la ~amd64 avrò sempre pacchetti instabili che mi daranno sempre errori...
Back to top
View user's profile Send private message
makoomba
Bodhisattva
Bodhisattva


Joined: 03 Jun 2004
Posts: 1856

PostPosted: Thu Mar 23, 2006 12:15 pm    Post subject: Reply with quote

il pacchetti in "~" sono sempre meno testati, se vuoi andare più sul sicuro, segui il consiglio.
occhio, però, che il downgrade potrebbe non essere indolore se coinvolge un discreto numero di pacchetti.
_________________
When all else fails, read the instructions.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum