RE: [PHP] Question before upgrading to 5
- From: linux@xxxxxxxxxxxxxxxxx ("Jake McHenry")
- Date: Thu, 22 Mar 2007 19:07:40 -0400
I'll think about it.. We only use php for intranet applications I create,
so the server is basically dead at nights, which is when I do most of my
work.....
Jake McHenry wrote:
I don't want 2 instances of apache running, your overthinking this... I
whatever, I guess we have different opinions about trying to
do things 'properly'.
only asked if I need to change only the prefix, or if thereis anything
else, to get both php versions installed.
so you have 2 versions of php installed. you can't run the
apache module of both
version simultaneously. so your going to shut down apache on
a production box
and then fiddle the config to run with the php5 module and
bring it back up.
The original config is from OS installation, so who knows what I could mess
up by doing this, this is why I'm asking, cause I don't want to screw up
php, apache would be just more to add on to it....
then what? you hope that all your sites/code runs okay with
php5? if it doesn't
you can only fix it if you keep running with the broken sites
on php5 otherwise you
can only unfiddle the config and stick with php4. no?
Its only 1 line in httpd.conf, just change from php4 module to php5
module..... Not that big of a deal....
Once I see my scripts are workingdev machine, this
ok, or not, I'll be getting rid of php4. I'm not running a
is production, and the only one I have currently,
you might consider that the machine whose screen your looking
at whilst reading this
is a perfectly good dev machine - you seem to on a windows
PC, which of itself is not
a problem in terms of setting up a dev environment that
suitably mirrors the apache/php/DB
configuration of your production server but you may have
issues with 'your' php code itself
depending the [OS] portability of the code.
Most of my stuff works on windows too, but some of the earlier scripts
accessing files don't work,, I've already considered moving the site to my
desktop while I upgrade the server.. But no........
given that the server in question is a production server
there is even more reason to
not disrupt service whilst testing your code on php5 - which
is exactly what a second
[temporary, custom] install of apache would allow you to do.
sure it's a bit more work
but it's also more professional - it means you can update the
'real' apache to run php5
in the safe knowledge that it will *work* with only a few
seconds of down time whilst
you restart the webserver process.
my backup died last weekonly option I need
and I haven't gotten the parts for it yet. Is prefix the
to change? Or do I need to change these too?
no just change prefix. (although I'm not 100% sure about
localstatedir - I have never touched myself
and I do run various machines that have php4 and php5
installed [compiled by hand as you are doing])
btw - installing a second apache is rather the same as
installing a second copy of
php in so far as you can also specify a custom prefix to have
it install (and read it's config)
from some other place - so as not to interfere with the
production apache.
As long as I use prefix, all of these options point to
/prefix/otheroptiondirectories correct? Making prefix the root? So in
the OS installation of PHP and httpd, that's why it left prefix blank, and
put in the values below..... So with the config the way it is now... It
would overwrite php4 and I would really be screwed...
document roots
--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,
Jake
Jake McHenry wrote:
Sorry about the delivery and read requests.. I was tiredand forgot to turn
them off for the list......in the list
alternatively you can search for 'Rasmus' and 'ProxyPass'
running botharchive and use Rasmus' rather cool ProxyPass solution to
I think you missed the point. you would have 2 apachesphp4 and php5 ... his explanation should give you enough infoI don't need them running parallel, only both installed
to set it up.
running, that is correct
but the trick is to set it up so that they use the same
other thanfor 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 :-)
yet, have aTijnema ! wrote:
On 3/22/07, Jake McHenry <linux@xxxxxxxxxxxxxxxxx> wrote:php5, and
Hi everyone,
I just got done going through all my configure options for
finally
configure finished successfully... I didn't install it
sure all myquestion.
Can I have both 4 and 5 installed temporarily until I'm
a virtualsure sincescripts
work ok? They should, I've been careful, but I want to be
this is
the only server I currently have. I was going to install
someone cancopy of
fedora and do testing, but I don't have time, hopefully
answer.
I think I just have to change the prefix to something
the libphp5do this thedefault and
load the new module in httpd. If I had more time I would
it won't breakright
way, but we all know how that goes...
If this will work, I can then just uninstall 4.. Hopefully
double check....anything.
I'll post my configure options if anyone would like to
Thanks,If you use make install on the second one, it will add
Jake
prefix to getlibrary to your httpd.conf, and then you would have libphp4 andproblems. So if
libphp5 in your httpd.conf. That is guaranteed to give
you comment out one of the 2, then it works fine.
Yes, I just wanted to make sure I only needed to change the
them both installed
--
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
.
- Follow-Ups:
- Re: [PHP] Question before upgrading to 5
- From: Jochem Maas
- Re: [PHP] Question before upgrading to 5
- References:
- Re: [PHP] Question before upgrading to 5
- From: Jochem Maas
- Re: [PHP] Question before upgrading to 5
- Prev by Date: RE: [PHP] Creating an FTP account on the fly from PHP
- Next by Date: Re: [PHP] Passing variables
- Previous by thread: Re: [PHP] Question before upgrading to 5
- Next by thread: Re: [PHP] Question before upgrading to 5
- Index(es):
Relevant Pages
|
|