2022 Developer Survey is open! Take survey.

Questions tagged [apache]

The popular open-source Web server application, an implementation of which is included in macOS.

Filter by
Sorted by
Tagged with
4 votes
1 answer
9k views

After MacOS High Sierra install, localhost fails and apache has syntax errors

After upgrading to MacOS High Sierra, I haven't been able to access my localhost. I tried restarting Apache, but it still didn't work. So I did apachectl configtest and got this error message: ...
user avatar
4 votes
1 answer
6k views

macOS apache installs on different directory with homebrew, how to start/stop?

Im strugling to understand different installations of apache on macOS. As i now can say i have two installations of apache2 one in /private/etc/apache2 ->this one seams to be installed by default with ...
user avatar
  • 175
4 votes
1 answer
2k views

Multiple .local hostname on one computer

Is possible setup multiple .local hostname on one physical computer? Background: home network (behind the DSL/NAT router) (192.168.1.*) have a mac-mini, called as "tango.local". (set in the System....
user avatar
  • 8,067
4 votes
3 answers
8k views

Enable ~/Sites Folder

I have been following this tutorial in order to setup my local ~/Sites folder. /etc/apache2/users/carloabelli.conf: <Directory "/Users/carloabelli/Sites/"> Options FollowSymLinks Indexes ...
user avatar
4 votes
1 answer
2k views

Configure Yosemite Server WebApp with LaunchD

Question Has anyone successfully been able to start a webapp via a webappctl configuration which specifies a launchd configuration in their webapp.plist launchKeys key? Background Specifically, ...
user avatar
4 votes
1 answer
8k views

Reset or Uninstall Yosemite Server

I installed Yosemite Server and I had previously configured the Apache for web development. Now, It seems that the configuration and everything is messed up. How can I reset my web server ...
user avatar
  • 143
4 votes
1 answer
2k views

Changing Default Apache version on MacOS Sierra

A DHS sweep of the network showed that one of the researchers Macs is running a non-safe version of Apache (2.4.25) and they would like him to update to at least 2.4.27. He is having difficulty ...
user avatar
  • 151
4 votes
0 answers
3k views

How can I delay loading of a launchd Launch Daemon on boot?

I am running OS X Server 10.7.5 on a Mac Mini and I cannot get MacPorts’ Apache2 to start on boot. I have ensured that the Apple-supplied version of Apache is not launching and I have also ensured ...
user avatar
  • 1,134
3 votes
4 answers
5k views

Error configuring mcrypt after upgrading to El Capitan

I am facing the following issue after upgrading to El Capitan. It says: Installing shared extensions: /usr/lib/php/extensions/no-debug-non-zts-20121212/ cp: /usr/lib/php/extensions/no-debug-non-zts-...
user avatar
3 votes
3 answers
6k views

Mac OS X Server 10.6.7: Disable Apache?

I'm doing some Rails dev, and I'm trying to get Pow running. After making the appropriate symlink, if I try to go to idealm_web.dev/ (idealm_web being the name of my Rails project), I get this: I was ...
user avatar
  • 1,021
3 votes
3 answers
17k views

macOS Sierra - localhost stops working when virtual host is enabled

I have enabled virtual hosts on my Mac running macOS Sierra. What I did, Uncommented Virtual Host line in httpd.conf Added a virtual host entry from my site in /etc/apache2/extra/httpd-vhosts.conf ...
user avatar
3 votes
2 answers
634 views

Big Sur Update wiped my /etc/apache2/extra

I think the title is self explanatory, but to say it again, I updated to MacOS 11 and all my extra configs of Apache decided to go bye-bye. To add insult to injury, there appeared a bunch of *.conf~...
user avatar
  • 217
3 votes
2 answers
175 views

How can I show other people my Sites folder?

I did my first website today using iWeb and I placed it inside the sites folder. From what I understand, this should enable me to show other people my site with this address: http://my.ip.here/~...
user avatar
3 votes
2 answers
23k 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-...
user avatar
  • 1,026
3 votes
1 answer
8k views

Where to put VirtualHost files for brew's httpd24?

I have installed httpd24 via brew by running brew install httpd24 However I am not sure where to put a virualhost definition files in the file system. I ran this command /usr/local/bin/apachectl -S ...
user avatar
  • 1,939
3 votes
1 answer
9k views

Problems with apache after update of php and mysql using homebrew

I am hoping someone here can assist me. I upgraded php and related files using brew upgrade on my mac which is running Mac OS X 10.8.3. Everything was working fine before and I just wanted to update. ...
user avatar
  • 887
3 votes
1 answer
5k views

What permissions do I need to give for my server setup?

I am trying to have a server setup for my web app locally on my MacBook Pro. I have installed Apache, PHP successfully and checked out my web app's code to /var/www location. Now there's a script in ...
user avatar
  • 133
3 votes
3 answers
3k views

How do I set which Apache / PHP 10.6 should run?

All my problems stemmed from trying to get mcrypt for PHP installed. Last night I gave in and followed a tutorial of how to do a totally fresh apache2 and php5.3.3 install. I did this using MacPorts. ...
user avatar
  • 133
3 votes
2 answers
3k views

Start or Stop Apache without having to give a password?

On Ubuntu you can do something like this: sudo adduser {username} www-data That doesn't work on OS X, and may not be the best approach anyway. On OS X, how can you make Apache start or stop without ...
user avatar
  • 7,240
3 votes
2 answers
251 views

Why does OS X's Apache server give different results using real and virtual addresses?

I'm developing a WordPress site on my Mac, running OS X 10.6.4. I'm using OS X's built-in Apache server to run the site locally during development. I've set up WordPress and connected it to OS X's ...
user avatar
  • 202
3 votes
2 answers
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, ...
user avatar
3 votes
1 answer
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 ...
user avatar
  • 51
3 votes
1 answer
714 views

How to install Apache into a custom directory?

How to install a copy of Apache into a local custom directory via Terminal (to ~/Desktop/ for example), so it can live without conflicts with another global version of Apache and I cant start and stop ...
user avatar
3 votes
1 answer
2k views

How can I disable any external traffic to my port 80?

I don't want others on the same network (or any network!) to be able to access my machine at port 80, where I have dev websites. I've tried adding this rule to ipfw: deny tcp from any to any dst-...
user avatar
3 votes
2 answers
621 views

Server-side includes on an iMac

I have failed for a year to find a way to run SSI (server side includes) on my iMac using the apache web server included with server.app. I am wondering if the server app will allow server-side ...
user avatar
  • 31
3 votes
1 answer
586 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 ...
user avatar
3 votes
1 answer
105 views

Restart Apache causes applications to react really weird

I have macOS High Sierra running on my Mac, and it has worked fine until now. But today I experienced something very weird. I was trying to restart Apache (a web development server), and then my apps ...
user avatar
3 votes
2 answers
886 views

What did the 10.8.2 update do to break an AMP stack's vhosts?

I updated from 10.8.1 to 10.8.2 last week and since then I have yet to get certain vhosts working on my local sandbox. Some of them work fine while others just don't work at all now when they did ...
user avatar
3 votes
1 answer
4k views

Configuring OS X 10.7 Lion Server to serve Rails Apps via Apache

I have a number of Rails Apps working just great under Snow Leopard, but would like to migrate these to Lion. However, like many others, the rug has been pulled from under my feet by the changes that ...
user avatar
  • 203
3 votes
1 answer
10k 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 ...
user avatar
  • 153
3 votes
2 answers
6k views

Apache keeps saying: You configured HTTP(80) on the standard HTTPS(443) port!

I have configured an SSL web site using the macOS Server app (version 5.3). When I examine the Apache log, I see this message (twice): [ssl:warn] [pid 4120] AH01916: Init: (mydomain.net:443) You ...
user avatar
  • 1,524
3 votes
0 answers
681 views

MAMP very slow to serve pages using Virtual Hosts on OSX Sierra

I am running MAMP 4.1.1 on my mac mini with OSX Sierra (10.12.3). lately when I try to load pages for a site using a virtual host, it is VERY slow to load. if i load pages without a virtual host ...
user avatar
3 votes
0 answers
2k views

Disable Apache on El Capitan 10.11.4

How do I disable Apache running because I can't get it down since I cannot run this sudo apachectl stop. It will give me this /System/Library/LaunchDaemons/org.apache.httpd.plist: Could not find ...
user avatar
  • 173
3 votes
1 answer
198 views

Using postgres with launchd without constant issues

I have postgres and passenger installed from homebrew, and use the os x built in apache. I have several rails apps that use postgres which are managed by passenger which in turn is managed by apache. ...
user avatar
2 votes
2 answers
3k views

How to stop multiple httpd instance in macOS Catalina

I am not well experienced with macOS yet and need some help to understand why there are multiple instances of httpd running on my macOS Catalina 10.15.4 Question: If it is not required then how can ...
user avatar
2 votes
2 answers
6k views

Using MAMP 3.4, how do I upgrade to Apache 2.4 and OpenSSL 1.0.2 to meet the ATS iOS 9 requirements?

I've just installed MAMP 3.4 on Yosemite but the Apache version inside is still 2.2. Is there a way to upgrade to Apache 2.4? Moreover I have installed through brew openssl 1.0.2 but MAMP Apache still ...
user avatar
  • 175
2 votes
1 answer
9k views

Can't find my apache error_log folder

new Mac (Yosemite) and setting up a new dev environment. At the moment cannot find any error_log folder at the following paths: /var/log/apache2/error_log /private/var/log/apache2/error_log /var/log/...
user avatar
2 votes
3 answers
17k views

Opening apache conf file with write permissions

I'm trying to open the /private/etc/apache2/httpd.conf file to make some changes. I thought I'd be able to open this with the correct permissions from the command line, so I tried: cd /private/etc/...
user avatar
2 votes
3 answers
8k views

localhost loads default apache page

I'm setting up a localhost and everything looks like it should work but whenever I go to site.local it loads the default Apache localhost page (It works!). Here's a copy of my hosts file: ## ## # ...
user avatar
2 votes
1 answer
3k views

prevent inbuilt apache running using server app

Using OS X 10.11.3 (15D21), with macports, apache 2.4/php 7.0.2 with OS X Server installed (for TimeCapsule sharing) I can't seem to prevent the inbuild apache from starting on reboot. if i use: ...
user avatar
  • 195
2 votes
1 answer
4k views

Apache2 no longer working in Yosemite

After upgrading OSX to yosemite, my local apache2 server is no longer working. Running sudo apachectl restart does not give any error, however nothing is running on localhost:80, and nothing is ...
user avatar
2 votes
1 answer
2k views

Why do httpd and mysqld processes not show up in Activity Monitor?

I'm running Mountain Lions built in Apache2 server. I have started the server and I can see the web pages but I can't see any httpd process in the Activity Monitor. Same goes for MySQL. I can't see ...
user avatar
  • 196
2 votes
1 answer
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?
user avatar
2 votes
1 answer
634 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 ...
user avatar
  • 43
2 votes
2 answers
3k views

How to install memcache on Mavericks? (MAMP)

I have MAMP on my machine, and I would like to install memcache for php, because one of my project throws errors like Fatal error: Class 'Memcache' not found. I installed X-Code from appstore, and ...
user avatar
  • 21
2 votes
1 answer
7k views

Localhost Forbidden

I've read many posts and articles on how to fix this but I'm at a loss as to why nothing I try is working! I have a number of vhosts setup in my document root which are working fine but for some ...
user avatar
  • 699
2 votes
2 answers
2k views

Is it possible to remove all installed terminal applications and extensions back to native without doing a clean OSX install?

Basically I would like to know if it is possible to remove all php, apache, homebrew, mac ports etc. installs back to native without doing a clean install of the OS? If not is the best way to go ...
user avatar
  • 373
2 votes
2 answers
754 views

Change Web Sharing "Sites" folder to SkyDrive?

I'm building a web site. There are three Macs that I commonly use for development, depending upon my location: an iMac in San Diego, and iMac in Vegas, and a MacBook Air in all other places. As I move ...
user avatar
2 votes
2 answers
1k views

Can I restart iTunes remotely from my iPhone/iPad?

I am running iTunes, 10.6.1 on my Mac mini running OS X Lion 10.7.4. This Mac mini has my entire media library including a ton of DVDs that were ripped and transcoded to work on Apple TV. I have 3 of ...
user avatar
  • 820
2 votes
1 answer
4k views

How to turn off localhost web server

I've discovered by accident that my Mac is running a localhost web server. I typed "localhost" into Safari and got "It works!" I get the same result when I go to http://127.0.0.1:...
user avatar
  • 371

1
2
3 4 5
7