Re: Question before upgrading to 5

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Jochem Maas wrote:
Jake McHenry wrote:
I don't need them running parallel, only both installed

I think you missed the point. you would have 2 apaches running, that is correct
but the trick is to set it up so that they use the same document roots
for each site that you are trying to convert.

the beauty of this is that you can literally run the same site in php5 and php4
simulaneously with urls something *like*:

php4.mydevsite.com
php5.mydevsite.com	(ProxyPassed to 'inner' apache)


were HOSTS file contains:

127.0.0.1 php4.mydevsite.com php5.mydevsite.com

and both outer and inner apache's use the same docroot for the given site.

obviously it's just one way of setting up a comfortable dev environment - as long
as you have something that allows you to doo your tihng without to much pain then thats
the main thing :-)

I've handled this by having the second installation of Apache listen on a different port. The default is of course 80, so the directive reads:
  Listen 80
But the second install can listen on, for instance, 8080
 Listen 8080

Then you can access the site, using the same urls, but with the 8080 port:
    http://www.example.com:8080/somepage.html

--

_____________________
Myron Turner
http://www.room535.org
http://www.bstatzero.org
http://www.mturner.org/XML_PullParser/

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux