paster

LAMP Server aufsetzen

Hallo Zusammen,

Versuche mir gerade Debian mit LAMP anzueignen.

Wichtig ist mir zunächst einmal das aufsetzen eines guten Web-Servers.

Ich hatte mal eine gute Forenanleitung allerdings ist mir diese abhanden gekommen. Derzeit acker ich diese hier durch.

Allerdings bekomme ich immer eine Fehlermeldung beim aktiveren meiner 000-default.conf Datei face-sad

Syntax error on line 219 of /etc/apache2/apache2.conf: Syntax error on line 48 of /etc/apache2/sites-enabled/000-default.conf: Expected </Directory> but saw </VirtualHost>


<VirtualHost *:80>
	# The ServerName directive sets the request scheme, hostname and port that
	# the server uses to identify itself. This is used when creating
	# redirection URLs. In the context of virtual hosts, the ServerName
	# specifies what hostname must appear in the request's Host: header to 
	# match this virtual host. For the default virtual host (this file) this
	# value is not decisive as it is used as a last resort host regardless.
	# However, you must set it for any further virtual host explicitly.
	# ServerName www.example.com

	ServerAdmin emailadresse@gmx.de
	ServerName foo.bar
	
	DocumentRoot /var/www/html

	# hinzugefügt zugriff 
	# alles verweigert von außen
	<Directory>
	    Order deny,allow
	    deny from all
  	</Directory>
	
	#webzugriff auf www erlaubt, ddos deny from ip
	<Directory var/www/html/>
	    Order allow,deny
	    allow from all
	    Options -Indexes FollowSymLinks
	    AllowOverride None
  	</Directory>
	
	# Available loglevels: trace8, ..., trace1, debug, info, notice, warn,
	# error, crit, alert, emerg.
	# It is also possible to configure the loglevel for particular
	# modules, e.g.
	#LogLevel info ssl:warn

	ErrorLog ${APACHE_LOG_DIR}/error.log
	LogLevel warn
	#loglevel warn hinzugefügt
	CustomLog ${APACHE_LOG_DIR}/access.log combined

	# For most configuration files from conf-available/, which are
	# enabled or disabled at a global level, it is possible to
	# include a line for only one particular virtual host. For example the
	# following line enables the CGI configuration for this host only
	# after it has been globally disabled with "a2disconf". 
	#Include conf-available/serve-cgi-bin.conf
</VirtualHost>

Weiß jemand den Bug ?

Oder kennt jemand eine bessere Anleitung. Web-Server aufzubauen ?

d.h Mehrere Domains hinzufügen. Erste CMS installieren etc...


Bin zu dank verbunden
Auf Facebook teilen
Auf X (Twitter) teilen
Auf Reddit teilen
Auf Linkedin teilen

Content-ID: 304783

Url: https://administrator.de/forum/lamp-server-aufsetzen-304783.html

Ausgedruckt am: 06.07.2025 um 08:07 Uhr

BirdyB
Lösung BirdyB 19.05.2016 aktualisiert um 00:12:09 Uhr
Hi,

Ich glaube in Zeile 18 fehlt die Angabe des Verzeichnisses...
Trage dort einen Pfad ein und probiere es erneut...
Und in Zeile 24 fehlt der Slash vor "var/..."

Beste Grüße!


Berthold
Paster
Paster 31.05.2016 um 00:24:02 Uhr
thx, hat geklappt