[Linux e php]Aiutatemi nell'installazione
Posted by maynard80 on 09-02-2005 08:17
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!!!!!!!!!!!!
Powered by: vbHome (lite) v3.8 and vBulletin v2.3.1
Copyright © 2000 - 2002 Jelsoft Enterprises Limited