Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doesn't work in macOS Sierra 10.12.4 #13

Open
iamraffe opened this issue Mar 29, 2017 · 7 comments
Open

Doesn't work in macOS Sierra 10.12.4 #13

iamraffe opened this issue Mar 29, 2017 · 7 comments

Comments

@iamraffe
Copy link

iamraffe commented Mar 29, 2017

Following step by step doesn't work for this macOS version.

Once you mess with httpd.conf you don't past this message ->

Not Found

The requested URL / was not found on this server.

No matter if you hit, home.dev, localhost or whatever site.

@cmall
Copy link
Owner

cmall commented Mar 29, 2017

If you mean the dev environment setup, I've tested it in Sierra, and it has worked for me and many others. If you do the setup before you upgrade though, macOS rewrites and archives your httpd.conf file. I've detailed what you need to do to fix this here: https://mallinson.ca/local-web-development-macos-sierra/

@iamraffe
Copy link
Author

I tried following these steps -> https://mallinson.ca/osx-web-development/

I didn't do any setup before, this Mac came with Sierra installed.

Maybe there's something else that would be obvious to a long time Mac user (I'm coming from Linux) that is not mentioned in the guide?

I know it may sound like a "Read the docs" situation. But I can promise you, I've spent about 4 hours on this just because I didn't want to download MAMP (which is what it seems I'm going to have to end up doing anyways). And it should be pretty straightforward as the instructions are pretty clear, but for whatever reason it's not working for me.

@djlowes
Copy link

djlowes commented May 21, 2017

@cmall This is great! Especially for a beginner like me. However I am having the same issue as @iamraffe above:

  • I have followed https://mallinson.ca/osx-web-development/ precisely. I started setting up this dev environment in Sierra so I shouldn't need to restore Apache config files.
  • When I #Include /private/etc/apache2/extra/httpd-vhosts.conf in httpd.conf I get 'It works!' when I test home.dev (or ANYTHING.dev).
  • When I Include /private/etc/apache2/extra/httpd-vhosts.conf in httpd.conf I get 'Not Found The requested URL / was not found on this server.' when I test home.dev (or ANYTHING.dev).
  • The path I am using in httpd-vhosts.conf is correct.

Is there something else in httpd.conf that I have to do? Could this have something to do with PHP? I don't have an AddModule line for PHP in my httpd.conf, only a LoadModule line.

Apologies in advance for some very rookie questions. Any assistance is much appreciated, I would love to use this dev environment.

Dave.

@smiledahling
Copy link

@iamraffe and @djlowes

Having the same issue. Followed https://mallinson.ca/osx-web-development/ step by step and encountering the same problem.

Total rookie here and looking for advice.

@iamraffe
Copy link
Author

iamraffe commented Jun 2, 2017

I'm afraid I won't be of much help. I couldn't get it to work.

So I ended up setting that project with Vagrant

Sorry!

@almeynman
Copy link

For those experiencing the same problem try to add "/Users/username" to paths in httpd-vhosts.conf

<Directory "/Users/almas/www">
  Options Indexes MultiViews FollowSymLinks
  AllowOverride All
  Require all granted
</Directory>

<Virtualhost *:80>
  VirtualDocumentRoot "/Users/almas/www/home/wwwroot"
  ServerName home.dev
  UseCanonicalName Off
</Virtualhost>

<Virtualhost *:80>
  VirtualDocumentRoot "/Users/almas/www/sites/%1/wwwroot"
  ServerName sites.dev
  ServerAlias *.dev
  UseCanonicalName Off
</Virtualhost>

@nelslynn
Copy link

Change all 'dev' to 'test'. All sites would then be: mysite.test

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants