masvur.blogg.se

Setting up apple os x server
Setting up apple os x server












setting up apple os x server setting up apple os x server

If that file doesn't exist, you will need to create it with: It does appear to be created when you create a new user. That file may not exist and if you upgrade from an older version, you may still not have it. It should exist at the path: /etc/apache2/users/.conf. While you are in /etc/apache2, double-check to make sure you have a user config file. To create one manually, enter the following:Įcho "My site works" > ~/Sites/ If you already had a Sites folder in Snow Leopard, it should still be there. Lion and later versions no longer create personal web sites by default. LoadModule perl_module libexec/apache2/mod_perl.so #LoadModule perl_module libexec/apache2/mod_perl.so If you want to run Perl scripts, you will have to do something similar:Įnable Perl by uncommenting line 117, changing: Then type ':w!' to save, or just 'ZZ' to save and quit.) Then just press 'x' over the '#' character to delete it. (If you aren't familiar with vi, go to line 118 by typing "118G" (without the quotes). LoadModule php5_module libexec/apache2/libphp5.so #LoadModule php5_module libexec/apache2/libphp5.so To get started, edit the Apache configuration file as root:Įnable PHP by uncommenting line 118, changing: Lines in bold courier should be typed at the Terminal. Lines in bold are what you will have to type in. Xcode is required for adding PHP modules.

  • Basic understanding of Terminal.app and how to run command-line programs.
  • For things like database, web, and mail services, I have found it easier to just setup the client OS version manually.

    setting up apple os x server

    Server does a few specific tricks really well and is a good choice for those. Pay attention to your OS version.Īnother note: These instructions apply to the client versions of OS X, not Server. Note: This user tip is specific to OS X 10.8 “Mountain Lion”. I have another User Tip for installing and configuring MySQL and email servers. This User Tip only contains instructions for configuring the Apache server, PHP module, and Perl module.

    setting up apple os x server

    This is meant to be a development platform so that you can build and test your sites locally, then deploy to an internet server. Here is my definitive guide to getting a local web server running on OS X 10.8 “Mountain Lion”.














    Setting up apple os x server