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
346 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
59 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
273 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
547 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
890 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
143 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
266 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 ...
3
votes
2answers
5k 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
599 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
175 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
246 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
328 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
281 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
633 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
132 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
168 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
353 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
37 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
429 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
90 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
560 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
131 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
468 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
200 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
866 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 ...
6
votes
4answers
23k 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
122 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
332 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
593 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
354 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
2k 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
136 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 ...
0
votes
0answers
133 views

Web Sharing not getting enabled in MAC OSX10.7.4

I have tried enabling Web Sharing in MAC OSX 10.7.4, but after clicking to check it uncheck it self. I know there's a similar question for it, that is, Web Sharing (Apache) won't turn on in Lion. ...
0
votes
0answers
146 views

Editing $PATH variable for apache on mountain lion

I've just installed ImageMagick using macports and am trying to use it from a php site running on Apache, but nothing I do works to add /opt/local/bin:/opt/local/sbin to my path. So far I've tried ...
0
votes
1answer
293 views

Apache VirtualDocumentRoot, MAMP, .local domain & xip.io?

I have a problem making xip.io works. I have set up my machine to use virtualhosts with MAMP .local domain name. this is my httpd-vhosts.conf file: NameVirtualHost *:80 UseCanonicalName Off ...
1
vote
0answers
103 views

Restore Apache settings

I messed up my apache configuration files, is there some way to restore the apache config files (httpd.conf etc..) to default settings? (I'm using Apache that comes shipped with OS X 10.8.2)
2
votes
2answers
544 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 ...
1
vote
0answers
88 views

Setting the config for PHP 5.3.15 and above

I have PHP 5.3.15 running on my Mac (OS 10.8.2). I have Apache running with virtual hosts. Also, I've installed FreeTDS for connecting to MSSQL. I still need to configure the /php/ext/mssql to run ...
0
votes
2answers
453 views

Lost apachectl bin file

How can I recover the apachectl on my OSX? I deleted it, somehow, and now the command apachectl doesn't exist anymore.
1
vote
4answers
2k views

Starting Apache2 on Mountain Lion

I have tried every option to get apache2 to work in Mountain Lion, and I am baffled by how impossible the task seems to be. I just got a new iMac and on a fresh, clean install, I went about setting ...
2
votes
5answers
3k views

apache on OSX 10.8 not starting

I had Apache working on my 10.8 MPBR. I haven't used it for a few weeks, and now it doesn't seem to start. I get nothing in /private/var/log/apache2. Nothing, meaning no logging at all, error or ...
0
votes
0answers
378 views

How do I switch which instance of php is used on my Mac?

I have three installed versions of php on my Mac. When I check using phpinfo() via a web browser, the one that is being invoked is version 5.3.15. I would like to switch it to the installed instance ...
0
votes
2answers
151 views

How to serve the personal website from different folder?

So far, I read on MacRumors of: System-wide site Files at /Library/WebServer/Documents will, by default, be shared as the root Web site when Web sharing is turned on. These files can be ...
1
vote
2answers
6k views

How do I access my apache web-server (running locally) from Windows 7 running on Parallels?

I'm running Windows 7 from within Parallels running on MacOS X Lion. I've also setup a local apache server; I can access this server from MacOS X via any browser. I've configured this using a ...
1
vote
0answers
626 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
2answers
857 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 ...