1) I'm assuming you are using the built in Apache and didn't install via
MAMP or something?

2) Run this to make sure DNS isn't borked:

ping localhost
(just looking for an IP to resolve here, not a ping reply)

3) Run this to make sure you don't have an error in your Apache configs
someplace.

sudo /usr/sbin/apachectl -t
("Syntax OK" means you've not screwed up the configs)

4) The default location of Apache's home is here on a mac. Can you drop a
static foo.html in there and get it to come up in your browser at
http://127.0.0.1/foo.html?

/Library/WebServer/Documents

5) I actually use the above location for all my app file directories and
just create virtual hosts for each (instead of the userdir ~ thing).
An examnple entry might look something like this:

<VirtualHost *:80>
  DocumentRoot "/Library/WebServer/Documents/clientproject"
  DirectoryIndex index.cfm
  ServerName clientproject.localtest.me
</VirtualHost>

Localtest.me always resolves to 127.0.0.1 and lets you use subdomains to
differentiate sites. So each of my projects has a similar line in
extra/httpd-vhosts.conf. This also lets me turn on or off CF9, CF10, Railo,
or Lucee per virtualhost depending on what the client is using in their
environment.

-Cameron

On Mon, Mar 30, 2015 at 6:23 PM, Bruce Sorge wrote:

>
> Howdy all,
> So I upgraded to Yosemite a while ago, and I want to play around with
> WordPress. I went through all the steps to get Apache up and running, and
> it works fine when I browse localhost. However, when I try to browse
> localhost/~brucesorge, I get the message Safari cannot connect to the
> server. Safari cannot open the page “localhost/~brucesorge” because safari
> cannot connect to the server “localhost”. Also, I can only get to 
> localhost
> in Safari, not Chrome. Here are the steps I performed, all in Terminal of
> course.
>
> Created the brucesorge.conf file and added:
>
> <Directory “/Users/brucesorge/Sites/“>
> AllowOverride All
> Options Indexe Multiviews FollowSymLinks
> Require all granted
> </Directory>
>
> Then I set the permissions: sudo chmod 644 brucesorge.conf
>
> I made sure the four lines in the /etc/apache2/httpd.conf were uncommented:
>
> LoadModule authz_core_module libexec/apache2/mod_authz_core.so
> LoadModule authz_host_module libexec/apache2/mod_authz_host.so
> LoadModule userdir_module libexec/apache2/mod_usrdir.so
> Include /private/etc/apache2/extra/httod-userdir.conf
>
> I opened the http-userdir.conf file and uncommented:
> Include /private/etc/apache2/users/*.conf
>
> I then restarted apache, but no joy. Any ideas?
>
> Thanks,
>
> Bruce
>
>
>
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-community/message.cfm/messageid:373333
Subscription: http://www.houseoffusion.com/groups/cf-community/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-community/unsubscribe.cfm

Reply via email to