Re: Question before upgrading to 5
| From: | Tijnema ! | Date: | Thu, 22 Mar 2007 14:28:39 +0000 |
| Subject: | Re: Question before upgrading to 5 | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-251090@lists.php.net to get a copy of this message | ||
On 3/22/07, Jake McHenry <linux@nittanytravel.com> wrote:
I don't want 2 instances of apache running, your over thinking this... I only asked if I need to change only the prefix, or if there is anything else, to get both php versions installed. Once I see my scripts are working ok, or not, I'll be getting rid of php4. I'm not running a dev machine, this is production, and the only one I have currently, my backup died last week and I haven't gotten the parts for it yet. Is prefix the only option I need to change? Or do I need to change these too? --datadir=/usr/share \ --includedir=/usr/include \ --libdir=/usr/lib \ --libexecdir=/usr/libexec \ --localstatedir=/var \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ --with-exec-dir=/usr/bin \ Thanks, JakeAFAIK are these settings all relative to prefix. So if your prefix is /opt/php5, datadir would become /opt/php5/share, includedir would become /opt/php5/include etc. Tijnema
Jake McHenry wrote:Sorry about the delivery and read requests.. I was tiredand forgot to turnthem off for the list......in the listalternatively you can search for 'Rasmus' and 'ProxyPass'running botharchive and use Rasmus' rather cool ProxyPass solution toI 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.comI don't need them running parallel, only both installedphp4 and php5 ... his explanation should give you enough info to set it up.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 :-)yet, have aTijnema ! wrote:On 3/22/07, Jake McHenry <linux@nittanytravel.com> wrote:php5, andHi everyone, I just got done going through all my configure options forfinally configure finished successfully... I didn't install itsure all myquestion. Can I have both 4 and 5 installed temporarily until I'ma virtualsure sincescripts work ok? They should, I've been careful, but I want to bethis is the only server I currently have. I was going to installsomeone cancopy of fedora and do testing, but I don't have time, hopefullyprefix to getYes, I just wanted to make sure I only needed to change thedo this theanswer. I think I just have to change the prefix to something other than default and load the new module in httpd. If I had more time I wouldit won't breakright way, but we all know how that goes... If this will work, I can then just uninstall 4.. Hopefullydouble check....anything. I'll post my configure options if anyone would like toproblems. So ifThanks, JakeIf you use make install on the second one, it will add the libphp5 library to your httpd.conf, and then you would have libphp4 and libphp5 in your httpd.conf. That is guaranteed to giveyou comment out one of the 2, then it works fine.them both installed-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.446 / Virus Database: 268.18.17/730 - Release Date: 3/22/2007 7:44 AM -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.446 / Virus Database: 268.18.17/730 - Release Date: 3/22/2007 7:44 AM -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php