Push-Nachrichten von MacTechNews.de
Würden Sie gerne aktuelle Nachrichten aus der Apple-Welt direkt über Push-Nachrichten erhalten?
Forum>Netzwerke>Webserver unter Yosemite reaktivieren: wie?

Webserver unter Yosemite reaktivieren: wie?

Der Mike
Der Mike18.10.1416:17
Wie kann man eigentlich Apache unter Yosemite reaktivieren?

Und zwar würde ich gerne wieder auf ~/Sites zugreifen können.

Der Ordner ~/Sites ist ja weiterhin vorhanden, sogar samt Yosemite-Icon.

Aber leider wurde die Option, Apache über ein Kontrollfeld in den Systemeinstellungen aktivieren zu können, nicht wieder eingebaut.

"localhost" funktioniert übrigens nach einem "sudo apachectl restart" übers CLI.
0

Kommentare

Der Mike
Der Mike18.10.1418:02
Der Tipp unter hatte unter Mountain Lion und Mavericks übrigens einwandfrei funktioniert.

Leider nicht unter Yosemite.

User Level Root

Interestingly the user document root level is missing the '~/Sites' folder in the User account, you need to make a "Sites" folder at the root level of your account and then it will work.

Create a Sites folder at the account root level

Check that you have a “username.conf” filed under:

/etc/apache2/users/

If you don’t, then create one named by the short username of the account with the suffix .conf, its contents should be (swap in the real username):

cd /etc/apache2/users

sudo nano username.conf

Then add the content below swapping in your username:

<Directory "/Users/username/Sites/">
Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>

Permissions on the file should be:

-rw-r--r-- 1 root wheel 298 Jun 28 16:47 username.conf

If not you need to change...

sudo chmod 755 username.conf

Restart Apache for the new file to be read:

sudo apachectl restart

Then this user level document root will be viewable at:

http://localhost/~username/
0
kawi
kawi18.10.1418:17


wenn apache grundsätzlich läuft (und das tut er bei dir ja offenbar unter localhost) die Anleitung im Link befolgen und die entsprechenden zeilen auskommentieren.
0
Der Mike
Der Mike18.10.1418:55
kawi
Apache läuft grundsätzlich, also etwa via "localhost".

Aber nicht via "http://localhost/~username/"...

Ich habe Deinen Link ausprobiert, aber leider keinen Erfolg gehabt.

Hat es bei Dir funktioniert?

brachte auch nichts...
0
Der Mike
Der Mike18.10.1419:25
Ich korrigiere: hat funktioniert!
0

Kommentieren

Diese Diskussion ist bereits mehr als 3 Monate alt und kann daher nicht mehr kommentiert werden.