Questions tagged [webserver]

A Web server is a program that uses HTTP (Hypertext Transfer Protocol) to serve the files that form Web pages to users, in response to their requests, which are forwarded by their computers' HTTP clients.

Filter by
Sorted by
Tagged with
32
votes
1answer
42k views

What causes OS X to mark a folder as Quarantined?

I had a folder under ~/Sites, let's call it Foo, from which I was sharing a Wordpress site-in-development via Apache. This was working fine, I'd mapped foo.local to 127.0.0.1 in my hosts file and was ...
19
votes
3answers
54k views

How to turn Mac OS X Lion into a web server?

After using MAMP for ages, I found out I could actually use Snow Leopard's built-in Apache server. Now that I've upgraded to Lion, I have no idea how to do this anymore. Do you know how to turn my ...
16
votes
1answer
27k views

Disable Apache autostart

I'm on a fresh 10.9 install and the default Apache server is org.apache.httpd: Already loaded after each startup. Is there a way to disable that autostart?
9
votes
4answers
12k views

Has anyone ever tried to use an iPhone as web server?

Yeah, it makes no sense to use an iPhone as web server, although the hardware could be used in some interesting ways if this would be possible. You could, for example, set up the iPhone to send a ...
9
votes
1answer
8k views

dnsmasq not working on Mac OS Sierra

I'm running dnsmasq on a 2016 MBP running Mac OS Sierra (10.12.1) but I'm unable to ping any .dev addresses despite having what I believe is the proper config. Running dig does return sane output. /...
8
votes
1answer
18k views

localhost / userdir on macOS Sierra

I've always used: Setting up a local web server on OS X to set up my localhost and userdirs. After upgrading to Sierra, yesterday, my localhost web server wasn't working anymore. I tried following ...
8
votes
5answers
18k views

how to use ipad to access webserver on macbook air

my webserver software is nginx which runs very well on macbook air using mac os x 10.7.5 when i go to http://myapp.localhost on my macbook air, i can access my website perfectly which is running on ...
6
votes
1answer
480 views

High Sierra: Can't connect to a xampp server running on another machine after upgrading macOS

I have a Xampp web server running on another computer in the local network and my Mac can no longer access it after updating to High Sierra. All other devices I have in the same Wi-Fi network connect ...
5
votes
2answers
1k views

OS X menubar/dashboard/dock utility for monitoring a server?

Is there any desktop utility for OS X that would periodically monitor a (non-osx) server and display a status icon? Something as simple as attempting to visit a URL every 5 minutes and turning red if ...
5
votes
2answers
10k views

Mac OS X Server ignores remote HTTP connections, but accepts local ones

I cannot get Mac OS X Server's web server to accept connections from other machines on the same LAN. This is on OS X 10.8.2, running on a Mac mini which originally shipped with Lion Server. I can ...
4
votes
3answers
2k views

Changing path of Xcode Server

I'm running Xcode Server on my Mac Mini, and the HTTP port is open to the internet. I want to be able to host other content on port 80. Is there a way I can change the path where the Xcode Server ...
4
votes
2answers
4k views

Connect to SMB server on startup

I got a late 2017 macbook pro running the High Sierra update. I am wondering if its possible to auto connect to a smb server. I need to do this manually everytime i start up at work. And as small as ...
4
votes
4answers
10k views

Web Sharing Apache Localhost - Access permissions

I want to install phpMyAdmin on the native Apache webserver that is bundled with Mac OS X 10.6. I turned on Web Sharing in System Preferences. Yet, me fear is that my computer is granting access to ...
4
votes
3answers
8k views

Virtual Hosts Not Working on OSX Mavericks

In Mac OS X 10.9.3 I've Included http-vhosts in httpd.conf # Virtual hosts Include /private/etc/apache2/extra/httpd-vhosts.conf I've commented out the DocumentRoot and the Directory in httpd.conf # ...
4
votes
2answers
399 views

Can I use the Sites folder for whatever I want?

Not realizing that OS X creates a ~/Sites folder when you enable web sharing, I started putting my sites for MAMP within a ~/Sites directory, which did not exist on my new laptop. Is this ok, as long ...
3
votes
2answers
20k views

“ERR_CONNECTION_REFUSED” on localhost after (I think) upgrading Apache via homebrew

I maintain a local web development environment on my Mac via Homebrew, set up in roughly the way described here: https://echo.co/blog/os-x-1010-yosemite-local-development-environment-apache-php-and-...
3
votes
2answers
4k views

Folder displaying in terminal but not finder

Alright, so I just started beginning web development using my mac. My localhost says "It works" and I read somewhere I need to add my code files etc in Library/WebServer/Documents. However, inside my ...
3
votes
1answer
44 views

Website hosted on Mac taking too long to load on the first access

I'm using an old Macbook Pro (2011) to host a few websites. Everything works fine, but after a long time without hitting the server the websites take a really long time to load (even in my local ...
3
votes
2answers
118 views

How do I give a CGI script permission to access Calendar?

When I run my script from the command line I can use - am actually prompted to use - System Preferences to add ssh-keygen-wrapper to be authorised to access the Calendar. But when I run the script ...
3
votes
1answer
408 views

MacOS Sierra - localhost not found while using Hugo (not related to Apache)

note this is NOT related to Apache and I'm not looking for Apache-centered answers. I am using the Hugo static site generator to create sites and trying to test on a MacBook running Sierra. I am ...
3
votes
1answer
4k views

How to determine where the localhost:8080 source and server are located

I am running Mavericks OS currently on my iMac. It has been a while since I set up a web server on my iMac. I went to my Firefox browser and went to localhost:8080 and it returns a simple string "...
3
votes
3answers
2k views

Apple Shellshock patch for 10.6?

I am running a small HTTP server (Apache) off my Mac mostly as a hobby. If it becomes compromised it isn't the end of the world but it is something I would certainly like to prevent. I set up a ...
3
votes
2answers
3k views

What are good bi-directional, real-time synchronization utilities between Mac local folder and web server?

I have an iMac that is connected to my local network (and, subsequently, the Internet) that has a folder named DocShare. I have a web server hosted off-site through a hosting company, with a similar ...
3
votes
2answers
3k views

What is the recommended way to set up and run an OS X web server for a busy public website?

I am moving from a VPS to a dedicated Mac mini server running Mavericks. All I want to do is serve a typical website using Apache, an nginx reverse proxy, PHP and MySQL. My website isn't gigantic, ...
3
votes
1answer
7k views

How to activate mod_rewrite on MacOSX Lion

I tried to activate the mod_rewrite module in the httpd.conf, but I do not succeed to make it work. I'm running Lion, and my goal is to do URL rewriting in ~USER/Sites/mysite Can someone help me ...
3
votes
3answers
15k views

Why can't browsers resolve localhost?

I've got a program on my machine listening on port 8080 to respond to HTTP requests. But when I try to go to http://localhost:8080/ in a browser... Chrome says: The localhost page isn’t working ...
3
votes
1answer
262 views

MAMP still can't access Apache after creating local virtual hosts

I had finally got my PHP and MySQL to work again and then I decided to set up local virtual host. Everything was working perfectly up to that point. I have been getting error messages when I do ...
3
votes
0answers
2k views

Can't connect my iPad to the localhost of my Mac

I want to access the localhost of my Mac from my iPad. From my Mac, the address is http://localhost:8888. Through IP address The Mac and the iPad are connected to the same Wifi network. The IP ...
2
votes
3answers
3k views

Conflict between internal Apache and Apache installed via Homebrew

I have faced following trouble. I wanted to have multiple versions of PHP so I used this article to achieve this. But I could not stop Apache via sudo apachectl -k stop when running this command I am ...
2
votes
4answers
959 views

Running a local web server on MacBook

I am using a MacBook with OS X Mounain Lion 10.8.3 and I want to install a local web server on my machine. What are my options? On windows I used XAMPP.
2
votes
1answer
2k views

Which mail daemon does OS X 10.8.4 run by default?

I'm debugging some mail related stuff on my Mac, and not quite sure how my system is even sending mail. I can run a simple command like date | mail -s test myemail@mydomain.com and receive an email ...
2
votes
1answer
749 views

Can we setup a local HTTPS Server in Mac OS X using swift

I want to setup a local HTTP Server running in my Mac OSX machine which should be able to handle requests that are coming from web browser. But I am not sure whether we can setup HTTPS server using ...
2
votes
2answers
6k views

Edit Lion default web site pages

The first part of the question is: where are the actual files that are displayed by apache for the default web server in Lion Server? Specifically as simple task I would like to change the title of ...
2
votes
1answer
3k views

How to move the web server folder for web sharing?

How do I move the Library/WebServer/Documents folder, which contains files shown by http://localhost ? For instance, to the Desktop. Also, can the ~/Sites folder be moved too?
2
votes
1answer
48 views

CGI scripts won't execute on website

I have a website up and running on the Apache webserver, but the CGI scripts in /Library/WebServer/CGI-Executables will not run. Instead, the text of the file loads in the browser instead. I made ...
2
votes
4answers
3k views

Web Sharing Can't Start

It worked before, and I'm not sure when it stopped working, but I'm unable to start Web Sharing at the moment. Attempting to start it from the Sharing screen results in "Web Sharing Starting..." ...
2
votes
3answers
2k views

Enable home directory sites in Lion server?

I had a Leopard server with a few hundred users (students), and each of them was able to maintain their own web content in their Sites folders in their home directories -- and they could access them (...
2
votes
1answer
22 views

Why did apache move config, and how do I move it back?

I just installed PHP 7, and suddenly localhost is no longer accessible. Investigating, apachectl determined that it changed from reading /etc/apache2/httpd.conf, to now be reading /usr/local/etc/...
2
votes
1answer
1k views

Web Sharing (Apache) won't turn on in Lion

I'm unable to enable web sharing via System Preferences > Sharing. When I click it to turn it on the light turns yellow but then goes back to gray. I did some Googling and found that many people ...
2
votes
1answer
105 views

Permissions on apache2 directory

I was working through these instructions to get my web server working again and needed to change the /etc/apache2/httpd.conf file. I needed to change the permission on httpd.conf file and did. Next I ...
2
votes
1answer
5k views

Can't access apache-powered website at localhost [duplicate]

I was trying to enable php, mysql, apache on my macbook pro running yosemite. I followed this guide but it doesn't run. What's wrong in setting up a local web server on OS X Please help.....I get an ...
2
votes
1answer
2k views

Mac Mini Server Reset To Factory - Help With Fatal Error [closed]

I am in desperate need of assistance. I am doing my very first in-house server reset and wipe since graduating from school and I am in over my head. I know I am a noob at it but I am THE I.T. GUY at ...
2
votes
1answer
5k views

How to fix permission denied for home folder with Apache in Mavericks?

I recently activated the apache that ships with OS X Mavericks. I followed some tutorial to set up the web-server, however. When I browse to my home-filter at http://localhost/~nazeem, I get the ...
2
votes
1answer
5k views

Cannot reach local web site using IP-address of macbook

I am running a web server locally, and I can reach it by typing http://localhost:63342/myproject/index.html (this server is automatically started when I work on a web project in the Webstorm IDE ...
2
votes
1answer
3k views

Error starting apache httpd-2.4.4 configured with mod_jk

I'm trying to configure mod_jk with httpd-2.4.4 and getting the below error when starting apache. httpd: Syntax error on line 500 of /usr/local/apache/conf/httpd.conf: Syntax error on line 2 of /usr/...
2
votes
1answer
761 views

How to host Etherpad (node.js) AND create a closed Wifi network from the same Mac?

I have a successfully running Etherpad install running on my Mac, and when clients on my network connect to my node.js server through the IP address assigned by my router, all is well. But I'm going ...
2
votes
3answers
3k views

Preferred Location for cgi executables in Lion Server

This question relates to use of a Lion Server only for testing and prototyping, so I don't need multiple sites hosting separate domains. All of my projects have directories in the root directory, not ...
2
votes
2answers
1k views

Moving 'Sites' folder to Dropbox

I'm trying to move my standard ~/Sites folder, or the global Sites folder (in Library/WebServer/Documents) to my Dropbox folder, and make this usable with Web Sharing, PHP, MySQL etc. So far I have ...
2
votes
1answer
1k views

remove homebrew apache2 fails

On a new Macbook Pro, I installed apache2 with homebrew, but now want to switch back to native apache2 server. I removed the homebrew package with: brew uninstall apache2 I also removed any ...
2
votes
0answers
50 views

PHP mail not sending (possible macOS Server or Firewall issue?)

This is a relatively complex problem and LONG description, so bear with me. Please ask questions in the comments if you think I can clarify something. I am hosting multiple websites on a single ...