Dsy Network www | forum | my | didattica | howto | wiki | el goog | stats | blog | dona | rappresentanti
Homepage
 Register   Calendar   Members  Faq   Search  Logout 
.dsy:it. : Powered by vBulletin version 2.3.1 .dsy:it. > Community > Tech > [Linux e php]Aiutatemi nell'installazione
  Last Thread   Next Thread
Author
Thread    Expand all | Contract all    Post New Thread    Post A Reply
Collapse
maynard80
.novellino.

User info:
Registered: Jul 2007
Posts: 3 (0.00 al dì)
Location: Milano (e non interland, tendo a precisare)
Corso: informatica
Anno: SESTO
Time Online: 12 Days, 14:28:38 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged
[Linux e php]Aiutatemi nell'installazione

ho installato Postgres, ho installato Apache, ho fatto poi le seguenti modifiche:
– File httpd.conf
• LoadModule php4_module libexec/libphp4.so
• AddModule mod_php4.c
• AddType application/x-httpd-php .php
• DirectoryIndex index.html index.php

ho copiato il file php.ini nella cartella /php

ho lanciato il server ma....

code:
[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


Sembra che mod_php non sia installato, allora

code:
./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-zlib-dir=/usr/ \ --enable-gd-native-ttf --with-expathdir=/usr \ --with-imagemagick --with-recode --with-gettext


ed ecco un altro errore

code:
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.


allora tolto
--with-gd --enable-gd-native-ttf --with-imagemagick


code:
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:
code:
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]#




aiutatemi!!!!!!!!!!!!

__________________
msn Messenger: giamma80 at tiscali.it
ATHENA !

09-02-2005 08:17
Click Here to See the Profile for maynard80 Click here to Send maynard80 a Private Message Find more posts by maynard80 Add maynard80 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Joda
.grande:maestro.

User info:
Registered: Mar 2003
Posts: 1126 (0.13 al dì)
Location: Milano
Corso: Dottore in Informatica
Anno: Primo TICOM
Time Online: 9 Days, 23:17:40 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

prova a leggerti questo

__________________
Homepage personale (English version)
c/o segreteria didattica via comelico

09-02-2005 09:10
Click Here to See the Profile for Joda Click Here to See the Blog of Joda Click here to Send Joda a Private Message Visit Joda's homepage! Find more posts by Joda Add Joda to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
maynard80
.novellino.

User info:
Registered: Jul 2007
Posts: 3 (0.00 al dì)
Location: Milano (e non interland, tendo a precisare)
Corso: informatica
Anno: SESTO
Time Online: 12 Days, 14:28:38 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

grazie mille ma no dice bene le opzioni da utilizzare

__________________
msn Messenger: giamma80 at tiscali.it
ATHENA !

09-02-2005 15:10
Click Here to See the Profile for maynard80 Click here to Send maynard80 a Private Message Find more posts by maynard80 Add maynard80 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Joda
.grande:maestro.

User info:
Registered: Mar 2003
Posts: 1126 (0.13 al dì)
Location: Milano
Corso: Dottore in Informatica
Anno: Primo TICOM
Time Online: 9 Days, 23:17:40 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Originally posted by maynard80
grazie mille ma no dice bene le opzioni da utilizzare


dai un occhiata nella sosaitis di Linux del dsy.

__________________
Homepage personale (English version)
c/o segreteria didattica via comelico

09-02-2005 17:19
Click Here to See the Profile for Joda Click Here to See the Blog of Joda Click here to Send Joda a Private Message Visit Joda's homepage! Find more posts by Joda Add Joda to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
maynard80
.novellino.

User info:
Registered: Jul 2007
Posts: 3 (0.00 al dì)
Location: Milano (e non interland, tendo a precisare)
Corso: informatica
Anno: SESTO
Time Online: 12 Days, 14:28:38 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

ragazzi ho installato anche php, il server prima delle modifiche funzionava, ora ho fatto le modifiche a httpd.conf e il server non parte:

code:
[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

__________________
msn Messenger: giamma80 at tiscali.it
ATHENA !

09-02-2005 20:21
Click Here to See the Profile for maynard80 Click here to Send maynard80 a Private Message Find more posts by maynard80 Add maynard80 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
maynard80
.novellino.

User info:
Registered: Jul 2007
Posts: 3 (0.00 al dì)
Location: Milano (e non interland, tendo a precisare)
Corso: informatica
Anno: SESTO
Time Online: 12 Days, 14:28:38 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

allora ora il server apache va, e va anche php o cmq ho provato phpinfo() e funziona.

Ho provato a fare la prima connessione al db postgres, ma... non va

code:
<?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); ?>


la risposta del server è stata

code:
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/prova.php on line 12 Problemi nella connessione.

__________________
msn Messenger: giamma80 at tiscali.it
ATHENA !

11-02-2005 09:17
Click Here to See the Profile for maynard80 Click here to Send maynard80 a Private Message Find more posts by maynard80 Add maynard80 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
ripe
- up in the mountains -

User info:
Registered: Jun 2002
Posts: 9469 (1.10 al dì)
Location: Cinisellooo
Corso: TICO TICO
Anno: Primo
Time Online: 61 Days, 2:33:39 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Off-Topic:

Cavolo... due giorni per installare php su Linux... e ancora non funziona! Efficiente, direi! :asd:

__________________
«And if you ever smell christian blood up in the mountains, then get your axe and chop them down!»

11-02-2005 09:54
Click Here to See the Profile for ripe Click Here to See the Blog of ripe Click here to Send ripe a Private Message Find more posts by ripe Add ripe to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Gusher
Splinter fun club

User info:
Registered: Jan 2003
Posts: 475 (0.06 al dì)
Location: Ovunque
Corso: Informatica
Anno: Done
Time Online: 15 Days, 22:06:15 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

[CUT]

Domanda banale: hai lanciato il demone che rimane in ascolto? :?

11-02-2005 10:04
Click Here to See the Profile for Gusher Click Here to See the Blog of Gusher Click here to Send Gusher a Private Message Find more posts by Gusher Add Gusher to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
CLod
JAILED

User info:
Registered: May 2002
Posts: 2688 (0.31 al dì)
Location: una delle 2 torri
Corso: Master ICT Sec
Anno: security
Time Online: 14 Days, 23:35:35 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Off-Topic:

apache e php non mi ha mai dato nessunissimo tipo di problema

__________________
Se il pugno e' chiuso la mano e' vuota. Solo se la mano e' aperta puoi possedere tutto

11-02-2005 10:06
Click Here to See the Profile for CLod Click Here to See the Blog of CLod Click here to Send CLod a Private Message Find more posts by CLod Add CLod to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
maynard80
.novellino.

User info:
Registered: Jul 2007
Posts: 3 (0.00 al dì)
Location: Milano (e non interland, tendo a precisare)
Corso: informatica
Anno: SESTO
Time Online: 12 Days, 14:28:38 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

parli del demone postgres? certo che lo ho lanciato

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

__________________
msn Messenger: giamma80 at tiscali.it
ATHENA !

11-02-2005 10:32
Click Here to See the Profile for maynard80 Click here to Send maynard80 a Private Message Find more posts by maynard80 Add maynard80 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
maynard80
.novellino.

User info:
Registered: Jul 2007
Posts: 3 (0.00 al dì)
Location: Milano (e non interland, tendo a precisare)
Corso: informatica
Anno: SESTO
Time Online: 12 Days, 14:28:38 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

niente sempre il solito errore nel browser..

__________________
msn Messenger: giamma80 at tiscali.it
ATHENA !

12-02-2005 11:07
Click Here to See the Profile for maynard80 Click here to Send maynard80 a Private Message Find more posts by maynard80 Add maynard80 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
casper
.grande:maestro.

User info:
Registered: Jan 2003
Posts: 510 (0.06 al dì)
Location: Terra (forse...)
Corso: Informatica
Anno: Laureato
Time Online: 5 Days, 14:45:28 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

nel file "postgresql.conf" devi decommentare la riga
tcpip_socket = false

e metterla a true

tcpip_socket = true

inoltre devi decommentare

port=5432


fai ripartire il servizio (non con il sighup...) e dovresti risolvere
:ciao:

__________________
...una parte della nostra mente è come un grande register file...i flip-flop master slave alimentati da un clock infallibile (le forti emozioni) memorizzano lo stato dei ricordi.....
...peccato che questo clock molte volte è incontrollabile...


My Blog ->http://yuriweb.wordpress.com

15-02-2005 07:39
Click Here to See the Profile for casper Click Here to See the Blog of casper Click here to Send casper a Private Message Find more posts by casper Add casper to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
maynard80
.novellino.

User info:
Registered: Jul 2007
Posts: 3 (0.00 al dì)
Location: Milano (e non interland, tendo a precisare)
Corso: informatica
Anno: SESTO
Time Online: 12 Days, 14:28:38 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

ottimo, sei l'unico davvero prezioso

__________________
msn Messenger: giamma80 at tiscali.it
ATHENA !

15-02-2005 11:01
Click Here to See the Profile for maynard80 Click here to Send maynard80 a Private Message Find more posts by maynard80 Add maynard80 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
maynard80
.novellino.

User info:
Registered: Jul 2007
Posts: 3 (0.00 al dì)
Location: Milano (e non interland, tendo a precisare)
Corso: informatica
Anno: SESTO
Time Online: 12 Days, 14:28:38 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

bene ho installato, peccato che l'unica che si è prestata a funzionare in virtual machine è stata redhat 8.0

__________________
msn Messenger: giamma80 at tiscali.it
ATHENA !

10-03-2005 11:39
Click Here to See the Profile for maynard80 Click here to Send maynard80 a Private Message Find more posts by maynard80 Add maynard80 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
All times are GMT. The time now is 11:20.    Post New Thread    Post A Reply
  Last Thread   Next Thread
Show Printable Version | Email this Page | Subscribe to this Thread | Add to Bookmarks

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is ON
 

Powered by: vBulletin v2.3.1 - Copyright ©2000 - 2002, Jelsoft Enterprises Limited
Mantained by dsy crew (email) | Collabora con noi | Segnalaci un bug | Archive | Regolamento | Licenze | Thanks | Syndacate
Pagina generata in 0.146 seconds (64.47% PHP - 35.53% MySQL) con 25 query.