Reinstalling PHP

This is a discussion on Reinstalling PHP within the PHP Language forums, part of the PHP Programming Forums category; Hi, I am running SUSE 9.2 with PHP 4.3.11 (with Apache2 and MySQL 4.0.21). Unfortunately ...


Go Back   Usenet Forums > PHP Programming Forums > PHP Language

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-20-2006
Andrew Ayre
 
Posts: n/a
Default Reinstalling PHP

Hi, I am running SUSE 9.2 with PHP 4.3.11 (with Apache2 and MySQL 4.0.21).
Unfortunately PHP was configured with sessions and mysql support disabled,
so I want to change this with minimum of hassle. I don't want to risk
breaking any current PHP scripts or dependancies on my server.

I used phpinfo(); to get the current configuration of PHP
I downloaded the sources for PHP 4.3.11
I ran ./configure using the same configuration as reported in phpinfo(); but
enabling sessions and MySQL
I then ran make

So far so good. No errors. I understand that all I need to do now is run
make install and restart apache.

What is the chances that this will work without any problems, or is this
likely to break things?
What can I do now before installing to enable me to revert to the current
PHP in case things do break? How could I examine the makefile to determine
which files would be replaced, so I can back up the existing ones, for
example?

Thanks for the help!

Andy


Reply With Quote
  #2 (permalink)  
Old 04-20-2006
fletch
 
Posts: n/a
Default Re: Reinstalling PHP

Chances of it working - very good.

How ever the current version of php was installed, reinstall the same
way to revert back. Check that you can do this before installing custom
code. (I'm assuming your working on a live server, hence the need to
get it back up quickly).

Now I use Ubuntu and to get mysql and postgresql working I had to
install some extra packages which loaded as php extensions. If I were
you I would check to see if the same thing happens in SuSE because it
seems unlikely that SuSE would not provide a PHP that can cope with
mysql. If you find that there are such packages then you may need to
update php.ini to load them as extensions.

Reply With Quote
  #3 (permalink)  
Old 04-20-2006
Andrew Ayre
 
Posts: n/a
Default Re: Reinstalling PHP


"fletch" <richard.a.fletcher@googlemail.com> wrote in message
news:1145522807.461406.171320@v46g2000cwv.googlegr oups.com...
> Chances of it working - very good.
>
> How ever the current version of php was installed, reinstall the same
> way to revert back. Check that you can do this before installing custom
> code. (I'm assuming your working on a live server, hence the need to
> get it back up quickly).
>
> Now I use Ubuntu and to get mysql and postgresql working I had to
> install some extra packages which loaded as php extensions. If I were
> you I would check to see if the same thing happens in SuSE because it
> seems unlikely that SuSE would not provide a PHP that can cope with
> mysql. If you find that there are such packages then you may need to
> update php.ini to load them as extensions.
>


Thanks for the advice fletch - yes, it's a live server. :)

Andy


Reply With Quote
  #4 (permalink)  
Old 04-20-2006
samudas
 
Posts: n/a
Default Re: Reinstalling PHP

If you're really paranoid you could set up another instance of a
webserver. Compile apache into another directory say: configure
--prefix=/usr/local/apachetest .Do the same with php: configure
--prefix=/usr/local/phptest. Copy php.ini to
/usr/local/phptest/lib/php.ini. Edit
/usr/local/apachetest/conf/httpd.conf and change Port 80 to Port 81 so
it won't conflict with your production server. Start the server and
copy the htdocs folder from your production site to
/usr/local/apachetest. Point your browser to http://yoursite.com:81.
You should see a mirror image of your production site with the new
functions your compiled in. Once you'r feeling confident then go ahead
and compile for the production server.

Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 12:00 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0