You just have to turn it on in the apache config file. It's been a while since I did it but I think it was in /etc/apache2/httpd.conf and I had to remove the comment "#" from the front of the line that loaded the PHP module. Just pulled it up and the line should be like this:

LoadModule php5_module libexec/apache2/libphp5.so

You'll have to stop and start apache after the change. I also modified the php5_module to process all .html files and not just .php files:

<IfModule php5_module>
        #CB 10/8/14 Added .html so PHP is processed on all files
        AddType application/x-httpd-php .php .html
        AddType application/x-httpd-php-source .phps
        <IfModule dir_module>
                DirectoryIndex index.html index.php
        </IfModule>
</IfModule>

This was on OSX 10.7 but should be similar for newer versions of OSX. I really need to upgrade that web server box :)

CB

On 12/3/14, 3:22 PM, Dionipher Presas Herrera wrote:
what? is php available on my mac? where can i find it?
Il giorno 02/dic/2014, alle ore 05:47 PM, 'Chris Blouch' via MacVisionaries 
<macvisionaries@googlegroups.com> ha scritto:

Just curious why you need MAMP when OSX already has Apache and PHP installed? 
Seems like it would be less work to just install MySQL on top of the existing 
stuff.

CB

On 11/30/14, 4:07 AM, BobH. wrote:
This sounds like a browser setting that prepends, by assumption, that all
links start with www.  I hate that and turned it off;  that should fix it.

A page with a link like that is erronious. Glad to see someone else using
that product, I used a variant on XP for years.

RobH.
----- Original Message -----
From: "Jeff Berwick" <j...@berwick.name>
To: <macvisionaries@googlegroups.com>
Sent: Sunday, November 30, 2014 12:10 AM
Subject: MAMP


Hi there,

I was having some problems with my installation of MAMP, so I have removed
it and downloaded the most recent version and installed it.

I am unable to get to the default web location, I just get the main start
page.  When I click on the "My Website" link, I get a message that Safari
can't find www.localhost - Why would it be looking for www.localhost instead
of localhost and how can I change/fix this?

Any assistance would be greatly appreciated.

Tia,
Jeff

--
¯\_(ツ)_/¯

--
You received this message because you are subscribed to the Google Groups 
"MacVisionaries" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to macvisionaries+unsubscr...@googlegroups.com.
To post to this group, send email to macvisionaries@googlegroups.com.
Visit this group at http://groups.google.com/group/macvisionaries.
For more options, visit https://groups.google.com/d/optout.

--
¯\_(ツ)_/¯

--
You received this message because you are subscribed to the Google Groups 
"MacVisionaries" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to macvisionaries+unsubscr...@googlegroups.com.
To post to this group, send email to macvisionaries@googlegroups.com.
Visit this group at http://groups.google.com/group/macvisionaries.
For more options, visit https://groups.google.com/d/optout.

Reply via email to