Pagina 1 di 1
AIUTO URGENTE SU PHP
Inviato: lun 23 gen 2006, 10:45
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!
Re: AIUTO URGENTE SU PHP
Inviato: lun 23 gen 2006, 10:52
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!
Inviato: lun 23 gen 2006, 10:54
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??
Inviato: lun 23 gen 2006, 11:08
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???