Folgen Sie dem Video unten, um zu sehen, wie Sie unsere Website als Icon auf Ihrem Homescreen erstellen.
Anmerkung: This feature may not be available in some browsers.
#
# DocumentRoot: The directory out of which you will serve your
# documents. By default, all requests are taken from this directory, but
# symbolic links and aliases may be used to point to other locations.
#
DocumentRoot "/Library/WebServer/Documents"
# Listen: Allows you to bind Apache to specific IP addresses and/or
# ports, instead of the default. See also the <VirtualHost>
# directive.
#
# Change this to Listen on specific IP addresses as shown below to
# prevent Apache from glomming onto all bound IP addresses.
#
#Listen 12.34.56.78:80
Listen 80
# Settings for user home directories
#
# Required module: mod_userdir
#
# UserDir: The name of the directory that is appended onto a user's home
# directory if a ~user request is received. Note that you must also set
# the default access control for these directories, as in the example below.
#
UserDir Sites
#
# Users might not be in /Users/*/Sites, so use user-specific config files.
#
Include /private/etc/apache2/users/*.conf
Das sagt übrigens noch gar nichts aus, wenn ein falscher include-Pfad in der httpd.conf steht startet der Server nicht. Ein wiederholtes sudo apachectl graceful sollte in diesem Falle "httpd not running, trying to start" bringenSyntax OK
Könnte sich aber später doch ein PHP-Problem daraus ergeben, denn der 403 kann dann vom fehlenden DirectoryIndex herrühren (natürlich nur, wenn keine index.html gefunden wird, was ja hier offensichtlich nicht der Fall ist), default ist ja nur index.html, in /usr/local/php5/entropy-php.conf wird DirectoryIndex index.html index.php hinzugefügt. Man kanns natürlich auch noch ausführlicher machenDas ist ja noch kein php Problem, sondern erstmal noch immer nur das Anfangsproblem.
<IfModule dir_module>
DirectoryIndex index.html index.php index.php3 index.htm index.shtml index.cgi home.htm
</IfModule>
Mal eine Frage, du sagst du hättest das entrppy-PHP5-Paket installiert? Wie hast du das hingekriegt? Bei mir ließ sich das Package gar nicht so mirnichtsdirnichts installieren, auf entropy.ch wird das auch unter "PHP Apache Module" begründet.Du meinst also ich solle doch das entropy-PHP5 benutzen (wofür ich aber einen zweiten Apache brauche?oo)?
PPC and Intel: The PHP5 package version 5.1.4 and higher for Apache 2 can be used with Apache 2 installed into /usr/local/apache2, built from source according to these instructions. Also see the details in this forum discussion.
Nein nein nein nein^^
Der Ordner in dem die index.html liegt, ist der Standardordner im "Häuschen", der ja "Websites" heißt, die Klammern, öhm, kA was ich mir dabei dachte, nur les ich auf der Applepage mal Sites, hier bei mir ist es Websites.
Muss die DocRoot auf diesen Ordner, wo alle meine Web-Dateien liegen, zeigen?
eingeben.telnet localhost 80
rying ::1...
Connected to localhost.
Escape character is '^]'.
Das Module wird geladen und die Datei sieht genauso aus^^ist Include /private/etc/apache2/extra/httpd-userdir.conf bei dir aktiviert? Da werden die User-confs in /private/etc/apache2/users/ eingebunden. DocumentRoot "/Library/WebServer/Documents" ist woanders. httpd-userdir.conf müsste in etwa so aussehen.Code:# Settings for user home directories # # Required module: mod_userdir # # UserDir: The name of the directory that is appended onto a user's home # directory if a ~user request is received. Note that you must also set # the default access control for these directories, as in the example below. # UserDir Sites # # Users might not be in /Users/*/Sites, so use user-specific config files. # Include /private/etc/apache2/users/*.conf
Sowas kommt nichtDas sagt übrigens noch gar nichts aus, wenn ein falscher include-Pfad in der httpd.conf steht startet der Server nicht. Ein wiederholtes sudo apachectl graceful sollte in diesem Falle "httpd not running, trying to start" bringen
Ja die Datei gibt es, dabei fällt mir gerade aus, dass es mal neue Einträge gibt, für den Fall es hilft:Testweise würde ich aber auf jeden Fall mal Include /private/etc/apache2/extra/httpd-languages.conf deaktivieren, da in dieser Datei das negotiation_module ins Spiel kommt. Dann stünde allerdings irgendetwas mit "Negotiation: discovered file(s) matching request:" im error_log. BTW: gibts /var/log/apache2/error_log mittlerweile? kann man auch in der Konsole aufrufen -> /var/log/ -> apache2. Falls nicht, würde ich sagen, dein Server lief noch nicht.
[Fri Mar 07 19:44:40 2008] [error] [client 192.168.0.205] client denied by server configuration: /Users/Takeo/Sites/
[Fri Mar 07 19:44:40 2008] [error] [client 192.168.0.205] File does not exist: /Library/WebServer/Documents/favicon.ico
[Fri Mar 07 20:12:52 2008] [error] [client 192.168.0.205] client denied by server configuration: /Users/Takeo/Sites/
[Fri Mar 07 20:13:04 2008] [error] [client 127.0.0.1] File does not exist: /Library/WebServer/Documents/favicon.ico
[Fri Mar 07 20:13:13 2008] [error] [client 127.0.0.1] client denied by server configuration: /Users/Takeo/Sites/index.html
[Fri Mar 07 17:59:34 2008] [alert] (EAI 8)nodename nor servname provided, or not known: mod_unique_id: unable to find IPv4 address of "Julian.local"
[Fri Mar 07 17:59:34 2008] [alert] mod_unique_id: using low-order bits of IPv6 address as if they were unique
[Fri Mar 07 21:16:58 2008] [warn] Init: Session Cache is not configured [hint: SSLSessionCache]
[Fri Mar 07 21:16:59 2008] [warn] Init: Session Cache is not configured [hint: SSLSessionCache]
[Fri Mar 07 21:17:01 2008] [warn] Init: Session Cache is not configured [hint: SSLSessionCache]
[Fri Mar 07 21:17:02 2008] [warn] Init: Session Cache is not configured [hint: SSLSessionCache]
[Fri Mar 07 21:17:03 2008] [warn] Init: Session Cache is not configured [hint: SSLSessionCache]
[Fri Mar 07 21:17:04 2008] [notice] Digest: generating secret for digest authentication ...
[Fri Mar 07 21:17:04 2008] [notice] Digest: done
[Fri Mar 07 21:17:04 2008] [notice] Apache/2.2.6 (Unix) mod_ssl/2.2.6 OpenSSL/0.9.7l DAV/2 configured -- resuming normal operations
Das hier runtergeladen, Doppelklick -> und das Teil hat sich installiert^^Mal eine Frage, du sagst du hättest das entrppy-PHP5-Paket installiert? Wie hast du das hingekriegt? Bei mir ließ sich das Package gar nicht so mirnichtsdirnichts installieren, auf entropy.ch wird das auch unter "PHP Apache Module" begründet.
Ich frag mich grad eher wieso das nicht (wie früher) einfach so funktioniert, stattdessen beschäftige ich hier einige User weil ichs nicht gebacken bekomm =(Tja, warum also sollte das bei dir nicht auch funktionieren?
Die DocumentRoot sagt dem Server wo die auszuspielenden Dateien liegen.
Du kannst ja auch mal im Terminal ein:
eingeben.
Dann sollte eigentlich kommen:
Gibt Dann einfach mal GET ein und drück enter.
Was passiert dann ?
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>501 Method Not Implemented</title>
</head><body>
<h1>Method Not Implemented</h1>
<p>get to /index.html.en not supported.<br />
</p>
</body></html>
Connection closed by foreign host.
Was hast du denn bei ServerName eingetragen? So wie es aussieht, nichts. Nenn ihn doch mal 127.0.0.1[error] [client 192.168.0.205] client denied by server configuration:
Ja das kommt und nach "get":
Code:<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> <html><head> <title>501 Method Not Implemented</title> </head><body> <h1>Method Not Implemented</h1> <p>get to /index.html.en not supported.<br /> </p> </body></html> Connection closed by foreign host.
Wenn ich das auskommentiere habe ich auch php zur Verfügung.#LoadModule php5_module libexec/apache2/libphp5.so
# LoadModule php5_module libexec/apache2/libphp5.so
include /usr/local/php5/entropy-php.conf
/usr/libexec/apache2/libphp5.so
/usr/local/php5/libphp5.so
/private/etc/apache2/other/php5.conf
<IfModule php5_module>
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
<IfModule dir_module>
DirectoryIndex index.html index.php
</IfModule>
</IfModule>
/private/etc/apache2/users/Takeo.conf
#LoadModule php5_module libexec/apache2/libphp5.so
<Directory "/Users/Takeo/Sites/">
Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>
Lade uns doch bitte deine jetzige httpd.conf, takeo.conf und die mod_php.conf (oder wie auc imer sie jetzt bei dir heisst) hoch. dann können wir besser suchen.Ah hab jetzt bemerkt, dass alles wunderschön geparst wird, aber nur direkt im Websites-Ordner, sobald etwas in einem Unterordner ist geht weder PHP noch HTML.