Arquivo da tag: Apache

Apache localhost/~username/ not working

Looks like you need to uncomment the following:

#LoadModule userdir_module libexec/apache2/mod_userdir.so

and

#Include /private/etc/apache2/extra/httpd-userdir.conf

Then in httpd-userdir.conf you may need to uncomment:

#Include /private/etc/apache2/users/*.conf

Lastly you would need to create /private/etc/apache2/users/kevin.conf if it doesn’t exist. I think it should look something like this:

<Directory "/Users/kevin/Sites/">
  Options Indexes MultiViews
  AllowOverride None
  Require all granted
</Directory>

Make sure to restart the Apache server afterwards with:

sudo apachectl restart

Web Server system preference pane for Mac OS X 10.8, Mountain Lion

This can be used to start and stop the Apache Web Server on computers runing OS X 10.8, Mountain Lion. Previously, a user could start and stop Apache using the Sharing Preference Pane. But that feature was removed in OS X 10.8.

This is a partial replacement. It allows you to start and stop the computer web server. On systems previous to 10.8, you could use the built-in preference pane for the directory of web files for the current user.

Download Web Server Preference Pane

 

Use with versions of Mac OS X other than 10.8, Mountain Lion

This preference pane will work with earlier versions. It serves no real purpose. But if you do use it with 10.7, for example, be sure to use the Web Sharing preference pane to turn off Web Sharing first.

Installing

The download is a disk image file (.dmg). Double click to mount it. It contains the pane. Double-click the pane. It will open the System Preferences application and give you a choice of installing the pane for personal or system use. You can do either. If you install for system use, you will need to enter the password of an administrator user.

Uninstalling

If you need to remove the pane, you find its file in the finder. Use the command in the Go menu, Go to Folder…. You will be prompted to enter the a file path.

If the pane has been installed for personal use, enter:

~/Library/PreferencePanes

If it is installed for system use, enter:

/Library/PreferencePanes

This will open up the directory which contains the pane. Its name is:

Web Server.prefPane

To uninstall just drag that file into any other folder or the trash. Close and open the System Preferences application and it will be gone.

Programming: Bob Ackerman, rdacker at comcast.net and Danny Swarzman, danny at stowlake dot com
Also by the Danny, Peggy, an iOS app to play peg solitaire

Diretório dos projetos PHP

Você pode localizar o diretório nesse caminho:

/Library/WebServer/Documents

Ou então nesse caminho:

/Users/yourusername/Sites

Caso não ache essa pasta “Sites”, basta criar ela com o “S” maiúsculo.

Basicamente a diferença entre esses dois é que o primeiro modo é global e o segundo é por usuário do sistema.