473,387 Members | 1,365 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

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
Apr 20 '06 #1
3 1481
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.

Apr 20 '06 #2

"fletch" <ri****************@googlemail.com> wrote in message
news:11**********************@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
Apr 20 '06 #3
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.

Apr 20 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Jonathan | last post by:
I reinstalled Apache (2.0.52) and added the appropriate lines to run php scripts to the bottom of the httpd.conf file. The scripts run fine (for example, 'print "Hello!"' yields "Hello!" rather...
0
by: Lehel Kovach | last post by:
I am having problems uninstalling/reinstalling VS.NET. For some reason, Setup got confused and thinks that I have a hard drive D: (probably from some out of date registry entry I think) which it...
2
by: Simon Harvey | last post by:
Hi everyone, I am having what I hope is a very simple problem getting started with mySQL. I had the server running earlier this morning and everything seemed fine. But I had to unistall it for...
0
by: wilk | last post by:
Hi, I've installed VS 2003 .NET. I registred it with some name (ex. wilk). And now I'd like to reregister VS without reinstalling it. I have license for VS. How can I do it ? Thx
0
by: vbmark | last post by:
I had Visual Studio .NET 2003 installed on my PC. I then wanted to install 2005 beta but it would not install until I uninstalled 2003. Now I need 2003 .NET installed again but now I can't. The...
0
by: Phil Hutchinson | last post by:
Any time I try to open an existing C# project or create a new one, I get an error message saying, "Project <projectname> could not be opened because the Microsoft Visual C# .NET compiler could not...
1
by: AH | last post by:
Hi, I have this problem that seek help from anyone who could offer. I have been working on the web application on VS 2003 till lately where the "view in browser" start to hang (even a single label...
0
by: Ghost | last post by:
Hi, I tried using some GD functions and noticed nothing was working on our Linux server. Looks like, the library was never compiled during the PHP 5.1.12 installation. Is there any way I can just...
0
by: =?Utf-8?B?Um9sbGlu?= | last post by:
I have uninstalled Reinstalling Exchange on Small Business Server 2003. Now that I am trying to reinstall it, it does not. It give me a message about needing to be a full Exchange administrator....
1
by: Mir Mosharrof Hussain | last post by:
I am a PC user with little technical knowledge. I will be very thankful if you please go through the problem given below and give a solution. Problem The File system of the hard disc was NTFS....
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.