klixato ha escrit:només root pot fer binds als ports executa-ho des de root i en background si es que l'engeges des de shell tu mateix, sinó posa't l'apachectl que està al directori bin de n li hagis instal·lat i li fas un enllaç simbolic a /etc/init.d i des d'allà li fas enllaços simbolics als runlevels que vulguis que s'engegi automàticament
sempre posa-hi un enllaç simbòlic K01apache a /etc/rc0.d i a /etc/rc6.d (per reiniciar i apagar el sistema)
debian per defecte (almenys ubuntu i dubto que això ho hagin modificat) engega pel runlevel2 (/etc/rc2.d/) els fitxers d'aquest directori s'engegaran (si tenen un S davant) o s'apagaran (si tenen una K davant) i el 01, 99 o el nº que tinguin ens diu l'ordre ...
els dimonis sempre l'últim de tot, que si els poses massa abans no tindrás les interfícies de xarxa engegades ni el mapeig de ports i et donará errors (per això es posa a S99 per engegar-se l'últim i K01 per parar-se el primer quan reiniciem o tanquem l'estació)
apa suposo que amb aixo en tens prou i de sobres
Gracies Mad93, ho havia d'executar com a root.
Ara ja ta "comprovat pero no instalat" (ho dic perque no m'en surto d'instalar el cd del catix i se'm borra tot de cop
Tot i que de moment millor anar amb el cd que sino m'ho carrrego tot
I ara una altra cosa:
Intento compilar el PHp i em falta alguna cosa...
loading cache ./config.cache
checking host system type... i686-pc-linux-gnu
checking for gcc... gcc
checking whether the C compiler (gcc ) works... yes
checking whether the C compiler (gcc ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking whether gcc and cc understand -c and -o together... yes
checking how to run the C preprocessor... gcc -E
checking for AIX... no
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... yes
checking for re2c... exit 0;
checking whether ln -s works... yes
checking for mawk... mawk
checking for bison... no
checking for byacc... no
configure: warning: You will need bison if you want to regenerate the PHP parsers.
checking for flex... lex
checking for yywrap in -ll... no
checking lex output file root... ./configure: line 2422: lex: command not found
configure: error: cannot find output from lex; giving up
No reconeix en comandament lex, com es fa aixo.
Respecte al que has dit klixato, no m'en he enterat DE RES en absolut...
Es que no se fer servir gaire el linux