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
0answers
2k 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 ...
3
votes
4answers
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-...
3
votes
3answers
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 ...
3
votes
3answers
16k 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 ...
3
votes
2answers
170 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/~...
3
votes
2answers
22k 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
1answer
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 ...
3
votes
1answer
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. ...
3
votes
1answer
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 ...
3
votes
3answers
2k 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. ...
3
votes
2answers
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 ...
3
votes
2answers
245 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 ...
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
1answer
3k 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 ...
3
votes
1answer
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....
3
votes
1answer
650 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 ...
3
votes
1answer
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-...
3
votes
1answer
619 views

Why is brew always reporting success when failing to start a service?

I'm trying to setup httpd with HomeBrew on a mac. As I painfully learned today, brew services start always reports success, even when httpd fails to start. Example failures reported as success: ...
3
votes
2answers
407 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 ...
3
votes
1answer
416 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
1answer
83 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 ...
3
votes
2answers
885 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 ...
3
votes
1answer
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 ...
3
votes
0answers
610 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 ...
3
votes
0answers
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 ...
3
votes
1answer
144 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. ...
2
votes
2answers
447 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 ...
2
votes
2answers
4k views

How to start homebrew Apache on boot?

I've switched out the default apache for the homebrew version. I've stopped the default apache starting on boot with: sudo launchctl unload -w /System/Library/LaunchDaemons/org.apache.httpd.plist ...
2
votes
2answers
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 ...
2
votes
1answer
8k 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/...
2
votes
2answers
2k views

Where are the apache config files stored?

I thought the apache config files were stored in /etc/apache2. Yet if I remove the /etc/apache2 directory and run a sudo /usr/sbin/apachectl start the web server runs and serves up pages. Is there ...
2
votes
3answers
7k 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: ## ## # ...
2
votes
1answer
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: ...
2
votes
1answer
3k 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 ...
2
votes
1answer
1k 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 ...
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
219 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
2answers
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 ...
2
votes
1answer
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 ...
2
votes
2answers
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 ...
2
votes
2answers
749 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 ...
2
votes
2answers
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 ...
2
votes
1answer
168 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:...
2
votes
1answer
25 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
579 views

Does FileMaker Server 16 prevent use of the system apache in macOS?

I'm running FileMaker Server 16 ("FMS") on macOS High Sierra, without the macOS Server package. I set the FMS web server components up on ports 8080 and 8443 because I wanted to continue running other ...
2
votes
4answers
8k views

El Capitan Safari can't open http://localhost/ after starting Apache

In the Terminal window, I started the web server with sudo apachect1 start, supplied the password and then got: /System/Library/LaunchDaemons/org.apache.httpd.plist: service already loaded Then, ...
2
votes
1answer
256 views

How to update internal PHP

How do I update the internal PHP on OS X 10.7.1? I've loaded a current version but since I don't have a simple plan how to update it, I won't do it. I guess it's just easy replacing of files in etc/...
2
votes
1answer
2k views

How to install mod_pagespeed on Apache Server on Mac?

I'm trying to install mod_pagespeed for Apache server, but I can find instructions only for Linux. Is there any tutorial or description on how to do it on Mac?
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 ...

1
2
3 4 5
7