os x server localhost alternate port not responding - docpad

Somehow the node.js server used for docpad running on my MacBook (running 10.8.4) are no longer accessible. Docpad (using the default "docpad run") normally publishes on port 9778, and is accessible via localhost:9778 (or 127.0.0.1:9778), and this used to work just fine, and was reliable. Now, however, Safari says 'Safari can't connect to the server "localhost"' ... same thing for Chrome, so it's not a Safari issue.
The one thing that HAS changed, is that now I have OS X Server 2.2 installed ... and the default server webpage does appear at "localhost" or "localhost:80".
Furthermore, another node.js server (the one available with punch), works just fine on any IP number I give it.
Just to make things even more confusing, the docpad server access started to work again last night after a clean install of the twitter-bootstrap skeleton, and then stopped again this AM. I restarted the MacBook ... no change. I turned the web server off using the OS X Server console ... no change.
Something weird with the docpad server code?
Any ideas?

Related

Apache web server problems on MacOS Mojave

I have migrated to a new webhost that has MacOS Mojave installed. My previous installation used El Capitan (or maybe it was Yosemite) and worked perfectly. Previously, I had everything set up using Mac Server. However, as you may already know, over the last few OS "upgrades," Apple has reduced Server to the point that it now worse than useless. It no longer controls web hosting or anything else you might want to do. So I have been trying to use ApacheGUI. After mucking around in httpd.conf and httpd-vhosts.conf, my website is now responding on port 8080. Previously, my installation of Apache Tomcat used port 8080, but because I don't need Tomcat, this is really a non-issue. The problem is that the MacOS Server webpage ("Welcome to macOS Server") responds on port 80. I can't figure out how this is possible. I have copied my entire website to both /Library/WebServer/Documents (the document root specified in httpd.conf) and /Users/UserName/Website/website/com (the document root specified in httpd-vhosts.conf).
Any assistance would be appreciated. I have a working knowledge of how to get around in terminal and nano, but I don't know much about setting up a webserver manually thanks to my decade+ reliance on the now-deprecated MacOS Server.

El Capitan Unable to Connect to Localhost Server Via External Device in LAN

Trying to test a local web app developed on my mac running El Capitan using my iPhone. I'm able to pull up the web app using my internal ip on the actual mac, but when using another device connect to the same network it's not working. This use to work fine on previous versions of osx, but ever since upgrading to El Capitan, this hasn't been working properly.
Any hints or solutions to this problem?
Thanks
I have a website on my Mac running off MAMP. I couldn't connect to it via IP on another computer. I turned off the firewall on the Mac and could connect by just typing in the IP into the address bar. Mine happened to be 192.168.1.69. To get the actual website, I did have to include the port number, i.e 192.168.1.69:8888. Make sure that you are using your private IP, not your public one (should start 192.168.X.X or 10.X.X.X). This worked to connect from another computer and from my phone.

MAMP wont connect to mySQL

I have installed and configure MAMP on my MAC (Yosemite operating system. I used the how to video on Lynda.com:
http://www.lynda.com/WordPress-tutorials/Downloading-installing-WordPress/361682/370433-4.html
At the end of the video he clicks start servers and it bring him to a locally hosted MAMP webpage. The Apache server runs correctly. How do I get mySQL to run correctly? Mysqlb is not running.

Accessing Meteor local web server from another local device on Mac 10.8

I am working on a Meteor website and conveniently, it will run on localhost with the simple command, meteor. However, I want to be able to access this website from other computers on the local network. The main reason I want to do this is for viewing and testing the app on mobile.
I am running Mac Mountain Lion 10.8, and they got rid of some of the convenient Personal Web Sharing pref panes. Everything else I have seen online deals with setting up your own server, but all I want to do is grant access from other local device...
Thanks
Find out your ip address 192.168.1.12 (mac system prefs/network)
start meteor in your project on a port (default 3000)
from another comp on network, browse 192.168.1.12:3000

Setting up production on a virtual web server for Mac, Apache, PHP and MySql

I'm building a web app on my Mac and have so far been testing with XAMPP. I'm looking at finding a virtual server vendor to host my application but have found almost none that is compatible with Mac, Apache, PHP and MySql. I don't want to go the Mac Mini route for now.
Does anyone have any suggestions on how I could do this or what vendor to use?
If it's a PHP/mySQL app, chances are it's not very dependent on the OS it's running on. Unless you have something totally Mac specific running in your app, getting a normal Linux VPS may be the way to go.

Resources