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

learn more… | top users | synonyms

1
vote
1answer
20 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
0answers
53 views

Allow access to www.bbc.co.uk/cbeebies, but not www.bbc.co.uk

I'm using OS X Parental Controls to limit what my son can do on our Mac. He has his own user account, managed by the Parental Controls. Under Website Restrictions, I've chosen "Allow access to only ...
2
votes
1answer
64 views

Apache “Client denied by server configuration”

When I am running my localsite/~user.name/ on OS X 10.7.5 it is loading the the correct page but in the log /var/log/apache2/error_log it's recording this message. [Fri Mar 14 00:17:07 2014] [error] ...
1
vote
2answers
68 views

How can I set a web server in a specific directory in OSX Mavericks?

I am running a web server in OSX Mavericks using the default directory location ($HOME/Sites). How can I add sites from distinct arbitrary directories ? I have found instructions about how to change ...
0
votes
1answer
32 views

Uninstalling all instances of apache, php and mysql

So When I first got my mac mini, I installed things like apache, mysql and php - not knowing that apple either came with these or had a tool called mamp that would allow you to run these. I thought ...
0
votes
0answers
35 views

Terminal freezes because of corrupt file

I wanted to edit the httpd.conf from apache2. I wanted to uncomment the php5 load line so it gets included. I started the terminal and used sudo nano /etc/apache2/httpd.conf to edit the file and ...
1
vote
1answer
196 views

Access to many websites under OS X Server on port 80

I've installed two web applications (Jenkins and Redmine) on my OS X Mavericks Server. Both are available in local network from other computers as: myserver.local:8080 (Jenkins) ...
0
votes
1answer
32 views

Why localhost works even apache is off?

I installed ZendServer CE. This is my /usr/local/zend/apache2/conf/httpd.conf file: http://codepad.org/vorWrTKb This is my /etc/hosts file. ## # Host Database # # localhost is used to configure the ...
1
vote
1answer
162 views

Reinstall/restore Apache httpd in OS X

How to reinstall or restore Apache httpd in OS X? I want to do that because I deleted httpd.conf file (both /etc/apache2/httpd.conf and the original at /etc/apache2/original/httpd.conf).
0
votes
1answer
27 views

Login error after httpd.conf edits

I am having a very weird error that I cannot find any help on the rest of the internet for. My issue is that I was editing my httpd.conf (in /Private/etc/apache2) so that I could run the web server ...
2
votes
1answer
73 views

What permissions to host website for OS X Server?

I am trying to install Dropplet on my Mavericks Server. I have created the site in Server and copied the files to the root directory. When I go to configure it, I get the following error, "It seems ...
1
vote
1answer
68 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?
0
votes
0answers
38 views

Allowing any admin user to run MySQL server on startup

I recently installed MAMP on our server in order to launch a Wordpress site. Though everything is working fine I am not the computer's main user, something which results in long downtime when it has ...
3
votes
1answer
105 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 ...
0
votes
1answer
256 views

Where is BSD.pkg on OS X 10.9?

I want to extract BSD.pkg file and pull some apache configuration file to cover my apache http.conf file. I locate in /Library/Receipts/, But the BSD.pkg file is empty.
1
vote
1answer
487 views

I can not visit localhost with apache on OS X 10.9

The Chrome alert me Oops! Google Chrome could not connect to localhost But my apache still running: 501 80299 71841 0 2:35PM ttys003 0:00.00 grep httpd I paste some piece of important ...
0
votes
0answers
71 views

Compare Apache Settings on Different Machines?

Is there a way to easily compare the Apache settings for two machines? I have a MacBook Air and an iMac, both running 10.9.1. On both machines, I am trying to run a site via localhost. ...
1
vote
1answer
141 views

Does Apache require special settings to run a command?

I am trying to create an image using Bio::Perl/Bio::Graphics and implement it on my webserver. However, whenever I am trying to run my scripts online, the command line does not respond to run my ...
2
votes
2answers
1k views

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 ...
1
vote
1answer
210 views

Install Apache Module X-Sendfile

I wanted to install the Apache-Module X-Sendfile as shown in http://elivz.com/blog/single/mod_xsendfile/ on my OS X Maverics. After downloading and unpacking the files, I've used the command sudo ...
0
votes
0answers
86 views

10.9 Mysql serving content stunningly slow on restart until data has been loaded once

I have a 2012 iMac (12,2) with 20GB RAM running a little server at work. Since I installed Mavericks (a terrible, terrible error in judgement I wish I'd never made), every time I restart Spotlight ...
2
votes
1answer
113 views

How can I make existing permissions apply to new files?

I have an SSD that I have created two partitions on. The first is used for the OS X to install the OS (Mavericks) and the other to place all the source of code of my projects and data that I don't ...
1
vote
1answer
126 views

Why does Apache want to use xcode for installation resources?

When I try to run ./configure When building Apache with no unusual options this is part of the output: checking for APR... yes setting CC to ...
1
vote
1answer
127 views

How to undo “sudo rm -rf /etc/apache2/other/+php-osx.conf”

After I did this: sudo unlink /usr/local/php5 sudo rm -rf /usr/local/php5-* To remove the supplemental configuration file that was installed with the updated PHP software, you may be able to remove ...
1
vote
1answer
185 views

Apache goes to sleep on new OS X 10.9

I am running the built-in apache server on an iMac to serve my personal website, just some static page. I have been using this machine for a couple of years. I just start it with sudo apachectl ...
1
vote
1answer
233 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?
1
vote
1answer
3k 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
1k 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, ...
1
vote
1answer
93 views

Apache truncates files at 65536 bytes after Mavericks upgrade

I was using a mac-ports based LAMP stack before upgrading to Mavericks from Mountain Lion and all was fine.. After the upgrade, apache has started truncating static files.. If I use curl to fetch a ...
2
votes
2answers
469 views

Run script before restart/shutdown

Is it possible to execute a script/command right before OS X is shutting down or restarting? I'd like to run sudo apachectl stop to stop apache from auto-starting.
1
vote
2answers
106 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 ...
1
vote
1answer
235 views

How to configure Apache for XAMPP on Mac OS X Lion to use mod_rewrite?

I am totally newbie when it comes to .htaccess or Apache. I don't know how it works. My URLs are like http://localhost/category.php?category=something and I'd like to get the variable value as ...
1
vote
1answer
35 views

Trouble accessing the OS X Lion web server from other device

I'm developing a web app for mobile phones. To easily get a feel of how it is to use, I simply copied the app into ~/Sites (after enabling web sharing in the System Preferences). Navigating to ...
0
votes
0answers
300 views

Apache not running on my machine on OS X 10.7.5

After doing tail -20 /var/log/apache2/error_log: [Fri Sep 13 03:14:30 2013] [error] [client ::1] client denied by server configuration: /Library/WebServer/Documents/ [Fri Sep 13 03:17:00 2013] ...
0
votes
1answer
70 views

What is wrong with my PHP on my apache2 web server (OS X 10.6)

I have a web server on my mac mini that runs the default (installed with snow leopard) apache2 web server. It works fine for any programming language that outputs stdout for cgi scripts, but every ...
2
votes
1answer
301 views

Apache problem with hostname on OSX 10.8.4

After updating to 10.8.4 I am having trouble running my macports apache server. I stop the built-in apache with: sudo apachectl stop, then I try to start macports apache with: sudo ...
1
vote
0answers
110 views

Can Apache 2.2.24 from MacPorts 2.1.3 run stably on Server 10.6.8 Build 10K549 with symlinked targets?

Mac OS X Server 10.6.8 Build 10K549 running Apache 2.2.24 via MacPorts 2.1.3. Native Mac OS X Server http server disabled. The error message I'm getting in the log is as follows: [Tue Aug 13 ...
0
votes
0answers
112 views

How to set X-Forwarded-Server to reflect virtual host name (10.8.4 Server)

On my server (which runs 10.8.4 Server), the fqdn is a.example.com, but the same IP number is also configured for b.example.com, c.example.com, and d.example.com. A user going to http://a.example.com ...
0
votes
1answer
912 views

Google Chrome could not connect to localhost

I am using OS X Mountain Lion 10.8.4. I tried the steps in Installing Apache, PHP, and MySQL on Mac OS X to setup my dev environment, but I am not able to open the virtualhost I created – or ...
0
votes
0answers
425 views

localhost MAMP OS X 10.8.4 upgrade tips

Follow the instructions exactly at http://documentation.mamp.info/en/mamp/installation/updating-mamp... 'COPY' and do not drag folders across to htdocs or from one folder to another. I dragged a ...
0
votes
2answers
89 views

Where would I find where an .htaccess file is located and being used on a Mac OS X Lion server that sets Basic Auth on an Apache server?

I've installed some software, namely, a continuous integration (CI) server (Jenkins) on a Mac Mini running Lion Server. The server, by default, runs from port 8080 on local host via the url: ...
2
votes
1answer
473 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 ...
2
votes
2answers
8k views

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 ...
1
vote
0answers
96 views

Mac 10.7.3 Web Sharing Won't Start

When I turn it on it says "starting" for a split second and then turns back off. I reinstalled Lion and it still happens. Trying to start it from the command line: cade:~> sudo launchctl load -w ...
3
votes
1answer
169 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 ...
0
votes
0answers
87 views

Apple Mail authentication failure to Apache James while Thunderbird connects

I have an Apache James 2.3.2 email server running on RHEL 5. I have been connecting to it successfully for months using Thunderbird (currently version 12.0.1). I am attempting to connect to the same ...
0
votes
1answer
283 views

Understanding install of mod_wsgi on apache terminal commands

I'm installing a django development environment on OSX. Apache is, of course, installed by default. From my (very limited) understanding of Macs, I don't believe there is preconfigured functionality ...
0
votes
1answer
194 views

Unable to enable PHP in OSX 10.8 mountain lion

I have enabled php according to PHP's instructions and uncommented, #LoadModule php5_module libexec/httpd/libphp5.so in /private/etc/apache2/httpd.conf. However the line, #AddModule mod_php5.c ...
1
vote
1answer
1k 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. ...
0
votes
0answers
134 views

I am having trouble getting apache to work via terminal on mac os x 10.8.3

I am a beginner with the terminal app. - I think , while following a tutorial for creating a user configuration file for apache, that I messed something up internally with apache. I cannot even access ...