PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : apache



apraxas
01.05.03, 23:26
:mad:

hi !!!

ich habe zum testen einen apachen auf meinen fli4l router installiert. er läuft auch , aber er stellt meine webseite nicht dar.
standard fehlermeldung seit stunden
_(¯`·.You don't have permission to access /index.htm on this server..·´¯)_
oder You don't have permission to access /test.txt on this server.



wer kann mir sagen was ich tun muß damit der apache mit meine webseite läuft.

hat das was mit zugriffsrechte zu tun ??
muß man was in der httpd.conf machen ???

danke an allen schon mal DA/\/kE

oschoenknecht
02.05.03, 01:06
Was steht in der access.conf drin?

apraxas
02.05.03, 02:01
nichts ausser##
## access.conf -- Apache HTTP server configuration file
##

#
# This is the default file for the AccessConfig directive in httpd.conf.
# It is processed after httpd.conf and srm.conf.
#
# To avoid confusion, it is recommended that you put all of your
# Apache server directives into the httpd.conf file and leave this
# one essentially empty.
#

das..

oschoenknecht
02.05.03, 08:30
Dann poste noch mal die httpd.conf.... ;)

P3AC3MAK3R
02.05.03, 08:45
Für mich klingt das danach, daß der Apache zwar rennt, aber die Rechte für das Verzeichnis nicht passen, in dem die HTML-Files liegen.

Kann das jemand bestätigen?

apraxas
02.05.03, 10:52
hier die httpd.conf
bestimmt ist das ganz easy und eine kleinigkeit
danke für die hilfe
ServerType standalone
ServerRoot "/usr/local/apache"
LockFile /etc/apache/httpd.lock
PidFile /etc/apache/httpd.pid
ScoreBoardFile /etc/apache/httpd.scoreboard
Timeout 300
KeepAlive On
MaxKeepAliveRequests 100
KeepAliveTimeout 15
MinSpareServers 1
MaxSpareServers 5
StartServers 1
MaxClients 10
MaxRequestsPerChild 0
Port 80
User www
Group www
ServerAdmin apraxas@web.de
ServerName www.sillons.fli4l.net
DocumentRoot "/var/homesite"

LoadModule bandwidth_module libexec/mod_bandwidth.so
LoadModule agent_log_module libexec/mod_log_agent.so
LoadModule referer_log_module libexec/mod_log_referer.so
LoadModule info_module libexec/mod_info.so
LoadModule speling_module libexec/mod_speling.so
LoadModule userdir_module libexec/mod_userdir.so
LoadModule rewrite_module libexec/mod_rewrite.so
LoadModule proxy_module libexec/libproxy.so
LoadModule expires_module libexec/mod_expires.so
LoadModule usertrack_module libexec/mod_usertrack.so
<IfDefine SSL>
LoadModule ssl_module libexec/libssl.so
</IfDefine>
LoadModule gzip_module libexec/mod_gzip.so

ClearModuleList
AddModule mod_bandwidth.c
AddModule mod_env.c
AddModule mod_log_config.c
AddModule mod_log_agent.c
AddModule mod_log_referer.c
AddModule mod_mime.c
AddModule mod_negotiation.c
AddModule mod_status.c
AddModule mod_info.c
AddModule mod_include.c
AddModule mod_autoindex.c
AddModule mod_dir.c
AddModule mod_cgi.c
AddModule mod_asis.c
AddModule mod_imap.c
AddModule mod_actions.c
AddModule mod_speling.c
AddModule mod_userdir.c
AddModule mod_alias.c
AddModule mod_rewrite.c
AddModule mod_access.c
AddModule mod_auth.c
AddModule mod_proxy.c
AddModule mod_expires.c
AddModule mod_usertrack.c
AddModule mod_so.c
AddModule mod_setenvif.c
<IfDefine SSL>
AddModule mod_ssl.c
</IfDefine>
AddModule mod_gzip.c

<Directory />
Options All
AllowOverride All
AddHandler cgi-script .cgi .pl
</Directory>

AccessFileName .htaccess #+#+#+hier ist das problem ??????
<Files ~ "^\.ht">
Order allow,deny
Deny from all
Satisfy All
</Files>

UseCanonicalName On
DefaultType text/plain
HostnameLookups Off
ErrorLog /mnt/log/apache_error_log
LogLevel warn
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
CustomLog /mnt/log/apache_access_log combined
ServerSignature On

<IfDefine SSL>
AddType application/x-x509-ca-cert .crt
AddType application/x-pkcs7-crl .crl
</IfDefine>

<IfModule mod_bandwidth.c>
BandWidthDataDir /mnt/apache
BandWidthModule Off
BandWidthPulse 2000000
BandWidth all 4096
LargeFileLimit 200 3072
LargeFileLimit 1024 2048
MaxConnection 0
MinBandWidth all 0
</IfModule>

<IfModule mod_ssl.c>
SSLPassPhraseDialog builtin
SSLSessionCache dbm:/etc/apache/logs/ssl_scache
SSLSessionCacheTimeout 300
SSLMutex file:/etc/apache/ssl_mutex
SSLRandomSeed startup builtin
SSLRandomSeed connect builtin
SSLLog /etc/apache/ssl_engine_log
SSLLogLevel info
</IfModule>

<IfModule mod_gzip.c>
mod_gzip_on Yes
mod_gzip_can_negotiate Yes
mod_gzip_static_suffix .gz
mod_gzip_dechunk Yes
mod_gzip_add_header_count Yes
mod_gzip_send_vary Yes
mod_gzip_minimum_file_size 300
mod_gzip_maximum_file_size 500000
mod_gzip_maximum_inmem_size 60000
mod_gzip_keep_workfiles No
AddEncoding gzip .gz
mod_gzip_update_static No
mod_gzip_command_version '/mod_gzip_status'
mod_gzip_temp_dir /mnt/apache
mod_gzip_min_http 1000
mod_gzip_handle_methods GET POST
mod_gzip_item_exclude reqheader "User-agent: Mozilla/4.0[678]"
mod_gzip_item_include file \.phtml$
mod_gzip_item_exclude file \.js$
mod_gzip_item_exclude file \.css$
mod_gzip_item_include file \.html$
mod_gzip_item_include file \.shtml$
mod_gzip_item_include file \.htm$
mod_gzip_item_include file \.shtm$
mod_gzip_item_include file \.jsp$
mod_gzip_item_include file \.php$
mod_gzip_item_include file \.pl$
mod_gzip_item_include mime ^text/.*
mod_gzip_item_include mime ^application/x-httpd-php
mod_gzip_item_include mime ^httpd/unix-directory$
mod_gzip_item_include handler ^cgi-script$
mod_gzip_item_include handler ^server-status$
mod_gzip_item_include handler ^server-info$
mod_gzip_item_exclude mime ^image/.*
</IfModule>

<IfDefine SSL>
<VirtualHost _default_:443>
DocumentRoot "/var/homesite"
ServerAdmin apraxas@web.de
ServerName www.sillons.fli4l.net
ErrorLog /mnt/log/apache_error_log
TransferLog /etc/apache/logs/access_log
SSLEngine on
SSLCipherSuite ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSL v2:+EXP:+eNULL
SSLCertificateFile /etc/apache/ssl/ssl.crt/server.crt
SSLCertificateKeyFile /etc/apache/ssl/ssl.key/server.key
<Files ~ "\.(cgi|shtml|phtml|php3?)$">
SSLOptions +StdEnvVars
</Files>
<Directory "/usr/local/apache/cgi-bin">
SSLOptions +StdEnvVars
</Directory>
SetEnvIf User-Agent ".*MSIE.*" \
nokeepalive ssl-unclean-shutdown \
downgrade-1.0 force-response-1.0
CustomLog /mnt/log/apache_access_ssl_log "%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b"
</VirtualHost>
</IfDefine>

<IfModule mod_userdir.c>
UserDir public_html
</IfModule>

<IfModule mod_dir.c>
DirectoryIndex index.html index.htm index.php index.pl index.cgi index.php3
</IfModule>

<IfModule mod_mime.c>
TypesConfig /etc/apache/mime.types
</IfModule>

<IfModule mod_mime_magic.c>
MIMEMagicFile /etc/apache/magic
</IfModule>

<IfModule mod_alias.c>
Alias /icons/ "/usr/local/apache/icons/"
<Directory "/usr/local/apache/icons">
Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>

ScriptAlias /cgi-bin/ "/usr/local/apache/cgi-bin/"

<Directory "/usr/local/apache/cgi-bin">
AllowOverride None
Order allow,deny
Allow from all
</Directory>
</IfModule>

<IfModule mod_autoindex.c>
IndexOptions FancyIndexing
AddIconByEncoding (CMP,/icons/compressed.gif) x-compress x-gzip
AddIconByType (TXT,/icons/text.gif) text/*
AddIconByType (IMG,/icons/image2.gif) image/*
AddIconByType (SND,/icons/sound2.gif) audio/*
AddIconByType (VID,/icons/movie.gif) video/*
AddIcon /icons/binary.gif .bin .exe
AddIcon /icons/binhex.gif .hqx
AddIcon /icons/tar.gif .tar
AddIcon /icons/world2.gif .wrl .wrl.gz .vrml .vrm .iv
AddIcon /icons/compressed.gif .Z .z .tgz .gz .zip
AddIcon /icons/a.gif .ps .ai .eps
AddIcon /icons/layout.gif .html .shtml .htm .pdf
AddIcon /icons/text.gif .txt
AddIcon /icons/c.gif .c
AddIcon /icons/p.gif .pl .py
AddIcon /icons/f.gif .for
AddIcon /icons/dvi.gif .dvi
AddIcon /icons/uuencoded.gif .uu
AddIcon /icons/script.gif .conf .sh .shar .csh .ksh .tcl
AddIcon /icons/tex.gif .tex
AddIcon /icons/bomb.gif core
AddIcon /icons/back.gif ..
AddIcon /icons/hand.right.gif README
AddIcon /icons/folder.gif ^^DIRECTORY^^
AddIcon /icons/blank.gif ^^BLANKICON^^
DefaultIcon /icons/unknown.gif
AddDescription "GZIP compressed document" .gz
AddDescription "tar archive" .tar
AddDescription "GZIP compressed tar archive" .tgz
ReadmeName README
HeaderName HEADER
IndexIgnore .??* *~ *# HEADER* README* RCS CVS *,v *,t
</IfModule>

<IfModule mod_mime.c>
AddEncoding x-compress Z
AddEncoding x-gzip gz tgz
AddLanguage de .de
AddLanguage da .dk
AddLanguage nl .nl
AddLanguage en .en
AddLanguage et .ee
AddLanguage fr .fr
AddLanguage el .el
AddLanguage he .he
AddCharset ISO-8859-8 .iso8859-8
AddLanguage it .it
AddLanguage ja .ja
AddCharset ISO-2022-JP .jis
AddLanguage kr .kr
AddCharset ISO-2022-KR .iso-kr
AddLanguage nn .nn
AddLanguage no .no
AddLanguage pl .po
AddCharset ISO-8859-2 .iso-pl
AddLanguage pt .pt
AddLanguage pt-br .pt-br
AddLanguage ltz .lu
AddLanguage ca .ca
AddLanguage es .es
AddLanguage sv .sv
AddLanguage cz .cz
AddLanguage ru .ru
AddLanguage zh-tw .tw
AddLanguage tw .tw
AddCharset Big5 .Big5 .big5
AddCharset WINDOWS-1251 .cp-1251
AddCharset CP866 .cp866
AddCharset ISO-8859-5 .iso-ru
AddCharset KOI8-R .koi8-r
AddCharset UCS-2 .ucs2
AddCharset UCS-4 .ucs4
AddCharset UTF-8 .utf8
<IfModule mod_negotiation.c>
LanguagePriority de en da nl et fr el it ja kr no pl pt pt-br ru ltz ca es sv tw
</IfModule>
AddType application/x-tar .tgz
AddType text/html .shtml
AddHandler server-parsed .shtml

</IfModule>

<IfModule mod_setenvif.c>
BrowserMatch "Mozilla/2" nokeepalive
BrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-1.0 force-response-1.0
BrowserMatch "RealPlayer 4\.0" force-response-1.0
BrowserMatch "Java/1\.0" force-response-1.0
BrowserMatch "JDK/1\.0" force-response-1.0
</IfModule>

<IfDefine SSL>
Listen 80
Listen 443
</IfDefine>

oschoenknecht
02.05.03, 11:15
Hi,

ist sichergestellt, das Benutzer und Gruppe "www" (wie in Deiner access.conf deklariert) auch Besitzer des Verzeichnisses "/var/homesite" ist / sind? Sieht in diesem Sinne nach 'nem reinen Rechteproblem aus...

.htaccess ist meines Erachtens nicht das Problem, weil hier nur der Name für das htaccess-File definiert wird, ".htaccess" ist Standard. Liegt aber in /var/homesite vielleicht so eine Datei?

Gruß,

Olli

mowses
02.05.03, 11:16
Original geschrieben von P3AC3MAK3R
Für mich klingt das danach, daß der Apache zwar rennt, aber die Rechte für das Verzeichnis nicht passen, in dem die HTML-Files liegen.

Kann das jemand bestätigen?

Sieht für mich auch so aus.

@apraxas
Schau nach ob die Dateien Lesbar und die Verzecihnisse ausführ- und lesbar sind. Es sollte also so aussehen:
Verzeichnisse: drwxr-x-r-x
Datei: -rwx-r--r--

Sollten die Dateien der Gruppe gehören, der auch der apache angehört, kannst du die Rechte für "others" auch streichen...

Und am besten ist es denke ich, wenn du solche Configdateien anhängst und nicht komplett postest. ;-)

apraxas
02.05.03, 12:09
hi

_> mowses



Schau nach ob die Dateien Lesbar und die Verzecihnisse ausführ- und lesbar sind. Es sollte also so aussehen:
Verzeichnisse: drwxr-x-r-x
Datei: -rwx-r--r--

mein verzeichniss /var/website hat drwxr--r--
datei hat -rw-r----- index.htm
----------------------------------------------------------------------------------------------------------
->oschoenknecht

.htaccess ist meines Erachtens nicht das Problem, weil hier nur der Name für das htaccess-File definiert wird, ".htaccess" ist Standard. Liegt aber in /var/homesite vielleicht so eine Datei?


was für eine datei ???
--------------------------------------------------------------------------------------------------------
man oh man.
schritt für schritt bitte
----------------------------------
apache installiert
apache läuft
website in verzeichniss /var/homesite
datei name index.htm in verzeichniss /homesite

das ist meine http://www.sillons.fli4l.net/ und es geht nicht .

was soll ich jetzt als erstes tun !!???

danke an alle ????????????
grüß daniel

Stanislaus
02.05.03, 19:13
moin, moin!

Sinnigerweise würde ich als erstes Versuchen die Datei - und Verzeichnisrechte wie oben beschrieben ändern! Dann sollte es schon funktionieren.



Es sollte also so aussehen:
Verzeichnisse: drwxr-x-r-x
Datei: -rwx-r--r--



mein verzeichniss /var/website hat drwxr--r--
datei hat -rw-r----- index.htm

Liegt doch auf der Hand, oder nicht?!?

An Deiner .htaccess Config sollte es jedenfalls nicht liegen.


Bis neulich ...

mowses
02.05.03, 20:04
Heute Abend bin ich gut gelaunt, da kau ich dir die (wahrscheinliche) Lösung vor:

ein chmod 644 DATEI und ein chmod 755 VERZEICHNISS sollten deine Probleme hoffentlich lösen.

apraxas
02.05.03, 20:57
:)
:D
:p Danke an alle !!!!!!!!!!!!!!!!
Es funktioniert.

Habe mir dazu den Midnight Commander geholt. Zum MC möchte ich noch sagen das man erst einstellungen am putty verändern müß bevor er läuft.

Dachte erst programm geht nicht, ha ha ! Steht aber in der doc ..

Auf jeden fall lag es an den Datei- sowie Verzeichnissrechte, das apache-webseiten start problem!!!.

Problem gelöst !!! DANKE
:) :) :)

mowses
02.05.03, 20:59
Immer wieder schön Menschen zu sehen die sich offensichtlich freuen. :-)

apraxas
02.05.03, 22:25
eine frage habe ich doch noch.

dazu...<body bgcolor="#000066" background="file:///C|/Inetpub/wwwroot/aPraxasd/autoportrait1.gif">

das steht jetzt in der index.htm in verzeichniss /opt/website/
das bild befindet sich auch in diesem verzeichniss. auf fli4l.

was schreibe ich jetzt darein, das das bild nicht mehr vom anderen computer geladen wird sonder direkt von fli4l harddisk nämlich aus dem /opt/website/ ???

oschoenknecht
03.05.03, 00:28
Guten Morgen,

<body bgcolor="#000066" background="/opt/website/autoportrait1.gif">

sollte es tun!

Cheers,

Olli

apraxas
03.05.03, 02:37
danke oschoenknecht !!!

aber naja.


background="//opt/website/start.gif">
ok alles funktioniert. ich sehe auch im explorer unten in der leiste das er das hintergrund bild lädt und es gibt auch keine fehler doch jetzt stellt er es nicht da ???
er lädt die seite mit bild jedoch er zeigt die seite ohne bild!! meiomei.

noch eine schlaflose nacht!
danke

daniel

oschoenknecht
03.05.03, 08:18
Hey Daniel,

entweder war das "background="//opt/website/start.gif" ein Tipfehler - laß mal das erste der beiden "/" vorne weg oder Du probierst mal den http-Pfad, unter dem der Hintergrund auch von außen zu erreichen ist, z. B. "background="http://www.sillons.fli4l.net/website/start.gif" !

Eins von beiden wird's sicher sein ;) !

Chefkomiker
04.05.03, 17:45
Hallo,

ich habe bei mir ein LAMP installiert, mit Suse 8.0.

Leider bekomme ich es nicht hin, daß die html-Seiten in /home/~user/public_html
gefunden werden.
An der Rechtevergabe dürfte es nicht liegen.

Meine Frage an Euch:
Ich habe das Home-Verzeichnis auf einer eigenen Partition,
muß ich in der httpd.conf, dieses noch besonders berücksichtigen?

Chefkomiker

Opa Nolle
04.05.03, 18:50
Original geschrieben von Chefkomiker
Hallo,
. . .
Ich habe das Home-Verzeichnis auf einer eigenen Partition,
muß ich in der httpd.conf, dieses noch besonders berücksichtigen?

Chefkomiker

Natürlich mußt Du das berücksichtigen! Wie sollte es denn sonst gefunden werden?

Opa Nolle

mowses
04.05.03, 19:00
Ich denke eigentlich nicht, dass du das berücksichtigen musst.

Was gibt dir dein Browser denn für eine Fehlermeldung aus?

Versuch mal ans Ende noch einen Slash zu setzen. Also so:


http://localhost/~user/public_html/

Ich glaube mich errinern zu können, dass du den setzten musst, wenn du nicht den Namen des Servers in der httpd.conf angibst. Genauso wie du deinen Apache nicht mit der externen Adresse aus dem internen Netz erreichen kannst.