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, it should still be there. Lion and later versions no longer create personal web sites by default. Include /private/etc/apache2/users/*.conf Open the file you just enabled above with: (See below for an important new ACL change that are required in Ventura for personal websites.) LoadModule userdir_module libexec/apache2/mod_userdir.so #LoadModule userdir_module libexec/apache2/mod_userdir.so Don’t overcomplicate things.)Įnable personal websites by uncommenting the following at line 184: This is User Tip is meant to be as simple as possible. (Note that this is dependent on the state of the mpm_prefork_module, which is enabled by default. LoadModule cgi_module libexec/apache2/mod_cgi.so #LoadModule cgi_module libexec/apache2/mod_cgi.so If you want to run CGI scripts, you will need to do the following:Įnable mod_cgi by uncommenting line 174 changing: Your CGI scripts will run more slowly than with the mod_* versions. As an added benefit, if you install your own PHP interpreter, you can run PHP scripts this way too. So for now, we’ll go old-school and use the ancient mod_cgi method. Ventura ships with a broken version of Perl that will not work with the mod_perl module. Unfortunately, Perl will also not work with Apache in Ventura. #PHP was deprecated in macOS 11 and removed from macOS 12 Apple even includes the following note at line 187 of this file: Sorry, but PHP is NOT included in Ventura. To get started, edit the Apache configuration file as root: Lines in bold are what you will have to type in. 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. Server does a few specific tricks really well and is a good choice for those. Another note: These instructions apply to the client versions of OS X, not Server. There have been significant changes since earlier versions of macOS. Note: This user tip is specific to macOS 13 “Ventura”. I have another User Tip for installing and configuring MySQL and email servers. This User Tip only contains instructions for configuring the Apache server and Perl module. 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 macOS 13 “Ventura”.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |