A
A
antonio02262018-02-19 21:59:52
macOS
antonio0226, 2018-02-19 21:59:52

How to install a web server on mac os?

Hi all. I took a macbook. I need to install a web server, I looked at a bunch of guides and I don’t understand what the error is. Changed
DocumentRoot "/Users/MacBook67/sites"
Registered such settings, threw an index file into this folder. I go to localhost Displays Its Work, that is, the path has not changed and displays something completely different. What is the problem?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
S
Sergey Sokolov, 2018-02-19
@sergiks

Try installing MAMP (Mac Apache, MySQL, PHP)

M
Maxim, 2018-02-21
@Mx21

>Registered such settings, threw an index file into this folder. I go to localhost Displays Its Work, that is, the path has not changed and displays something completely different. What is the problem?
It can be seen that virtual hosts are configured incorrectly, here is a good manual. The same author has a video on how to install apache/php on Sierra.
https://www.youtube.com/watch?v=u8c5c13vtKI&t

M
Mikhail Zavalko, 2020-04-21
@Mixa_007

Here is a good instruction, as for me: https://jasonmccreary.me/articles/install-apache-p...
The main thing is there is one omission, if after all the operations done it gives a 403 error, then it helps me to find this line in httpd. conf and "_www" to be replaced with the username, after which it is natural to execute the command "apachectl restart" in the terminal.
5e9e85c51651e209613030.png

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question