View previous topic :: View next topic |
Author |
Message |
M4ll0C n00b
Joined: 12 Mar 2006 Posts: 47 Location: localhost
|
Posted: Thu Mar 23, 2006 10:40 am Post subject: Problemi con emerge net-www/apache {RISOLTO} |
|
|
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
Last edited by M4ll0C on Thu Mar 23, 2006 12:24 pm; edited 1 time in total |
|
Back to top |
|
|
Peach Advocate
Joined: 08 Mar 2003 Posts: 3686 Location: London, UK
|
Posted: Thu Mar 23, 2006 10:50 am Post subject: |
|
|
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 |
|
|
M4ll0C n00b
Joined: 12 Mar 2006 Posts: 47 Location: localhost
|
Posted: Thu Mar 23, 2006 10:51 am Post subject: |
|
|
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 |
|
|
Peach Advocate
Joined: 08 Mar 2003 Posts: 3686 Location: London, UK
|
Posted: Thu Mar 23, 2006 10:57 am Post subject: |
|
|
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 |
|
|
M4ll0C n00b
Joined: 12 Mar 2006 Posts: 47 Location: localhost
|
Posted: Thu Mar 23, 2006 11:00 am Post subject: |
|
|
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 |
|
Back to top |
|
|
makoomba Bodhisattva
Joined: 03 Jun 2004 Posts: 1856
|
Posted: Thu Mar 23, 2006 11:05 am Post subject: |
|
|
esegui
Code: | /usr/sbin/gentestcrt.sh |
e posta l'output _________________ When all else fails, read the instructions. |
|
Back to top |
|
|
Peach Advocate
Joined: 08 Mar 2003 Posts: 3686 Location: London, UK
|
Posted: Thu Mar 23, 2006 11:06 am Post subject: |
|
|
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 |
|
|
M4ll0C n00b
Joined: 12 Mar 2006 Posts: 47 Location: localhost
|
Posted: Thu Mar 23, 2006 11:08 am Post subject: |
|
|
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 |
|
|
makoomba Bodhisattva
Joined: 03 Jun 2004 Posts: 1856
|
Posted: Thu Mar 23, 2006 11:19 am Post subject: |
|
|
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 |
|
|
M4ll0C n00b
Joined: 12 Mar 2006 Posts: 47 Location: localhost
|
Posted: Thu Mar 23, 2006 11:27 am Post subject: |
|
|
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 |
|
|
makoomba Bodhisattva
Joined: 03 Jun 2004 Posts: 1856
|
Posted: Thu Mar 23, 2006 11:36 am Post subject: |
|
|
posta
Code: | ls -l /etc/apache2/ssl/ |
_________________ When all else fails, read the instructions. |
|
Back to top |
|
|
M4ll0C n00b
Joined: 12 Mar 2006 Posts: 47 Location: localhost
|
Posted: Thu Mar 23, 2006 11:39 am Post subject: |
|
|
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 |
|
|
makoomba Bodhisattva
Joined: 03 Jun 2004 Posts: 1856
|
Posted: Thu Mar 23, 2006 11:43 am Post subject: |
|
|
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 |
|
|
M4ll0C n00b
Joined: 12 Mar 2006 Posts: 47 Location: localhost
|
Posted: Thu Mar 23, 2006 11:45 am Post subject: |
|
|
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 |
|
|
makoomba Bodhisattva
Joined: 03 Jun 2004 Posts: 1856
|
Posted: Thu Mar 23, 2006 11:51 am Post subject: |
|
|
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 |
|
|
M4ll0C n00b
Joined: 12 Mar 2006 Posts: 47 Location: localhost
|
Posted: Thu Mar 23, 2006 11:56 am Post subject: |
|
|
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 |
|
|
makoomba Bodhisattva
Joined: 03 Jun 2004 Posts: 1856
|
Posted: Thu Mar 23, 2006 11:57 am Post subject: |
|
|
scusa, avevo editato il post
_________________ When all else fails, read the instructions. |
|
Back to top |
|
|
M4ll0C n00b
Joined: 12 Mar 2006 Posts: 47 Location: localhost
|
Posted: Thu Mar 23, 2006 12:01 pm Post subject: |
|
|
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 |
|
|
makoomba Bodhisattva
Joined: 03 Jun 2004 Posts: 1856
|
Posted: Thu Mar 23, 2006 12:03 pm Post subject: |
|
|
ok
Code: | cp /root/test/* /etc/apache2/ssl/ |
e prova a riemergere apache _________________ When all else fails, read the instructions. |
|
Back to top |
|
|
M4ll0C n00b
Joined: 12 Mar 2006 Posts: 47 Location: localhost
|
Posted: Thu Mar 23, 2006 12:10 pm Post subject: |
|
|
Andato
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 |
|
|
makoomba Bodhisattva
Joined: 03 Jun 2004 Posts: 1856
|
Posted: Thu Mar 23, 2006 12:15 pm Post subject: |
|
|
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 |
|
|
|