datos/pagina:            

Datos:156

Titulo: Apache (Linux)
Contenido: Start apache:

# /usr/sbin/httpd -f /etc/httpd/httpd.conf

Directory wo die cgi-files und giff-files sich befinden sind definiert in
/etc/httpd/httpd.conf
Entry:
ServerRoot "/usr/local/httpd"

Apache configuration:
in /etc/httpd/srm.conf
Entry:
DocumentRoot

----
Example:
# Geändert (L.M)
#DocumentRoot "/usr/local/httpd/htdocs"

NameVirtualHost lheppc12


ServerName lheppc12.unibe.ch
DocumentRoot "/home/pc12/www"



ServerName www.schacher.lhep.unibe.ch
DocumentRoot "/home/pc12/schacher/3w_lib/www"



ServerName www.martinez.lhep.unibe.ch
DocumentRoot "/home/pc12/martinez/wwwserver"

----
Jeder Virtualhost directory muss eine Datei enthalten deren Name ist
"index.html"
Titulo: apache config nuc
Contenido: Cambiado en php.ini:

Descomentar
extension=gd.so

Titulo: Apache2
Contenido: 1)
In file /etc/php.ini die variable register_globals auf On setzen
zb.
register_globals = On

2)
In /etc/apache2/httpd.conf die zeile einfügen:
Include /etc/apache2/lhep.conf

Diese Datei enthält:

LoadModule php4_module /usr/lib/apache2-prefork/libphp4.so

SetOutputFilter PHP
SetInputFilter PHP

##-----------------------------------------------------------------------
NameVirtualHost *


ServerName www.lhep.unibe.ch
DocumentRoot "/home/lhep/www"

# ------------------------------------------------------------------

AuthUserFile /home/lhep/www/.htpasswd
AuthName "INTERNAL LHEP PAGE"
AuthType Basic

Require user lhep


# ------------------------------------------------------------------

AuthUserFile /home/lhep/www/.htpasswd
AuthName "NEWMASS PRIVATE"
AuthType Basic

Require user newmass


# ------------------------------------------------------------------

AllowOverride None
Options +ExecCGI -Includes
SetHandler cgi-script


# ------------------------------------------------------------------


AuthUserFile /home/lhep/www/.htpasswd
AuthName "ORPHEUS PRIVATE"
AuthType Basic

Require user orpheus


# ------------------------------------------------------------------
#

AllowOverride None
Options FollowSymLinks +ExecCGI +Indexes

#
# ------------------------------------------------------------------



Titulo: apt-get update.
Contenido: # dpkg --configure -a
# apt-get update
Página 2 de 39