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

learn more… | top users | synonyms

3
votes
4answers
13k views

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 ...
2
votes
2answers
1k 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
3k 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 ...
3
votes
2answers
6k views

How to upgrade Apache 2.2 to 2.4 in MacOSX Mavericks

My ISP has upgraded the server to Apache 2.4.9 from 2.2.xx. It has broken a couple things in my setup and I want to bring my local copy of Apache 2.2.26 to 2.4.9 so that I can test locally. I've been ...
5
votes
3answers
6k views

Trying to run apache server on Mavericks

I am trying to set up an Apache vhost on Mavericks, something that I was able to do easily on 10.6.8. I am using the default Apache that is preinstalled on a fresh install of OS X 10.9.2 $ sudo ...
1
vote
1answer
120 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 ...
3
votes
0answers
243 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
3k 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] ...
3
votes
2answers
4k 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 ...
1
vote
1answer
590 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
189 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
523 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
91 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 ...
3
votes
1answer
8k 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
47 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
528 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
812 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?
3
votes
1answer
333 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
754 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
965 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
166 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
314 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 ...
4
votes
2answers
6k 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 ...
2
votes
2answers
820 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 Mac OS X 10.9 (Mavericks) setup. After downloading and unpacking the files, I've used ...
2
votes
1answer
206 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
293 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
434 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
340 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
905 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
6k 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

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
154 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
1k 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.
2
votes
2answers
196 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
472 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
39 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
502 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
99 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
732 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
138 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
1answer
1k 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
502 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
334 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
1k 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 ...
9
votes
4answers
32k 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
139 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
378 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
1answer
853 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
436 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
3k 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. ...