rescuelkp.blogg.se

Mac os x apache virtual host
Mac os x apache virtual host





mac os x apache virtual host mac os x apache virtual host

The same tutorial applies to 10.3 as well. MacZeaolots has a good tutorial on installing Drupal on Mac OS X 10.4. conf files, be sure to restart Apache (as described above). You must AllowOverride in this file for your ~/Sites for clean URLs to work there.Īfter any edits to your. conf file in /etc/httpd/users that corresponds to your user account. If you use ~/Sites, you may also have to edit the. # (static and shared ones) to achieve correct module execution order.Īnd uncomment this line (around line 278) by removing the #: #AddModule mod_php4.cĭrupal goes into /Library/WebServer/Documents/, or ~/Sites. Then go below to this section: # Reconstruction of the complete module list from all available modules Uncomment this line (around line 235) by removing the #: #LoadModule php4_module libexec/httpd/libphp4.so You may also need to edit this file to enable the PHP module for Apache. Can also be "All", or any combination of "Options", "FileInfo", Don't forget to restart apache after modifying nf (turn personal web sharing off, then back on again, or use /usr/sbin/apachectl restart). You'll need to be root (or sudo) to do this. To enable clean URLs you will need the following code in your conf file.

mac os x apache virtual host

If you only have one web server on your server configured, then the file you want to modify is /etc/httpd/sites/0000_any_80_.conf. Each virtual server has a configuration file in that directory so it is in those files that you must enable AllowOverride All. In that directory are the virtual host configuration files. The correct file to add the AllowOverride All directive is in the directory /etc/httpd/sites/. Note: for Mac OS X Server 10.4 (Tiger Server) and most likely previous versions as well, do not make changes to /etc/httpd/nf expecting the AllowOverride All directive to work. You can create a file /private/etc/httpd/users/nf for all your Drupal-specific changes (even if you have no user named Drupal) and they will be loaded when Apache starts up. System updates will leave these files untouched. So any changes you want to make should be made in one or more configuration files of your own construction. Any file in the directory /private/etc/httpd/users/ ending with “.conf” will effectively be appended to /etc/httpd/nf. To make changes to the Apache configuration you should NOT edit /etc/httpd/nf but instead edit files in /private/etc/httpd/users/. Now comes the more involved part- changing the webserver configuration. Turn on "personal web sharing" in the sharing panel of System Preferences to start Apache. The stock version of Apache that comes with your Mac should be fine.

mac os x apache virtual host

PHP is also available from Marc Liyanage. You can get Mac binaries for OS X 10.3 and 10.4 from MySQL.







Mac os x apache virtual host