AIUTO URGENTE SU PHP

Postate qui se avete consigli per migliorare i pacchetti disponibili in questo sito o se avete problemi con installazione, funzionamento o altro.

Moderatore: Staff

Regole del forum
1) Citare in modo preciso il nome del pacchetto.
2) Specificare se discussione/suggerimento o richiesta d'aiuto.
3) Leggere attentamente le risposte ricevute
4) Scrivere i messaggi con il colore di default, evitare altri colori.
5) Scrivere in Italiano o in Inglese, se possibile grammaticalmente corretto, evitate stili di scrittura poco chiari, quindi nessuna abbreviazione tipo telegramma o scrittura stile SMS o CHAT.
6) Appena registrati è consigliato presentarsi nel forum dedicato.

La non osservanza delle regole porta a provvedimenti di vari tipo da parte dello staff, in particolare la non osservanza della regola 5 porta alla cancellazione del post e alla segnalazione dell'utente. In caso di recidività l'utente rischia il ban temporaneo.
Rispondi
heavyblues
Linux 0.x
Linux 0.x
Messaggi: 38
Iscritto il: dom 29 mag 2005, 0:00

AIUTO URGENTE SU PHP

Messaggio da heavyblues »

Allora ragazzi configurazione :
php 5.1.1
apache 1.3.33


avevo su php4 , ho fatto removepkg php e ora ho installato con installpkg php5


devo include in apache php e vedo che infondo cè la direttiva dove carica il modulo di apache...
Include /etc/apache/mod_php.conf

quindi...do sul mio browser
http://192.168.1.105/index.php
dove in index.php ho dentro la funzione php.info e mi stampa
PHP Version 4.3.7
Aiuto per favore..sto a impazzi!

heavyblues
Linux 0.x
Linux 0.x
Messaggi: 38
Iscritto il: dom 29 mag 2005, 0:00

Re: AIUTO URGENTE SU PHP

Messaggio da heavyblues »

heavyblues ha scritto:Allora ragazzi configurazione :
php 5.1.1
apache 1.3.33


avevo su php4 , ho fatto removepkg php e ora ho installato con installpkg php5


devo include in apache php e vedo che infondo cè la direttiva dove carica il modulo di apache...
Include /etc/apache/mod_php.conf

quindi...do sul mio browser
http://192.168.1.105/index.php
dove in index.php ho dentro la funzione php.info e mi stampa
PHP Version 4.3.7
Aiuto per favore..sto a impazzi!
ho gia risolto...bastava editare il file mod_php.conf e farlo puntare a php5 e non il 5 com'era!

Avatar utente
bruno82
Linux 1.x
Linux 1.x
Messaggi: 148
Iscritto il: lun 16 mag 2005, 0:00
Località: Palemmmo
Contatta:

Messaggio da bruno82 »

Dal vangelo secondo Apache 1.3:
14. Edit your httpd.conf to load the PHP module. The path on the right hand
side of the LoadModule statement must point to the path of the PHP
module on your system. The make install from above may have already
added this for you, but be sure to check.

For PHP 4:

LoadModule php4_module libexec/libphp4.so

For PHP 5:

LoadModule php5_module libexec/libphp5.so

15. And in the AddModule section of httpd.conf, somewhere under the
ClearModuleList, add this:

For PHP 4:

AddModule mod_php4.c

For PHP 5:

AddModule mod_php5.c

16. Tell Apache to parse certain extensions as PHP. For example,
let's have Apache parse the .php extension as PHP. You could
have any extension(s) parse as PHP by simply adding more, with
each separated by a space. We'll add .phtml to demonstrate.

AddType application/x-httpd-php .php .phtml

It's also common to setup the .phps extension to show highlighted PHP
source, this can be done with:

AddType application/x-httpd-php-source .phps
Sei sicuro di aver inserito le righe giuste??

heavyblues
Linux 0.x
Linux 0.x
Messaggi: 38
Iscritto il: dom 29 mag 2005, 0:00

Messaggio da heavyblues »

bruno82 ha scritto:Dal vangelo secondo Apache 1.3:
14. Edit your httpd.conf to load the PHP module. The path on the right hand
side of the LoadModule statement must point to the path of the PHP
module on your system. The make install from above may have already
added this for you, but be sure to check.

For PHP 4:

LoadModule php4_module libexec/libphp4.so

For PHP 5:

LoadModule php5_module libexec/libphp5.so

15. And in the AddModule section of httpd.conf, somewhere under the
ClearModuleList, add this:

For PHP 4:

AddModule mod_php4.c

For PHP 5:

AddModule mod_php5.c

16. Tell Apache to parse certain extensions as PHP. For example,
let's have Apache parse the .php extension as PHP. You could
have any extension(s) parse as PHP by simply adding more, with
each separated by a space. We'll add .phtml to demonstrate.

AddType application/x-httpd-php .php .phtml

It's also common to setup the .phps extension to show highlighted PHP
source, this can be done with:

AddType application/x-httpd-php-source .phps
Sei sicuro di aver inserito le righe giuste??
si si ..adesso mi esce php5...ho il problema di mysql pero ora!!!!
nel senso che in windows ho sempre usato la mysqli.so mentre qui vedo che di suo cè la mysql.so ... non trovo da nessuna parte questa libreria..cosa devo fare???

Rispondi