# RoR and PHP on Mac

**URL:** <https://www.ruby-forum.com/t/ror-and-php-on-mac/107645>\
**Category:** Rails\
**Created:** [June 24, 2007, 7:46pm UTC](https://www.ruby-forum.com/t/ror-and-php-on-mac/107645 "2007-06-24T19:46:34Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![donnyverdian](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/278dde/32.png) [@donnyverdian](https://www.ruby-forum.com/u/donnyverdian)\
**Post date:** [June 24, 2007, 7:46pm UTC](https://www.ruby-forum.com/t/ror-and-php-on-mac/107645/1 "2007-06-24T19:46:34Z")

</div>

Hi,  
just want to know… is it possible to have RoR Server and PHP Server on  
my  
iBook G4 ?  
I have installed RoR succesfully and now i want to complete my iBook G4  
with  
PHP server.  
If it possible, anyone knows about step by step guidance ?

thanks before.

rgds,

deevee

---

<div class="post-metadata">

**Author:** ![donnyverdian](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/278dde/32.png) [@donnyverdian](https://www.ruby-forum.com/u/donnyverdian)\
**Post date:** [June 25, 2007, 1:46am UTC](https://www.ruby-forum.com/t/ror-and-php-on-mac/107645/2 "2007-06-25T01:46:14Z")

</div>

There’s no reason why not. I have a MBPro, but used to use a PBG4 and  
have  
had Apache2 purring along serving PHP and static pages on port 80 and  
pointing at virtual hosts on a whole bunch of high number ports  
(starting at  
8000 is not a bad practice). Look into the VirtualHost directive in  
httpd.conf.

deevee-2 wrote:

> thanks before.
> 
> rgds,
> 
> deevee
> 
> >

–  
View this message in context:  
[http://www.nabble.com/RoR-and-PHP-on-Mac-tf3972802.html#a11279633](http://www.nabble.com/RoR-and-PHP-on-Mac-tf3972802.html#a11279633)  
Sent from the RubyOnRails Users mailing list archive at [Nabble.com](http://Nabble.com).

---

<div class="post-metadata">

**Author:** ![donnyverdian](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/278dde/32.png) [@donnyverdian](https://www.ruby-forum.com/u/donnyverdian)\
**Post date:** [June 24, 2007, 8:19pm UTC](https://www.ruby-forum.com/t/ror-and-php-on-mac/107645/3 "2007-06-24T20:19:38Z")

</div>

Web servers have to run on a TCP port, you can’t run two on the same  
port.

the default port for HTTP traffic is 80.

I don’t think its possible to get ruby and php to run on the same  
instance of apache, but you can install another apache instance and  
change the port it runs on to something other then what your RoR server  
runs on.

Look in the httpd.conf file for the line that says “Listen…”

as long as the number is different on each apache instance you run, you  
can run as many as you want.

My suggestion, use ports 8080 and 8088 are two known HTTP alternate  
ports.

[Service Name and Transport Protocol Port Number Registry](http://www.iana.org/assignments/port-numbers) – Shows you a collection  
of known http ports.

] duran.goodyear  
] removed\_email\_address@domain.invalid  
] 267.978.2106

---

<div class="post-metadata">

**Author:** ![donnyverdian](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/278dde/32.png) [@donnyverdian](https://www.ruby-forum.com/u/donnyverdian)\
**Post date:** [June 25, 2007, 8:19pm UTC](https://www.ruby-forum.com/t/ror-and-php-on-mac/107645/4 "2007-06-25T20:19:20Z")

</div>

anyone knows bout step-by-step guidance to install PHP and Apache on Mac  
OSX  
I know it’s out of topic question… but please help me…

thanks

rgds,

deevee

---

<div class="post-metadata">

**Author:** ![donnyverdian](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/278dde/32.png) [@donnyverdian](https://www.ruby-forum.com/u/donnyverdian)\
**Post date:** [June 25, 2007, 9:02pm UTC](https://www.ruby-forum.com/t/ror-and-php-on-mac/107645/5 "2007-06-25T21:02:28Z")

</div>

On 6/25/07, Donny V. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> anyone knows bout step-by-step guidance to install PHP and Apache on Mac OSX  
> I know it’s out of topic question… but please help me…

“install PHP and Apache on Mac OSX”

Good grief.

hint: type _that exact phrase_ into Google and see what happens…

–  
Hassan S. ------------------------ removed\_email\_address@domain.invalid

---

<div class="post-metadata">

**Author:** ![donnyverdian](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/278dde/32.png) [@donnyverdian](https://www.ruby-forum.com/u/donnyverdian)\
**Post date:** [June 25, 2007, 1:46am UTC](https://www.ruby-forum.com/t/ror-and-php-on-mac/107645/6 "2007-06-25T01:46:14Z")

</div>

There’s no reason why not. I have a MBPro, but used to use a PBG4 and  
have  
had Apache2 purring along serving PHP and static pages on port 80 and  
pointing at virtual hosts on a whole bunch of high number ports  
(starting at  
8000 is not a bad practice). Look into the VirtualHost directive in  
httpd.conf.

deevee-2 wrote:

> thanks before.
> 
> rgds,
> 
> deevee
> 
> >

–  
View this message in context:  
[http://www.nabble.com/RoR-and-PHP-on-Mac-tf3972802.html#a11279634](http://www.nabble.com/RoR-and-PHP-on-Mac-tf3972802.html#a11279634)  
Sent from the RubyOnRails Users mailing list archive at [Nabble.com](http://Nabble.com).

---

<div class="post-metadata">

**Author:** ![donnyverdian](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/278dde/32.png) [@donnyverdian](https://www.ruby-forum.com/u/donnyverdian)\
**Post date:** [June 27, 2007, 10:13am UTC](https://www.ruby-forum.com/t/ror-and-php-on-mac/107645/7 "2007-06-27T10:13:29Z")

</div>

> “install PHP and Apache on Mac OSX”
> 
> Good grief.
> 
> hint: type _that exact phrase_ into Google and see what happens…

Why people don’t know how to use Google boggles me a lot as well.  
Especially given that asking that question via a mailing list is a  
million(exaggeration) times slower in terms of getting results than  
google.

BTW Donny you can find Google at [http://www.google.com/](http://www.google.com/)

PS. Sorry about the rant.

To say something on topic. Yes, I can confirm, s. ross’ claim. I have  
an Apache 2 running PHP and Rails sites via VirtualHosts.

e.g. A rails virtual host

\<VirtualHost \*\>  
ServerName rails  
DocumentRoot /home/sam/hello/public/  
ErrorLog /home/sam/hello/log/apache.log

```
<Directory /home/sam/hello/public/>
 Options ExecCGI FollowSymLinks
 AddHandler cgi-script .cgi
 AllowOverride all
 Order allow,deny
 Allow from all
</Directory>

```

e.g. A PHP virtual host

\<VirtualHost \*\>  
ServerAdmin removed\_email\_address@domain.invalid  
ServerName timereport  
ServerAlias timerreport

```
    DocumentRoot /var/www/timereport/
    <Directory />
            Options FollowSymLinks
            AllowOverride None
    </Directory>

    <Directory /var/www/timereport/>
            Options Indexes FollowSymLinks MultiViews
            AllowOverride None
            Order allow,deny
            allow from all
    </Directory>

```

---

<div class="post-metadata">

**Author:** ![donnyverdian](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/278dde/32.png) [@donnyverdian](https://www.ruby-forum.com/u/donnyverdian)\
**Post date:** [June 27, 2007, 5:23pm UTC](https://www.ruby-forum.com/t/ror-and-php-on-mac/107645/8 "2007-06-27T17:23:18Z")

</div>

On Jun 25, 2007, at 11:33 AM, Donny V. wrote:

> anyone knows bout step-by-step guidance to install PHP and Apache  
> on Mac OSX  
> I know it’s out of topic question… but please help me…

The easiest way:

Step 1: Download and run MAMP.  
Step 2: There is no step 2.
