Open iamraffe opened 7 years ago
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/
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.
@cmall This is great! Especially for a beginner like me. However I am having the same issue as @iamraffe above:
#Include /private/etc/apache2/extra/httpd-vhosts.conf
in httpd.conf I get 'It works!' when I test home.dev (or ANYTHING.dev).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).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.
@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.
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!
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>
Change all 'dev' to 'test'. All sites would then be: mysite.test
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.