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

learn more… | top users | synonyms

0
votes
1answer
112 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 ...
0
votes
0answers
605 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] [error]...
0
votes
1answer
425 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 <...
0
votes
0answers
530 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 ...
2
votes
1answer
905 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 /opt/local/apache2/...
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 ...
1
vote
0answers
152 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 11:21:...
3
votes
1answer
593 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-...
1
vote
0answers
167 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 /...
0
votes
1answer
1k 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
545 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 ...
0
votes
0answers
137 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 ...
4
votes
2answers
15k 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 ...
0
votes
0answers
176 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
224 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
2answers
607 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.
0
votes
1answer
971 views

How to change MPM prefork to worker on default Apache OSX installation?

On CentOS, the Apache configuration can be found in /etc/sysconfig/httpd How to change MPM prefork to worker on default Apache OSX installation?
1
vote
0answers
147 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
709 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
102 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 ...
2
votes
3answers
11k views

Is there a GUI front-end to Apache for Mac OS X (Lion)?

I am using the default Apache and PHP installs that are present in OS X Lion. But I would like to make some settings (like adding Virtual Hosts to Apache) using a GUI interface. Is there such a thing? ...
0
votes
1answer
3k views

localhost doesn't find all files in Sites-Folder

I have a strange problem: I installed XAMPP long time ago and created a folder with an index.php file in my sites folder. When i start XAMPP and go to the browser localhost/~username i can see the ...
2
votes
2answers
945 views

Apache virtualhost - Mac OSX 10.7.3

After upgrading to Lion, all my virtualhosts stopped working. They redirect to "It works" main apache page on my device for some weird reason. Example: /etc/hosts: 127.0.0.1 myhost.com <...
0
votes
0answers
454 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
161 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 ...
23
votes
4answers
19k views

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 ...
0
votes
2answers
401 views

Pow conflict when pointing to my IP

Some time ago I had installed Pow to run my sinatra apps. Now today I wanted to use my Mac's built in web sharing to test an html file as rendered on my iPod Touch. I browsed to 10.0.1.20/~francesco/ ...
4
votes
2answers
9k views

How do I enable PHP on Mountain Lion OS X 10.8?

Just upgraded to Mountain Lion, and wanted to make PHP work on the built-in version of Apache.
19
votes
3answers
52k views

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 ...
1
vote
2answers
1k views

Cannot start MySQL server with AppleScript - Snow Leopard

I've sucessfully installed MySQL server (5.5.11) on my MAC Snow Leopard. I can start the server using PreferencePane, using command line sudo /usr/local/mysql/bin/mysqld_safe but cannot use the same ...
3
votes
2answers
882 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 ...
2
votes
0answers
1k 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 ...
0
votes
1answer
183 views

How do I get Web Sharing back on Mountain Lion? [duplicate]

Possible Duplicate: Enabling Apache in Mac OS X Mountaion Lion Like the title says but with a twist. I DO NOT want to use localhost, but my internal IP instead so I don't want to use all the ...
0
votes
1answer
62 views

How should I go about restarting a custom Apache install?

I'm working on a server that was configured by a former employee and I need to restart Apache. Unfortunately, it's not the default install and it's in a different place and apachectl doesn't exist ...
6
votes
2answers
17k views

How do I stop Apache from starting up automatically?

I'm running Mac OS X Lion 10.7.2 and Web Sharing is turned off in System Prefs. I don't think this is specifically related to Lion. Basically, I'm a frontend developer and there are always backend ...
3
votes
1answer
6k 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 ...
0
votes
1answer
526 views

Install Apache, PHP and MySQL on Mac w/o MacPorts?

For some reason I can't use MacPorts. So the question is if it's possible to install Apache, PHP and MySQL on Snow Leopard w/o using MacPorts? Please don't offer MAMP or other bundles. Thanks in ...
1
vote
3answers
4k views

Apache permissions

I'm trying to get LAMP working on OSx Lion and am having a little trouble. Have Apache, MySQL, and PHP set up and working just fine. Have turned on "Website" under sharing in Settings. Removed the ...
0
votes
0answers
2k views

How can I ask Mountain Lion to have apache2 recognize .cgi and execute it as a CGI script?

I've upgraded from Lion to Mountain Lion, and have noticed as a result of the upgrade, besides my screen saver saying it won't work on this version of OSX, Apache is displaying the private web ...
0
votes
1answer
744 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?
0
votes
2answers
140 views

Apache doesn't recognize a local zone (BIND) unless restarted frequently

Apache does not recognize the local zone .dev -- returns 404 Not Found. If Apache is restarted it will recognize the local zon. If inactive for ~1hr it no longer recognizes the local zone -- returns ...
3
votes
1answer
4k 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 ...
0
votes
0answers
900 views

Web Sharing won't start after I enable vhosts

This is the first time I've ever used apache, so there's a pretty good chance I'm doing something horribly wrong. I followed some instructions online to edit /private/etc/apache2/httpd.conf make my ...
0
votes
1answer
1k views

How do I set a recognized Apache DocumentRoot under Lion?

I have a fresh Lion install, and to configure Apache, I've edited all of the references to DocumentRoot (and the Directory entry for DocumentRoot) to "/Users/jonathan/mirror" (with or without quotes ...
0
votes
2answers
144 views

web sharing for vhosts?

I'd like to be able to share websites I'm developing with other users in my network using Web Sharing. I don't develop in my 'Sites' folder though, I have a separate folder for all my projects. (Note:...
0
votes
1answer
109 views

Apache module run under MacPorts gives SQLite error

I have an Apache module, compiled from source, which works just fine with the stock Apache 2.2 on Mac OS X 10.5 through 10.7. However, under the Apache 2.2.22 installed by MacPorts, running /opt/local/...
2
votes
2answers
2k views

Cannot connect to server “localhost”?

I've been developing web apps for several months now on my mac using the built in apache server and everything has been fine. I restarted my mac this morning and now when I try to connect to anything ...
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 ...
1
vote
1answer
385 views

Add custom options to Apache Vhost config

In Snow Leopard Server I was able to add lines to the Apache vhost files in /etc/apache2/sites in order to add custom configuration options. In Lion Server those changes are overwritten as soon as ...