PDA

View Full Version : [installazione]Postgres+php+apache


TorpedoBlu
04-02-2005, 20:35
devo iniziare a lavorare bene con i dbms in uni.

ho installato una knoppix 3.7 su macchina virtuale (per lavorare e fare prove)

ho iniziato a installare i 3 soft di sopra, ma appena lancio ./config di postgres non va, ecco l'output


root@bedda:/dbms/postgresql-7.4.6# ./configure
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking which template to use... linux
checking whether to build with 64-bit integer date/time support... no
checking whether NLS is wanted... no
checking for default port number... 5432
checking for gcc... gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking how to turn off strict aliasing in gcc... -fno-strict-aliasing
configure: using CFLAGS=-O2 -fno-strict-aliasing
checking whether the C compiler still works... yes
checking how to run the C preprocessor... gcc -E
checking allow thread-safe client libraries... no
checking whether to build with Tcl... no
checking whether to build with Tk... no
checking whether to build Perl modules... no
checking whether to build Python modules... no
checking whether to build Java/JDBC tools... no
checking whether to build with Kerberos 4 support... no
checking whether to build with Kerberos 5 support... no
checking whether to build with PAM support... no
checking whether to build with Rendezvous support... no
configure: using CPPFLAGS=-D_GNU_SOURCE
configure: using LDFLAGS=
checking for gawk... gawk
checking for flex... /usr/bin/flex
checking whether ln -s works... yes
checking for ld used by GCC... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for ranlib... ranlib
checking for lorder... lorder
checking for tar... /bin/tar
checking for strip... strip
checking whether it is possible to strip libraries... yes
checking for bison... bison -y
checking for perl... /usr/bin/perl
checking for main in -lbsd... no
checking for setproctitle in -lutil... no
checking for main in -lm... yes
checking for main in -ldl... yes
checking for main in -lnsl... yes
checking for main in -lsocket... no
checking for main in -lipc... no
checking for main in -lIPC... no
checking for main in -llc... no
checking for main in -ldld... no
checking for main in -lld... no
checking for main in -lcompat... no
checking for main in -lBSD... no
checking for main in -lgen... no
checking for main in -lPW... no
checking for main in -lresolv... yes
checking for library containing getopt_long... none required
checking for main in -lunix... no
checking for library containing crypt... -lcrypt
checking for library containing fdatasync... none required
checking for shmget in -lcygipc... no
checking for readline... no
configure: error: readline library not found
If you have readline already installed, see config.log for details on the
failure. It is possible the compiler isn't looking in the proper directory.
Use --without-readline to disable readline support.
root@bedda:/dbms/postgresql-7.4.6# cd ..
root@bedda:/dbms# cd ..
root@bedda:/# /dbms/postgresql-7.4.6/./configure
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking which template to use... linux
checking whether to build with 64-bit integer date/time support... no
checking whether NLS is wanted... no
checking for default port number... 5432
checking for gcc... gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking how to turn off strict aliasing in gcc... -fno-strict-aliasing
configure: using CFLAGS=-O2 -fno-strict-aliasing
checking whether the C compiler still works... yes
checking how to run the C preprocessor... gcc -E
checking allow thread-safe client libraries... no
checking whether to build with Tcl... no
checking whether to build with Tk... no
checking whether to build Perl modules... no
checking whether to build Python modules... no
checking whether to build Java/JDBC tools... no
checking whether to build with Kerberos 4 support... no
checking whether to build with Kerberos 5 support... no
checking whether to build with PAM support... no
checking whether to build with Rendezvous support... no
configure: using CPPFLAGS=-D_GNU_SOURCE
configure: using LDFLAGS=
checking for gawk... gawk
checking for flex... /usr/bin/flex
checking whether ln -s works... yes
checking for ld used by GCC... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for ranlib... ranlib
checking for lorder... lorder
checking for tar... /bin/tar
checking for strip... strip
checking whether it is possible to strip libraries... yes
checking for bison... bison -y
checking for perl... /usr/bin/perl
checking for main in -lbsd... no
checking for setproctitle in -lutil... no
checking for main in -lm... yes
checking for main in -ldl... yes
checking for main in -lnsl... yes
checking for main in -lsocket... no
checking for main in -lipc... no
checking for main in -lIPC... no
checking for main in -llc... no
checking for main in -ldld... no
checking for main in -lld... no
checking for main in -lcompat... no
checking for main in -lBSD... no
checking for main in -lgen... no
checking for main in -lPW... no
checking for main in -lresolv... yes
checking for library containing getopt_long... none required
checking for main in -lunix... no
checking for library containing crypt... -lcrypt
checking for library containing fdatasync... none required
checking for shmget in -lcygipc... no
checking for readline... no
configure: error: readline library not found
If you have readline already installed, see config.log for details on the
failure. It is possible the compiler isn't looking in the proper directory.
Use --without-readline to disable readline support.
root@bedda:/#
root@bedda:/#

TorpedoBlu
05-02-2005, 12:19
non sono un linuxista, come risolvo? ho installato knoppix 3.7 si HD, pensavo avesse tutte le librerie che servivano.
Mi hanno passato anche suse 9.1pro, la domanda è:

Non sono pratico con linux che faccio installo suse o metto apposto knoppix? (deve girare su Virtual Machine)

bionicoz
05-02-2005, 19:23
beh, te lo dice il configure stesso, o installi quelle librerie (http://www.linuxfromscratch.org/blfs/view/stable/general/readline.html) o lanci il configure con l'opzione --without-readline per non usarle...

TorpedoBlu
05-02-2005, 22:21
di che librerie si tratta? e come si installano?

TorpedoBlu
08-02-2005, 10:26
ok, ho installato la buona vecchia redHat in virtuale e postgres è stato installato perfettamente.... ora però iniziando la installazione di Apache in contro questo errore

questo è il comando suggerito dal prof di basi di dati

[root@localhost apache_1.3.33]# ./configure -prefix=/usr/local/apache --enablemodule=rewrite --enable-
shared=rewrite --enablemodule=proxy --enable-shared=proxy


questo l'output

Configuring for Apache, Version 1.3.33
+ using installation path layout: Apache (config.layout)
configure:Error: invalid option '-prefix=/usr/local/apache'
[root@localhost apache_1.3.33]#

TorpedoBlu
08-02-2005, 11:35
con apache ho risolto!!!! (c'erano errori di sintassi delle opzioni)

ultima cosa, come faccio a risolvere l'installazione di php???


[root@localhost php-4.3.10]# ./configure --with-apxs=/usr/bin/apxs --prefix=/usr/local/php-4.3.0 --with-pgsgl --
with-dom --with-dom-xslt --with-dom-exslt --with-configfile-
path=/etc/php/ --enable-track-vars --enable-trans-sid --enable-
ftp --with-wddx --enable-ctype --with-gd --with-freetype-dir=/usr -
-with-zlibdir=/usr/ --enable-gd-native-ttf --with-expathdir=/usr --with-imagemagick --with-recode
--with-gettext
creating 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 for ranlib... ranlib
checking whether ln -s works... yes
checking for mawk... no
checking for gawk... gawk
checking for bison... bison -y
checking bison version... 1.35 (ok)
checking for flex... flex
checking for yywrap in -lfl... yes
checking lex output file root... lex.yy
checking whether yytext is a pointer... yes
checking for working const... yes
checking flex version... 2.5.4 (ok)
checking for pthreads_cflags... -pthread
checking for pthreads_lib...

Configuring SAPI modules
checking for AOLserver support... no
checking for Apache 1.x module support via DSO through APXS...

Sorry, I was not able to successfully run APXS. Possible reasons:

1. Perl is not installed;
2. Apache was not compiled with DSO support (--enable-module=so);
3. 'apxs' is not in your path. Try to use --with-apxs=/path/to/apxs
The output of /usr/bin/apxs follows
./configure: line 3169: /usr/bin/apxs: No such file or directory
configure: error: Aborting

Maestro
08-02-2005, 11:41
controlla il path di apxs (non penso sia in /usr/bin) e controlla se perl e' installato (se hai usato rpm, rpm -aq | grep perl).

comunque per compilare i moduli per Apache (tra cui mod_php) mi pare tu debba abilitare anche il modulo "so".


Ciao

EDIT:

Rileggendo l'errore si vede proprio un not such file or directory, fai un find / -name apxs e se non trova niente, ricompila apache con --enable-module=so

TorpedoBlu
08-02-2005, 11:53
Non uso Perl, non so che cosa sia apsx


io ho copiato il comando ./configure dai lucidi del prof, non ho idea di cosa facciano tutte quelle opzioni

Non conosco bene linux, per miracolo sono riuscito ad installare apache e postgresql


mi date una mano?

Maestro
08-02-2005, 12:14
Devi ricompilare apache aggiungendo alla linea del configure --enable-module=so

Ovviamente poi devi ridare il make e il make install.

Una volta fatto fai un find / -name apxs e guarda in che path sta, penso sia in /usr/local/apache/bin/apxs, quindi modifica la linea del configure del PHP con --with-apxs=/path/di/apxs e continua con l'installazione.

Per quanto riguarda perl, come ho detto precedentemente, scrivi rpm -aq | grep perl da root e posta l'output.

Ciao

TorpedoBlu
08-02-2005, 12:38
ma io non ho bisogno di perl, devo installarlo per forza?

Maestro
08-02-2005, 13:09
direi di sì, di solito comunque con una installazione standard è installato.

TorpedoBlu
08-02-2005, 13:20
azz nella scelta dei pacchetti l'ho tolto pensando che tanto non mi serviva.... e ora?



cmq ho fatto come hai detto, ricompilato apache e lanciato quel comando:


[root@localhost apache_1.3.33]# find / -name apxs
/usr/local/apache/bin/apxs
/basi/apache_1.3.33/src/support/apxs


quale dei 2 path scelgo? boh il primo

alla fine il ./configure va a buon fine, il make mi da un codice lunghissimo che finisce con:


gregation.lo ext/standard/sha1.lo ext/tokenizer/tokenizer.lo
ext/xml/xml.lo ext/xml/expat/xmlparse.lo ext/xml/expat/xmlrole.lo
ext/xml/expat/xmltok.lo TSRM/TSRM.lo TSRM/tsrm_strtok_r.lo
TSRM/tsrm_virtual_cwd.lo main/main.lo main/snprintf.lo
main/spprintf.lo main/php_sprintf.lo main/safe_mode.lo
main/fopen_wrappers.lo main/alloca.lo main/php_scandir.lo
main/php_ini.lo main/SAPI.lo main/rfc1867.lo
main/php_content_types.lo main/strlcpy.lo main/strlcat.lo
main/mergesort.lo main/reentrancy.lo main/php_variables.lo
main/php_ticks.lo main/streams.lo main/network.lo
main/php_open_temporary_file.lo main/php_logos.lo
main/output.lo main/memory_streams.lo main/user_streams.lo
Zend/zend_language_parser.lo Zend/zend_language_scanner.lo
Zend/zend_ini_parser.lo Zend/zend_ini_scanner.lo
Zend/zend_alloc.lo Zend/zend_compile.lo
Zend/zend_constants.lo Zend/zend_dynamic_array.lo
Zend/zend_execute_API.lo Zend/zend_highlight.lo
Zend/zend_llist.lo Zend/zend_opcode.lo Zend/zend_operators.lo
Zend/zend_ptr_stack.lo Zend/zend_stack.lo
Zend/zend_variables.lo Zend/zend.lo Zend/zend_API.lo
Zend/zend_extensions.lo Zend/zend_hash.lo Zend/zend_list.lo
Zend/zend_indent.lo Zend/zend_builtin_functions.lo
Zend/zend_sprintf.lo Zend/zend_ini.lo Zend/zend_qsort.lo
Zend/zend_multibyte.lo Zend/zend_strtod.lo
Zend/zend_execute.lo sapi/cli/php_cli.lo sapi/cli/getopt.lo
main/internal_functions_cli.lo -lcrypt -lcrypt -lresolv -lm -ldl -lnsl -
lcrypt -lcrypt -o sapi/cli/php
ext/mysql/libmysql/my_tempnam.o: In function `my_tempnam':
/basi/php-4.3.10/ext/mysql/libmysql/my_tempnam.c:115: the use
of `tempnam' is dangerous, better use `mkstemp'


Build complete.

(It is safe to ignore warnings about tempnam and tmpnam).



il make install


Installing PHP SAPI module: cgi
Installing PHP CGI into: /usr/local/bin/
Installing PEAR environment: /usr/local/lib/php/
[PEAR] Archive_Tar - installed: 1.1
[PEAR] Console_Getopt - installed: 1.2
[PEAR] PEAR - installed: 1.3.2
Wrote PEAR system config file at: /usr/local/etc/pear.conf
You may want to add: /usr/local/lib/php to your php.ini include_path
[PEAR] DB - installed: 1.6.2
[PEAR] HTTP - installed: 1.2.2
[PEAR] Mail - installed: 1.1.3
[PEAR] Net_SMTP - installed: 1.2.6
[PEAR] Net_Socket - installed: 1.0.1
[PEAR] XML_Parser - installed: 1.0.1
[PEAR] XML_RPC - installed: 1.1.0
Installing build environment: /usr/local/lib/php/build/
Installing header files: /usr/local/include/php/
Installing helper programs: /usr/local/bin/
program: phpize
program: php-config
program: phpextdist



cosa sbaglio ancora?? :muro:

Maestro
08-02-2005, 14:15
niente, non c'e' nessun errore.


ext/mysql/libmysql/my_tempnam.o: In function `my_tempnam':
/basi/php-4.3.10/ext/mysql/libmysql/my_tempnam.c:115: the use
of `tempnam' is dangerous, better use `mkstemp'


Build complete.

(It is safe to ignore warnings about tempnam and tmpnam).


In pratica dice che la compilazione è terminata, e che è sicuro ignorare errori relativi a tempnam e tmpnam (gli unici erorri).

TorpedoBlu
08-02-2005, 14:41
ora come faccio a far funzionare apache con php? il mio prof scrive sui lucidi

Configurazione di Apache per il supporto al
PHP
– File httpd.conf
• LoadModule php4_module libexec/libphp4.so
• AddModule mod_php4.c
• AddType application/x-httpd-php .php
• DirectoryIndex index.html index.php

ma non capisco, poi mette altra roba:

Configurazione PHP (php.ini)
– La sua posizione puo’ essere decisa in
compilazione (–with-config-file-path)
– Permette di configurare a runtime il
comportamento dell’interprete
– Alcuni parametri possono essere modificati a
seconda delle esigenze per ogni script con la
funzione ini_set()
– E’ possibile modificare alcuni parametri anche
con direttive Apache.




L'ultimo sforzo che ci sono quasi! please!

Maestro
08-02-2005, 14:53
Modifica il file /usr/local/apache/conf/httpd.conf e aggiungi:


LoadModule php4_module libexec/libphp4.so
AddModule mod_php4.c


dopo i commenti relativi alla sezione Dynamic Shared Object. Se usi nano premi CTRL+W e scrivi DSO, poi scrivi le righe appena finita la sezione dei commenti (che iniziano con #).

Poi modifica la DirectoryIndex aggiungendo index.php

Per associare i files php al mod_php cerca AddType e aggiungi


AddType application/x-httpd-php .php


In ultimo scrivi ls -al /etc/php/php.ini per vedere se il file e' stato scritto, se dice 'No such file or directory' scrivi mkdir /etc/php e fai find / -name php.ini*, quindi fai cp /path/completo/php.ini /etc/php/php.ini

TorpedoBlu
08-02-2005, 15:00
Originariamente inviato da Maestro
Modifica il file /usr/local/apache/conf/httpd.conf e aggiungi:


LoadModule php4_module libexec/libphp4.so
AddModule mod_php4.c

dopo i commenti relativi alla sezione Dynamic Shared Object.

perdona la mia cretinaggine, ma non capisco dove devo inserire queste due righe


Originariamente inviato da Maestro
Se usi nano premi CTRL+W e scrivi DSO, poi scrivi le righe appena finita la sezione dei commenti (che iniziano con #).

non capisco se questo lo devo fare prima o dopo aver inserito le 2 stringhe di cui sopra, e poi... cos'è nano??


Originariamente inviato da Maestro
Poi modifica la DirectoryIndex aggiungendo index.php.


anche questo, dove lo trovo? con vi è dura...

Maestro
08-02-2005, 15:19
Installa nano o pico e potrai usare CTRL+W e inserire la stringa per effettuarne la ricerca dentro il file, così potrai trovare facilmente il testo.



LoadModule php4_module libexec/libphp4.so
AddModule mod_php4.c


va inserito dopo


#
# Dynamic Shared Object (DSO) Support
#
# To be able to use the functionality of a module which was built as a DSO you
# have to place corresponding `LoadModule' lines at this location so the
# directives contained in it are actually available _before_ they are used.
# Please read the file README.DSO in the Apache 1.3 distribution for more
# details about the DSO mechanism and run `apache -l' for the list of already
# built-in (statically linked and thus always available) modules in your apache
# binary.
#


o simile, non e' completamente uguale perchè faccio riferimento ad una versione binaria di Apache.

Per quanto riguarda DirectoryIndex c'e' sicuramente una voce con index.htm e simili, basta aggiungere alla fine index.php

Per AddType application/x-httpd-php .php cerca ad esempio AddType application/x-tar .tgz e aggiungi quanto riguarda PHP in una linea precedente o successiva.

Se hai problemi allega httpd.conf che lo modifico e riallego.

TorpedoBlu
08-02-2005, 19:49
allora ho fatto le modifiche, poi non c'era il file php.ini e l'ho trovato e copiato.

ho lanciato il server ma....

[root@localhost root]# /usr/local/apache/bin/apachectl start

Syntax error on line 207 of /usr/local/apache/conf/httpd.conf:
Cannot load /usr/local/apache/libexec/libphp4.so into
server: /usr/local/apache/libexec/libphp4.so: cannot open shared object file: No such file or directory
/usr/local/apache/bin/apachectl start: httpd could not be started



in allegato c'è il mio file php.ini compresso in .rar

Maestro
08-02-2005, 20:11
Fai un find / -name libphp4.so e riporta il path che ti indica.

TorpedoBlu
08-02-2005, 20:16
cerca meno di un secondo e non lo trova....


:cry:

Maestro
08-02-2005, 20:27
Sembra che mod_php non sia installato:

Entra nella cartella dei sorgenti di php 4.3.10 e dai:


./configure --with-apxs=/usr/local/apache/bin/apxs \
--with-pgsgl --with-dom --with-dom-xslt \
--with-dom-exslt --with-configfile-path=/etc/php/ \
--enable-track-vars --enable-trans-sid \
--enable-ftp --with-wddx --enable-ctype \
--with-gd --with-freetype-dir=/usr --with-zlibdir=/usr/ \
--enable-gd-native-ttf --with-expathdir=/usr \
--with-imagemagick --with-recode --with-gettext


Poi:


make && make install


Così dovrebbe compilare ed installare mod_php usando l'apxs del tuo Apache.

TorpedoBlu
08-02-2005, 20:29
ma le "\" a cosa servono???

TorpedoBlu
08-02-2005, 20:40
ancora errori


checking whether to enable DBA... no
checking for GDBM support... no
checking for NDBM support... no
checking for Berkeley DB4 support... no
checking for Berkeley DB3 support... no
checking for Berkeley DB2 support... no
checking for DBM support... no
checking for CDB support... no
checking for INI File support... no
checking for FlatFile support... no
checking whether to enable DBA interface... no
checking whether to enable dbase support... no
checking whether to enable dbx support... no
checking whether to enable direct I/O support... no
checking for DOM support... yes
checking for libxml version... >= 2.4.14
configure: error: DOMXML requires ZLIB. Use --with-zlib-dir=<DIR>



dice di usare --with-zlib-dir, io ho scritto invece --with-zlibdir nel ./configure come mi hai postato tu.

Maestro
08-02-2005, 20:53
\ server per andare a capo, in pratica far considerare anche le linee dopo.

Per quanto riguarda zlib hai ragione, mi sono dimenticato di editarlo quando l'ho dato in pasto a Gedit per sistemare gli spazi e aggiungere gli \ .

Cambia --with-zlibdir=/usr/ con --with-zlib-dir=/usr

TorpedoBlu
08-02-2005, 20:59
checking for the location of libpng... no
checking for the location of libXpm... no
checking for FreeType 1.x support... no
checking for FreeType 2... /usr
checking for T1lib support... no
checking whether to enable truetype string function in GD... yes
checking whether to enable JIS-mapped Japanese font support in GD... no
checking for fabsf... yes
checking for floorf... yes
If configure fails try --with-jpeg-dir=<DIR>
configure: error: libpng.(a|so) not found.

altro cazzuto errore...........

Maestro
08-02-2005, 21:04
Su Fedora Core 3 ho queste librerie:


libpng-1.2.8-1.fc3
libpng-devel-1.2.8-1.fc3
libpng10-devel-1.0.18-1.fc3
libpng-debuginfo-1.2.8-1.fc3
libpng10-1.0.18-1.fc3
libpng10-debuginfo-1.0.18-1.fc3


installa il corrispettivo libpng* per la tua distribuzione oppure rimuovi queste linee dal configure:


--enable-gd --enable-gd-native-ttf --with-imagemagick


(forse anche altre, ma a prima vista pare di no)

se non fai uso di funzioni grafiche tramite PHP non servono.

TorpedoBlu
08-02-2005, 21:08
quali possono essere le funzioni grafiche di php? devo sviluppare un'applicazione web per l'università, deve utilizzare php e postgresql e deeve gestire il gioco del fantacalcio.

TorpedoBlu
08-02-2005, 21:14
tolto
--with-gd --enable-gd-native-ttf --with-imagemagick



configure: error: Can not find recode.h anywhere under yes /usr/local /usr /opt.



ho tolto --with-recode il config ha funzionato, ho fatto una minkiata? mi sa di si visto che il make mi da:

nal_functions_cli.lo -lcrypt -lcrypt -lpq -lexslt -lxsltbreakpoint -
lxml2 -lxslt -lz -lz -lresolv -lm -ldl -lnsl -lxml2 -lz -lm -lcrypt -lcrypt -o sapi/cli/php
ext/ctype/ctype.lo: file not recognized: File truncated
collect2: ld returned 1 exit status
make: *** [sapi/cli/php] Error 1
[root@localhost php-4.3.10]#

PiloZ
08-02-2005, 22:32
olaz, ho seguito tutta la discussione e mi viene spontaneo chiedere una cosa:
ma almeno php4 non puoi installarlo con un semplice rpm?
se devo essere sincero l'ultimo errore non è semplice da risulvere o meglio non mi è ben chiaro.
dicevi che da knippix sei passato a red hat allora si protrebbe provare no :confused:

PiloZ
08-02-2005, 22:46
che red hat stai usando?
cercando php4 quà:
http://rpm.pbone.net/index.php3/stat/2/simple/2
ne saltano fuori diversi pacchetti sia per fedora che per red hat :)

TorpedoBlu
09-02-2005, 07:57
sto usando redhat, vorrei poter compilare anche php.... se non c'è + scampo pacchetti.

PiloZ
09-02-2005, 08:54
non sono in grado di risolvere quel problema :(
se il tuo docente non ti ha dato stringe aggiuntive come per l'apache da usare nella compilazione secondo me a sto punto ti conviene metterti l'anima in pace e mettere un rpm che sempre di php è :)
altrimenti si aspetta qualcun'altro che sappia qualcosa ;)

VICIUS
09-02-2005, 09:38
Originariamente inviato da TorpedoBlu

nal_functions_cli.lo -lcrypt -lcrypt -lpq -lexslt -lxsltbreakpoint -
lxml2 -lxslt -lz -lz -lresolv -lm -ldl -lnsl -lxml2 -lz -lm -lcrypt -lcrypt -o sapi/cli/php
ext/ctype/ctype.lo: file not recognized: File truncated
collect2: ld returned 1 exit status
make: *** [sapi/cli/php] Error 1
[root@localhost php-4.3.10]#


Sembra che manchi un pezzo del file. prova a dare un make distclean. rifare il ./configure --tue-opzioni e poi a rilanciare il make. ma sopratutto incrocia le dita :D

Comunque secondo me se ci parli con il professore riesci a convincerlo che installare postgres/apache/php usando pacchetti rpm va benissimo. Se devi fare un piccolo progettino per basi di dati come ho fatto io qualche tempo fa per l'uni imparare a compilare apache e php non serve a niente. Piu che altro devi impratichirti con schemi E/R, modelli relazionali, SQL ecc. ecc.

ciao ;)

Maestro
09-02-2005, 11:51
Le funzioni grafiche potrebbe essere un resize di immagini od altro, ma di solito, almeno per quanto mi riguarda, si usa il binario di ImageMagick.

Per quanto riguarda l'errore, riprova a ridare il configure dopo aver dato un bel make distclean come ha detto VICIUS e assicurati con /usr/local/apache/bin/httpd -l che sia presente "mod_so".

Se non lo e' ricompila Apache aggiungendo --enable-module=so alla fine della tua linea di configure.

TorpedoBlu
09-02-2005, 20:16
ragazzi ho installato anche php, il server prima delle modifiche funzionava, ora ho fatto le modifiche a httpd.conf e il server non parte:

[root@localhost htdocs]# /usr/local/apache/bin/apachectl start
Syntax error on line 207 of /usr/local/apache/conf/httpd.conf:
Cannot load /usr/local/apache/libexec/libphp4.so into
server: /usr/local/apache/libexec/libphp4.so: cannot open shared object file: No such file or directory
/usr/local/apache/bin/apachectl start: httpd could not be started


ed effettivamente il risultato di

find / -name libphp4.so è
/usr/lib/httpd/modules/libphp4.so

Maestro
09-02-2005, 20:21
ridai find / -name libphp4.so

Se non dovesse riportare niente e hai dato make distclean && ./configure --opzioni-varie && make && make install nella directory del PHP allega configure.log

TorpedoBlu
09-02-2005, 20:26
ed effettivamente il risultato di

find / -name libphp4.so è
/usr/lib/httpd/modules/libphp4.so
ma non /usr/local/apache/libexec/libphp4.so

Maestro
09-02-2005, 20:41
se e' quello "giusto", dovrebbe bastare copiarlo. prova un


cp /usr/lib/httpd/modules/libphp4.so /usr/local/apache/libexec/libphp4.so

TorpedoBlu
10-02-2005, 07:44
provato ecco il risultato


[root@localhost root]# cp /usr/lib/httpd/modules/libphp4.so /usr/local/apache/libexec/libp
hp4.so
[root@localhost root]# /usr/local/apache/bin/apachectl start
Syntax error on line 207 of /usr/local/apache/conf/httpd.conf:
Cannot load /usr/local/apache/libexec/libphp4.so into
server: /usr/local/apache/libexec/libphp4.so: undefined symbol:
apr_bucket_type_file
/usr/local/apache/bin/apachectl start: httpd could not be started
[root@localhost root]#

Maestro
10-02-2005, 10:44
non è quello, hai per caso installato PHP tramite RPM?

Comunque allega configure.log contenuto nella directory php-4.3.10 e incolla l'output di /usr/local/apache/bin/httpd -l

TorpedoBlu
10-02-2005, 11:50
ma ogni volta che lancio i ./configure make e make install sovrascrive il risultato?

Maestro
10-02-2005, 11:59
sì.

in teoria per evitare eventuali problemi dai make distclean && ./configure --tutte-le-opzioni && make && make install così ricompila TUTTO da sorgenti e non da uno stadio intermedio.

E' probabile comunque che dipenda da Apache, come ho detto nell'altro post.

TorpedoBlu
10-02-2005, 12:45
FUNZIONA!!! HO MESSO IL FILE PHP CON PHPINFO() E FUNZIONA, GRAZIE A TUTTI!!!


ora devo iniziare a smanettare con SQL e php, ma tutta la roba che metto nel servfer deve andare nella cartella dove ho messo index.php???



PS: domanda stupida, come si spegne il sistema in modalità testuale? fino ad ora lo spengo entrando in modalità grafica e chiudendo la sessione, in modalità testuale da riga di comando shutdown now non funziona e mi passa a level 1

Maestro
10-02-2005, 12:56
sì, puoi, se credi sia meglio, cambiare la direttiva DocumentRoot (se hai usato il prefix /usr/local/apache dovrebbe essere /usr/local/apache/htdocs) con una directory che abbia i permessi 755 o 750 con proprietario il tuo utente e gruppo di apache (per vedere qual è grep Group /usr/local/apache/conf/httpd.conf, dovrebbe riportarti, tra le altre righe, anche Group www-data, Group apache, Group httpd, Group nobody o simile).

I comandi per creare la directory e settare i permessi corretti sono:


mkdir /nomedirectory
chmod 755 /nomedirectory


oppure


mkdir /nomedirectory
chmod 750 /nomedirectory
chown utente:gruppo-apache /nomedirectory


Se /nomedirectory non e' sotto la home dell'utente il comando deve essere fatto da root, stessa cosa per il chown per il cambio di gruppo.

Per spegnere il PC scrivi shutdown -h now da root.

TorpedoBlu
10-02-2005, 13:06
ho installato tutto come root, e quando ho creato postgres ho creato l'utente postgres, quale utente è proprietario di apache? posso creare un utente che sia amministratore del server e del database?? (lo so sono un po' confuso, ma in uni oltre a spiegarci la teoria delle basi di dati relazionali ci lasciano in alto mare)

Maestro
10-02-2005, 13:37
Per scrivere pagine web che richiamerai in seguito dal browser ti consiglio di aggiungere un utente non root, se non lo hai gia' fatto.

Non so che versione di RH tu abbia ma dovrebbe esserci adduser, che permette di aggiungere tramite domande, un utente. Scrivi ad esempio adduser torpedoblu, dai Invio e segui le domande a cui dovrai fornire una risposta.

La tua homedirectory sarà quindi /home/torpedoblu. Dall'utente "torpedoblu" scrivi, per sistemare i permessi (e aggiungere una directory apposita per la pubblicazione):


chmod 711 $HOME
mkdir $HOME/esercizi
chmod 755 $HOME/esercizi


Poi setta come DocumentRoot in httpd.conf /home/torpedoblu/esercizi e riavvia Apache con /usr/local/apache/bin/apachectl restart.

Potrai mettere, come utente torpedoblu, i tuoi files nella directory esercizi dentro la tua home (-> path completo: /home/torpedoblu/esercizi).

Per creare un utente amministratore del sistema ti consiglio semplicemente di usare root quando serve, e di usare un utente normale per le altre operazioni. Per fare lo 'switch' da un utente o l'altro scrivi su - nomeutente (se sei root non ti chiedera' password, al contrario ti verra' richiesta la password dell'utente in questione).


Se ricordo bene puoi creare il database con createdb nome, puoi usarlo con psql nome.

Per creare un utente con diritti limitati (anche per i DBMS e' consigliato NON usare root se non necessario) scrivi, sul terminale dove hai lanciato psql:


CREATE USER nomeutente WITH PASSWORD 'password'


Poi, per collegarti da shell al database prova con l'utente nomeutente scrivi psql -u prova e inserisci user e password.

[EDIT]
per quanto riguarda Apache, se setti 755 non hai bisogno di sapere che utente usa Apache, visto che e' world readable.

Se vuoi conoscere il Gruppo di Apache scrivi:


grep Group /usr/local/apache/htdocs/httpd.conf


e ti riportera' una linea con Group nomegruppo.

TorpedoBlu
10-02-2005, 15:30
allora prima cosa:
postgresql dovrebbe partire da ogni punto vero? invece il comando pgsql non va, dice bash command non found.... devo settare il path in qualche maniera immagino, ma non so come.....

TorpedoBlu
10-02-2005, 15:33
[postgres@localhost postgres]$ /usr/local/pgsql/bin/psql test
psql: could not connect to server: No such file or directory
Is the server running locally and accepting
connections on Unix domain socket "/tmp/.s.PGSQL.5432"?

Maestro
10-02-2005, 15:40
psql e' il client, non puo' funzionare se non avvii il demone.

Cerca con find / -name pg_ctl il path completo e digita:


/path/to/pgsql/bin/pg_ctl -D /tmp/data -l logfile start


Una volta dato questo comando, collegati con psql.

Per aggiungere nel path /usr/local/pgsql/bin modifica il file /etc/profile e cerca una riga di questo tipo:


PATH="/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games"


e falla diventare così:


PATH="/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games:/usr/local/pgsql/bin"


in pratica aggiungi : dopo l'ultimo path e scrivi il fullpath della directory bin di pgsql, prima delle virgolette.

Poi, per fargli rileggere il file lancia source /etc/profile oppure riloggati.

TorpedoBlu
10-02-2005, 16:01
il risultato di find / -name pg_ctl

/usr/local/pgsql/bin/pg_ctl

quindi abbiamo lanciato

[postgres@localhost postgres]$ /usr/local/pgsql/bin/pg_ctl -D /tmp/data -l logfile start
postmaster successfully started

poi pero per lanciare psql da lo stesso risultato di prima.

[postgres@localhost postgres]$ /usr/local/pgsql/bin/psql test
psql: could not connect to server: No such file or directory
Is the server running locally and accepting
connections on Unix domain socket "/tmp/.s.PGSQL.5432"?

TorpedoBlu
10-02-2005, 16:05
Originariamente inviato da Maestro

Per aggiungere nel path /usr/local/pgsql/bin modifica il file /etc/profile e cerca una riga di questo tipo:


PATH="/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games"


e falla diventare così:


PATH="/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games:/usr/local/pgsql/bin"




il contenuto del mio file /etc/profile è


# /etc/profile

# System wide environment and startup programs, for login setup
# Functions and aliases go in /etc/bashrc

pathmunge () {
if ! echo $PATH | /bin/egrep -q "(^|:)$1($|:)" ; then
if [ "$2" = "after" ] ; then
PATH=$PATH:$1
else
PATH=$1:$PATH
fi
fi
}

# Path manipulation
if [ `id -u` = 0 ]; then
pathmunge /sbin

Maestro
10-02-2005, 16:30
PATH=$PATH:$1: /usr/local/pgsql/bin
else
PATH=$1:$PATH:/usr/local/pgsql/bin
fi
fi


Modifica i due "PATH" così come sopra. Oppure cerca PATH in /etc/bashrc direttamente e fai la modifica lì.

TorpedoBlu
10-02-2005, 16:34
Originariamente inviato da TorpedoBlu
il risultato di find / -name pg_ctl

/usr/local/pgsql/bin/pg_ctl

quindi abbiamo lanciato

[postgres@localhost postgres]$ /usr/local/pgsql/bin/pg_ctl -D /tmp/data -l logfile start
postmaster successfully started

poi pero per lanciare psql da lo stesso risultato di prima.

[postgres@localhost postgres]$ /usr/local/pgsql/bin/psql test
psql: could not connect to server: No such file or directory
Is the server running locally and accepting
connections on Unix domain socket "/tmp/.s.PGSQL.5432"?



e questo?

TorpedoBlu
10-02-2005, 16:39
[postgres@localhost postgres]$ source /etc/profile
[postgres@localhost postgres]$ psql test
psql: could not connect to server: No such file or directory
Is the server running locally and accepting
connections on Unix domain socket "/tmp/.s.PGSQL.5432"?
[postgres@localhost postgres]$

Maestro
10-02-2005, 16:46
Non saprei, hai definito LD_LIBRARY_PATH ? Ad /etc/profile aggiungi in una nuova riga:


LD_LIBRARY_PATH=/usr/local/pgsql/lib


poi ridai il source /etc/profile e riavvia il demone


/usr/local/pgsql/bin/pg_ctl stop
/usr/local/pgsql/bin/pg_ctl -D /tmp/data -l logfile start


Prima di far questi ultimi comandi, accertati di aver effettuato chown -R postgres /usr/local/pgsql (da root) e di aver inizializzato il database
/usr/local/pgsql/bin/initdb -D /usr/local/pgsql/data (da utente postgres).

TorpedoBlu
10-02-2005, 16:55
ok funziona!!


[postgres@localhost postgres]$ /usr/local/pgsql/bin/postmaster -D /usr/local/pgsql/data
LOG: database system was shut down at 2005-02-10 17:55:01 CET
LOG: checkpoint record is at 0/9B7268
LOG: redo record is at 0/9B7268; undo record is at 0/0; shutdown TRUE
LOG: next transaction ID: 543; next OID: 17143
LOG: database system is ready
LOG: received fast shutdown request
LOG: shutting down
LOG: database system is shut down
[postgres@localhost postgres]$ psql test
Welcome to psql 7.4.6, the PostgreSQL interactive terminal.

Type: \copyright for distribution terms
\h for help with SQL commands
\? for help on internal slash commands
\g or terminate with semicolon to execute query
\q to quit

test=#


grazie mille di tutto non sapevo di dover comunicare tramite due terninali.
come faccio a sapere se il server apache vede postgres??

Maestro
10-02-2005, 18:36
Apache non "vede" Postgres, puoi lanciare pero' scripts PHP con le funzionalita' che hai compilati. Tra le diverse, hai abilitato il supporto a Postgres.

Metti dentro la cartella definita come DocumentRoot, un file test.php con il seguente testo:


<?PHP
// Variabili
$server = "127.0.0.1";
$port = "5432";
$db = "test";
$auth = "password";
$user = "postgres";
$passwd = "";

// Connessione
$connect = pg_Connect("host=$server port=$port dbname=$db ".
"user=$user password=$passwd authtype=$auth");
if (!$connect) {
echo "Problemi nella connessione.\n";
exit;
}
$value = pg_Exec($connect,"CREATE USER nomeutente WITH PASSWORD 'password';");

if (!$value) {
echo "Errore nella query richiesta.\n";
exit;
}
echo "Query eseguita con successo.\n";
pg_Close($connect);
?>


Poi richiamalo da browser, dovrebbe stamparti Query eseguita con successo, e dovrebbe creare l'utente 'nomeutente' con password 'password'.

Per altre informazioni su PHP+Postgres, penso che forse sia meglio postare su Programmazione, visto che c'entra poco con Linux.

TorpedoBlu
10-02-2005, 19:01
l'output è

Warning: pg_connect(): Unable to connect to PostgreSQL server: could not connect to server: Connection refused Is the server running on host "192.168.122.131" and accepting TCP/IP connections on port 5432? in /usr/local/apache/htdocs/prova.php on line 12
Problemi nella connessione.

Maestro
10-02-2005, 19:19
hai cambiato 127.0.0.1 ? prova a lasciarlo così.
Comunque scrivi netstat -nap | grep 5432 e incolla l'output.

Controlla anche in postmaster.init (cercalo con il solito find) che ci sia PGALLOWTCPIP=yes

Nel caso sia settato a no cambialo in yes, in caso sia assente aggiungilo per intero.

Dopo la modifica al file riavvia il demone con:


pg_ctl stop
pg_ctl -D /tmp/data -l logfile start

TorpedoBlu
10-02-2005, 21:21
prima di lanciare il demone non compariva nulla, dopo


[root@localhost root]# netstat -nap | grep 5432
unix 2 [ ACC ] STREAM LISTENING 2504 1078/postmaster /tmp/.s.PGSQL.5432


ma il file php non funziona..


in più find / -name postmaster.init non da risultati

TorpedoBlu
11-02-2005, 08:49
sono 2 giorni che ci sto dietro e non ne vengo a capo...

Maestro
11-02-2005, 12:28
Controlla anche postgresql.conf e cerca tcpip_socket.

Se e' settato a false o commentato modificalo così:


tcpip_socket = true


Con questo settaggio da me listena anche in TCP e così PHP ci si può collegare (a differenza di MySQL che puo' usare il socket, per Postgresql PHP puo solo collegarsi via TCP/IP)

TorpedoBlu
11-02-2005, 12:42
si ma il precedente file postmaster.init non c'è!

Maestro
11-02-2005, 12:45
postgresql.conf c'è? Nelle nuove versioni dovrebbe essere letto quello, con la sintassi relativa a tcp come indicata sopra ;)

TorpedoBlu
11-02-2005, 13:12
ho cambiato la password all'utente postgres e ora il messaggio del browser è:

Parse error: parse error, unexpected T_STRING in /usr/local/apache/htdocs/testconnessione.php on line 15

Maestro
11-02-2005, 13:20
cambia


$passwd = "";


con


$passwd = "passwordsettata";


dentro il file PHP.

allxxx
11-02-2005, 13:22
u

TorpedoBlu
11-02-2005, 13:24
Originariamente inviato da Maestro
cambia


$passwd = "";


con


$passwd = "passwordsettata";


dentro il file PHP.

l'ho fatto....

che diavolo vuol dire :
Parse error: parse error, unexpected T_STRING
in /usr/local/apache/htdocs/testconnessione.php on line 15

allxxx
11-02-2005, 13:25
ciao io sono un amico di torpedoblu stiam facendo l'installazione passo passo ieri sera eravamo uguali ma stamattina quando lancio il comando

[postgres@localhost postgres]$ /usr/local/pgsql/bin/postmaster -D /usr/local/pgsql/data
FATAL: pre-existing shared memory block (key 5432001, ID 196608) is still in use
HINT: If you're sure there are no old server processes still running, remove the shared memory block with the command "ipcrm", or just delete the file "/usr/local/pgsql/data/postmaster.pid".


ieri sera mi svolgeva regolarmente la sua funzione!!!

cosa devo fare cancellare il postmaster.pid ,ma poi si ricrea???
oppure se mi potete dire una sintassi per utilizzare correttamente la funzione ipcrm sarebbe meglio.

ciao allxxx

Maestro
11-02-2005, 13:29
allxxx: scrivi


/usr/local/pgsql/bin/pg_ctl stop
/usr/local/pgsql/bin/pg_ctl -D /tmp/data -l logfile start


probabilmente Postgres e' gia' avviato

Torpedoblu: assicurati di aver copiato correttamente il file PHP, e magari incolla la linea 15 di quel file, probabilmente hai dimenticato qualche apice o un punto e virgola.

Se non riesci a trovare la linea colpevole ricopia il codice PHP dell'altra pagina e riedita quello.

TorpedoBlu
11-02-2005, 13:37
ho creato un nuovo file php, ma purtroppo mi da lo stesso errore, il tuo codice è giusto?

Maestro
11-02-2005, 14:06
sì, a me non da errori. prova a risettare $passwd = ""; e vedere se così da solo errori relativi alla password.

allxxx
12-02-2005, 01:12
non riesco cavolo!!

allxxx
12-02-2005, 01:19
niente continua a venirmi scritto

Warning: pg_connect(): Unable to connect to PostgreSQL server: could not connect to server: Connection refused Is the server running on host "127.0.0.1" and accepting TCP/IP connections on port 5432? in /usr/local/apache/htdocs/test.php on line 12
Problemi nella connessione.

allxxx
12-02-2005, 01:24
test.php è questo:

<?PHP
// Variabili
$server = "127.0.0.1";
$port = "5432";
$db = "test";
$auth = "password";
$user = "postgres";
$passwd = "alessandro";

// Connessione
$connect = pg_Connect("host=$server port=$port dbname=$db ".
"user=$user password=$passwd authtype=$auth");
if (!$connect) {
echo "Problemi nella connessione.\n";
exit;
}
$value = pg_Exec($connect,"CREATE USER nomeutente WITH PASSWORD 'password';");

if (!$value) {
echo "Errore nella query richiesta.\n";
exit;
}

la riga 12 è questa

"user=$user password=$passwd authtype=$auth");

ma authtype= auth e auth = "password" è giusto??

allxxx
12-02-2005, 01:49
questo è l'output di netstat -nap | grep 5432

[root@localhost htdocs]# netstat -nap | grep 5432
unix 2 [ ACC ] STREAM LISTENING 2649 1316/postmaster /tmp/.s.PGSQL.5432
unix 3 [ ] STREAM CONNECTED 4219 1958/postgres: post /tmp/.s.PGSQL.5432

TorpedoBlu
12-02-2005, 08:46
inizio a pensare che la mia avventura nel server unix finirà tra poco...

maledizione

Maestro
12-02-2005, 13:46
Ma hai/avete modificato postgresql.conf cercando tcpip_socket e settandolo così?:


tcpip_socket = true


In caso sia assente aggiungilo alla fine, salva le modifiche e riavvia Postgres.

Una volta fatto questo, oltre a:
unix 2 [ ACC ] STREAM LISTENING 2649 1316/postmaster /tmp/.s.PGSQL.5432
unix 3 [ ] STREAM CONNECTED 4219 1958/postgres: post /tmp/.s.PGSQL$c = pg_Connect("host=$server port=$port dbname=$db user=$user password=$passwd authtype=$auth");


deve apparire una connessione di tipo TCP, sulla porta 5432.

Per quanto riguarda la linea, prova così:


$connect = pg_Connect("host=$server port=$port dbname=$db user=$user password=$passwd authtype=$auth");


e sostituisci _manualmente_ tutte le variabili.

$server va sostituito con l'IP dove listena il demone, 127.0.0.1 va bene

$port va sostituito con la porta TCP che deve essere 5432

$db deve essere sostituito con il DB da far selezionare al client. Fai psql test ad esempio, e cambia $db con test. E' importante che da linea di comando tu riesca a fare psql nomedatabase senza problemi, in caso di problemi usa l'utility createdb nomedatabase.


Esempi pratici:


postgres@karnak:~$ psql
psql (pg_wrapper): No database specified


Non e' stato specificato alcun database, ci viene comunicato un errore.


postgres@karnak:~$ psql test
psql: FATAL: il database "test" non esiste


E' stato selezionato un database, ma non esiste.


Soluzione:


postgres@karnak:~$ createdb test
CREATE DATABASE
postgres@karnak:~$ psql test
Welcome to psql 7.4.7, the PostgreSQL interactive terminal.

Type: \copyright for distribution terms
\h for help with SQL commands
\? for help on internal slash commands
\g or terminate with semicolon to execute query
\q to quit

test=#



$user va sostituito con postgres od altra utenza creata

$passwd va sostituita con la password dell'utente settato. Assicurarsi come prima che con psql -U utente -W nomedatabase venga richiesta la password ed inserirla. Se non da errori e' ok.

allxxx
12-02-2005, 17:48
nel file postgresql.conf ho cambiato da false a true

tcpip_socket = true

che era all'inizio del file!!

ok allora guarda il codice:

[root@localhost htdocs]# su - postgres
[postgres@localhost postgres]$ psql test2
psql: FATAL: database "test2" does not exist
[postgres@localhost postgres]$ createdb test2
CREATE DATABASE
[postgres@localhost postgres]$ psql test2
Welcome to psql 7.4.6, the PostgreSQL interactive terminal.

Type: \copyright for distribution terms
\h for help with SQL commands
\? for help on internal slash commands
\g or terminate with semicolon to execute query
\q to quit

test2=#


verifico che il data base test 2 non esiste lo creo e lo lancio!!!
e tutto ok!!
ascolta al posto di $auth cosa devo mettere???

allxxx
12-02-2005, 18:05
anche questo è giusto

[postgres@localhost postgres]$ psql -U postgres -W test2
Password:
Welcome to psql 7.4.6, the PostgreSQL interactive terminal.

Type: \copyright for distribution terms
\h for help with SQL commands
\? for help on internal slash commands
\g or terminate with semicolon to execute query
\q to quit

test2=#




ascolta al posto di $auth cosa devo mettere???

Maestro
12-02-2005, 19:59
Cambia authtype=$auth con authtype=password

Dopo aver fatto la modificata al file postgresql.conf dai questi comandi:


/usr/local/pgsql/bin/pg_ctl stop
/usr/local/pgsql/bin/pg_ctl -D /tmp/data -l logfile start


Cambia /tmp/data con la directory selezionata la prima volta che hai avviato il demone (o comunque settala come quando hai creato il db test2).

Se hai creato test2 al posto di test, fai le adeguate modifiche al file PHP.

Paolo-82
13-02-2005, 16:11
Ciao a tutti!
Ho bisogno di un aiutino anch'io.

Ho installato apache2 e php. Nell'installazione tutto ok, ma quando (dopo aver editato il file http.conf per aggiungere php), cerco di lanciare apache mi da questo errore:

root@darkstar:/home/paolo# apachectl start
Syntax error on line 234 of /usr/local/apache2/conf/httpd.conf:
Cannot load /usr/libexec/apache/libphp4.so into server: libmm.so.13: cannot open shared object file: No such file or directory
/usr/sbin/apachectl start: httpd could not be started
root@darkstar:/home/paolo#
La libreria libmm.so.13 non è presente nel mio sistema.
Uso Slackware.

Grazie e ciao!

allxxx
13-02-2005, 17:16
ecco, ho installato apache 1.3.3 e php 4 e postgres tutto su win.

Quali sono le direttive per far vedere postgres ad apache?

Maestro
13-02-2005, 17:40
Postgres non si interfaccia con Apache bensì con PHP o altri linguaggi che lo supportano. Per quanto riguarda la configurazione dei demoni e del linguaggio PHP su Windows, penso sia più adatta la sezione Windows o Programmazione.

Per l'errore di libmm, pare strano visto che lo fornisce Apache stesso. fai una ricerca con find / -name libmm.so* e se ritorna qualcosa fai un symlink verso libmm.so.13 altrimenti prova a reinstallare l'intero pacchetto.

Come sopra, se hai altri problemi apri un thread apposito.

allxxx
13-02-2005, 17:50
per chi è interessato continua qui:
http://forum.hwupgrade.it/showthread.php?s=&threadid=881138

Paolo-82
13-02-2005, 18:16
Originariamente inviato da Maestro
Per l'errore di libmm, pare strano visto che lo fornisce Apache stesso. fai una ricerca con find / -name libmm.so* e se ritorna qualcosa fai un symlink verso libmm.so.13 altrimenti prova a reinstallare l'intero pacchettoNon lo trova se faccio updatedb e locate. Comunque riprovo.