whesolution.blogg.se

Mac apache config path
Mac apache config path






mac apache config path mac apache config path

Register with Launchd and start the server. sudo nano /Library/LaunchDaemons/ĭo not name the file as it collides with a similarly named file for loading the macOS web server.Ĭopy and paste the following text into the aforementioned file. sudo apachectl stopĬreate a configuration file for Launchd. echo 'export PATH=/usr/local/apache/bin:$PATH' > ~/.bash_profileĮcho 'export MANPATH=/usr/local/apache/man:$MANPATH' > ~/.bash_profile mkdir -p ~/SitesĮxecute the following lines to update your Bash startup script. You can place your projects wherever you'd like but make sure you update the path when mentioned in this article. Web RootĬreate a folder that will contain your web sites and applications. Otherwise, Apache will log the same information in two separate locations. You also need to disable the ErrorLog and CustomLog directives in the Apache configuration file (leaving the above directives intact). ServerName dev.localĬustomLog "/usr/local/var/log/apache.log" common This configuration only allows access from your local computer all outside access is blocked. Make sure you replace the string (3 times) with your macOS short username. nano /usr/local/apache/conf/nfĬopy and paste the following text at the end of the aforementioned file. sudo ln -s mac-dev-env/apache-VERSION /usr/local/apacheĮdit Apache's configuration file. prefix=/usr/local/mac-dev-env/apache-VERSION \Ĭreate a symbolic link to /usr/local/apache.

mac apache config path

httpd-VERSION/srclib/apr-utilĬonfigure, compile and install into /usr/local/mac-dev-env/apache-VERSION./configure \ Tar -xzvf apr-util-1.6.1.tar.gz -strip 1 -directory. httpd-VERSION/srclib/aprĭownload and extract the Apache Portable Runtime Utility. Tar -xzvf apr-1.6.5.tar.gz -strip 1 -directory. curl -remote-name ĭownload and extract the Apache Portable Runtime. cd /usr/local/srcĭownload and extract the Apache HTTP Server. The Apache HTTP Server is an open-source web server that was released in 1995. Links: Homepage | Downloads | Documentation








Mac apache config path