Hallo!
Ich habe gestern mal versucht, phpsysinfo
(http://phpsysinfo.sourceforge.net/phpsysinfo/index.php) zu
installieren.
Dazu habe ich mir php-4.3.6 und apache_1.3.31 runtergeladen und dann
folgende Schritte ausgeführt:
QUICK INSTALL (Static)
$ cd apache_1.3.31
$ ./configure
$ cd ..
$ cd php-4.3.6
$ ./configure --with-mysql --with-apache=../apache_1.3.31
$ make
$ checkinstall
$ cd ../apache_1.3.31
$ ./configure --prefix=/www --activate-module=src/modules/php4/libphp4.a
$ make
$ checkinstall
$ cd ../php-4.3.6
$ cp php.ini-dist /usr/local/lib/php.ini
in die httpd.conf (es gibt einen Link
/usr/local/httpd/conf/httpd.conf -> /etc/httpd/httpd.conf ) habe ich
folgendes eingefügt:
Options Indexes -FollowSymLinks +Includes MultiViews ExecCGI
AllowOverride None
Order allow,deny
Allow from all
<IfModule mod_dav.c>
DAV On
</IfModule>
</Directory>
<IfModule mod_php4.c>
AddType application/x-httpd-php .php
AddType application/x-httpd-php .php4
AddType application/x-httpd-php-source .phps
</IfModule>
danach habe ich "rcapache restart" ausgeführt:
root@debian:/var/log/httpd > rcapache restart
Shutting down httpd done
Starting httpd [ LDAP ][Tue Jun 1 10:22:19 2004] [warn] NameVirtualHost *:443 has no VirtualHosts
[Tue Jun 1 10:22:19 2004] [warn] NameVirtualHost *:80 has no VirtualHosts
done
root@debian:/var/log/httpd > less error_log
root@debian:/var/log/httpd > tail -n 40 error_log
[Tue Jun 1 10:22:15 2004] [notice] caught SIGTERM, shutting down
[Tue Jun 1 10:22:20 2004] [warn] NameVirtualHost *:443 has no VirtualHosts
[Tue Jun 1 10:22:20 2004] [warn] NameVirtualHost *:80 has no VirtualHosts
[Tue Jun 1 10:22:21 2004] [notice] Apache/1.3.27 (Linux/SuSE) PHP-CGI/0.1b configured -- resuming normal operations
[Tue Jun 1 10:22:21 2004] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Tue Jun 1 10:22:21 2004] [notice] Accept mutex: sysvsem (Default: sysvsem)
[Tue Jun 1 10:22:25 2004] [error] (8)Exec format error: exec of /www/default/htdocs/phpsysinfo/index.php failed
[Tue Jun 1 10:22:25 2004] [error] [client 192.168.100.2] Premature end of script headers: /www/default/htdocs/phpsysinfo/index.php
root@debian:/var/log/httpd >
das komische daran ist, dass er den apache von vornherein ohne PHP4
Unterstützung lädt. Ich habe mal nachgeschaut, es gibt auch nirgends
eine libphp4.so, nur eine libphp4.a hätt ich anzubieten (sie liegt
immer noch NUR im /tmp/apache_1.3.31/src/modules/php4
root@debian:/tmp/apache_1.3.31/src/modules/php4 > dir
Makefile Makefile.tmpl libphp4.a mod_php4.c mod_php4.h mod_php4.o
Makefile.libdir libmodphp4.a libphp4.module mod_php4.exp mod_php4.lo
root@debian:/tmp/apache_1.3.31/src/modules/php4 >
was fehlt ihm hier? oder anders: wie kommt ich an die libphp4.so (dann
könnte ich das Ding dynamisch einbinden und nicht statisch, wie jetzt
-das klappt ja anscheinend doch nicht-)?
Danke für ein paar Hinweise!
cu
Stefan