Apple Event: May 7th at 7 am PT

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Setting up a local web server on Lion and Mountain Lion

Read etresofts article at https://discussions.apple.com/docs/DOC-3083. The suggested edit of username.conf for Perl did not work. Resulted in "cannot connect to localhost" error. Did not create a new entry in /var/log/apache2/errorlog. The non-Perl edit works ok. Thanks.

MacBook, OS X Mountain Lion (10.8.2), Adobe CS5 mysql wkbch 5.2.45

Posted on May 15, 2013 12:13 AM

Reply
7 replies

May 16, 2013 6:52 PM in response to leroydouglas

leroydouglas wrote:


What is the advantage of this approach (mentioned above) vs. using MAMP???

Primarily that there are people who will help just becaues it is interesting. MAMP isn't interesting. You can install it and it will run fine (but not as often as people suggest) but you won't learn a thing about setting up Apache, PHP, and MySQL. Then, when you want to deploy on some shared hosting site, or worse - in an enterprise IT environment, you are pretty much at the mercy of IT.


Plus, I find it horribly inelegant to install duplicate copies of software that is already on the machine.

Jun 23, 2013 11:55 AM in response to jamesfromforestville

I've faced the same issue and solved it thanks to http://osxdaily.com/2012/09/10/enable-php-apache-mac-os-x/. etresofts's article only says how to enable PHP in httpd.conf, but for Perl you have to do exactly the same: uncomment (remove '#') line that says LoadModule perl_module libexec/apache2/mod_perl.so (should be just above the PHP one). After that localhost and localhost/~username show the websites.

Setting up a local web server on Lion and Mountain Lion

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.