Then we change AllowOverride from None to All and uncomment rewrite_module enabling it. Next, we change the DocumentRoot from /usr/local/var/www to /Users/your_user/Sites and just the same change for the directory tag just below. code /usr/local/etc/httpd/nfįind the line that says Listen 8080 and change it to Listen 80. If not any text editor will do just fine. brew install httpd brew services start httpd brew services stop httpd brew services restart httpd tail -f /usr/local/var/log/httpd/error_logĪfter installation we need to config some files, for this, we will use visual studio so we recommend having done the setup for that part. Then we use brew to install httpd, after installation there are some useful commands that we need to know like start, stop, restart, and getting error log. We will start to use httpd from brew but first, we need to stop apachectl and unload it by using the following commands: sudo apachectl stop sudo launchctl unload -w /System/Library/LaunchDaemons/ 2>/dev/null By clicking on this option we enable the use of VSC through the terminal as we will be using on this guide. brew install -cask iterm2 brew install -cask visual-studio-codeĪfter installing Visual Studio Code run the application and inside press CMD+SHIFT+P and search for install code command in path. For the choice of the terminal, we have Hyper, iTerm2, or regular terminal, but in this guide, we will be using iTerm. At the end of the article, I will write about some useful extensions for VSC. Atom and sublime are good choices but I use Visual Studio Code. xcode-select -install /bin/bash -c "$(curl -fsSL )" brew install vim brew install git brew install curlĪll developers need a text editor so installing one is very important. With the use of HomeBrew we can install some other important tools like vim( to edit files), git(so that versions are correctly managed), and curl(for installing mainly). Homebrew is a package manager that makes the process of setting up much quicker and easier. Xcode is a package that provides some very useful command-line tools for developers like git or gcc. As developers we will need to install the following tools Xcode, brew, git, curl, vim, and nvm.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |