Questions tagged [apache]

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

355 questions
44
votes
6 answers

Where is the httpd error log file on Lion?

I'm running a local web (development) server on my mac with apache installed. I'm sure it depends on my apache config but basically I just want to run tail -f /var/log/httpd-error.log in a terminal so I can see the error and warnings that occur…
FLY
  • 3,464
  • 6
  • 25
  • 35
30
votes
11 answers

How to fix 403 in Mac OS X built-in Apache?

I'm trying to set a local environment on my new MacBook Air 13": built-in Apache with my own DocumentRoot, PHP, and MySQL. I usually update /etc/hosts just to run my local websites with a pretty permalink: local/example. For references, I usually…
João
  • 925
  • 10
  • 19
  • 31
26
votes
5 answers

How do I get my user directory working for web sharing again?

I had web sharing enabled in Lion and a web site at http://localhost/~user, where user is my User directory. When I upgraded to Mountain Lion, web sharing (Apache) remained enabled and I can go to localhost and get the "It works!" default web page,…
indiv
  • 671
  • 1
  • 6
  • 13
25
votes
1 answer

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?
Till
  • 477
  • 1
  • 5
  • 11
24
votes
5 answers

How to remove preinstalled Apache and PHP from Mac OS Sierra

I have been trying to figure out how to completely remove preinstalled Apache and PHP from my macbook pro ... The reason is that I am using the homebrew version of both Apache and PHP. The current version of PHP that I am using is PHP 7 as you can…
FaISalBLiNK
  • 631
  • 2
  • 5
  • 11
21
votes
2 answers

El Capitan Apache error message AH00526

Yesterday I upgraded my Mac from Mountain Lion to El Capitan. Trying to get apache2 working I get the following error message: AH00526: Syntax error on line 20 of /private/etc/apache2/extra/httpd-mpm.conf: Invalid command 'LockFile', perhaps…
Reino Kurki-Suonio
  • 211
  • 1
  • 2
  • 3
19
votes
3 answers

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 Mac OS X Lion into a web server, so that I can…
João
  • 925
  • 10
  • 19
  • 31
17
votes
2 answers

How to view status of service (e.g. whether it's running) in a format similar to Linux `systemctl` using macOS `launchctl`?

How to view status of service (e.g. whether it's running) in a format similar to Linux systemctl using macOS launchctl? I want to view the status of a service in macOS using launchctl in a format similar to Linux systemctl, e.g: systemctl status…
Shuzheng
  • 1,251
  • 3
  • 13
  • 25
17
votes
6 answers

problem accessing localhost on Mac OS X Mavericks...it was working fine until I rebooted today

I am perplexed about the problem I am having and would really appreciate help resolving it. I have an iMac running Mac OS X Mavericks 10.9.2 I have set up my apache to serve documents from the server root /Volume/sites/ I am using Dynamic Virtual…
Ali Samii
  • 877
  • 2
  • 8
  • 22
15
votes
6 answers

Apache2 (Httpd) not working after update to High Sierra

I have an issue where Apache will not start after updating to High Sierra 10.13.1. There isn't anything showing in the error logs, but when I try to apachectl start nothing happens. If I run apachectl configtest I receive "Syntax OK I have used…
Alcyeonnero
  • 173
  • 1
  • 1
  • 8
14
votes
6 answers

Enable URL rewriting (mod_rewrite) using .htaccess files in ~/Sites on Lion

I cannot get mod_rewrite to work on Lion. I am developing a number of websites locally, in ~/Sites, using .htaccess files. I am on 10.7.3 and I have not touched any configuration files except for enabling PHP in httpd.conf (which works). I know…
Niels Heidenreich
  • 281
  • 2
  • 3
  • 11
14
votes
2 answers

Cannot ping localhost: "unknown host" on Mac OS X El Captain

I am trying to resolve localhost which right now is "not found" if I ping localhost - I am getting ping: cannot resolve localhost: Unknown host I have made sure that the /etc/hosts file has the below entries that are necessary to have the…
Satya
  • 281
  • 1
  • 2
  • 8
13
votes
7 answers

How can I increase command line memory_limit for PHP with MAMP PRO?

I've edited every single php.ini on my Mac (at least all the ones found by "locate") and still can't seem to increase the memory_limit directive for PHP. I'm using MAMP PRO and running PHP scripts in the terminal. How to solve this?
Alex Weber
  • 252
  • 1
  • 2
  • 9
13
votes
4 answers

How to find out what launch agent or daemon is starting a process

After installing Autodesk Smoke, I have two httpd processes running all the time, and I'd like to stop them. When I use sudo killall httpd, they stop and are restarted right away. Activity Monitor shows that the parent process is launchd, but how…
Elliott
  • 2,731
  • 4
  • 28
  • 59
12
votes
2 answers

Enabling Apache in Mac OS X Mountaion Lion

This is my first Mac, it's Mountain Lion, and I know how to enable Apache through Preferences -> Sharing -> Web Sharing, but how the hell do I do it in Mountain Lion? I find that that button no longer exists, so what's the Ternimal command to turn…
greduan
  • 401
  • 1
  • 6
  • 15
1
2 3
23 24