require_once("top.htm"); ?>
################################################
#Anleitung zur Installation von PHP #
################################################
zuerst sollten alle dazu benötigten Programme beschafft
werden:
-php von www.php.net
alle benötigten files nach /opt/src kopieren, und dort entpacken
##################################################
Apache sollte unter /opt/apache installiert sein
(siehe apache-install)
##################################################
#php - installieren (benötigt mod_php) #
#nur noch php-4.0.x benutzen!! #
##################################################
cd /opt/src/
tar -xvzf php-4.0.x.tar.gz
cd php-4.0.x
#in /etc/profile hinzufügen (source /etc/profile)
./configure --with-apxs=/opt/apache/bin/apxs --with-xml
make
make install
Notwendige
Änderungen in etc/httpd/httpd.conf:
----------------------------------------------
LoadModule
und AddModule in httpd.conf einfügen:
#LoadModule-Zeile sollte schon vorhanden sein
LoadModule php4_module libexec/libphp4.so
AddModule mod_php4.c
#AddType
application/x-httpd-php .php
#AddType application/x-httpd-php-source .phps
abändern in:
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
Virtual
host anlegen:
---------------------
BSP:
NameVirtualHost forum
ServerAdmin
root@localhost.de
DocumentRoot /www/forum/htdocs
ServerName forum
# ErrorLog funktioniert leider nicht mit allen php-versionen
ErrorLog /www/forum/logs/project-error_log
CustomLog /www/forum/logs/project-access_log common
#ACHTUNG: Die ErrorLog-Zeile muß evtl. auskommentiert werden!!!
#Webderver
neu starten
/opt/apache/bin/apachectl stop
chown -R wwwrun:www /www/projektname
chown wwwrun:www /opt/apache/logs/
/opt/apache/bin/apachectl start
##################################################################
# FAQ #
##################################################################
bei der insatallation von php:
------------------------------
Q:
./configure bricht ab mit:
checking lex output file root... ./configure: lex: command
not found
configure: error: cannot find output from lex; giving
up
A: paket flex (Serie d) nachinstallieren