Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
 
  HOME    TRACKER    PHP




How Do You Upgrade Php On Linux?


I need to upgrade php 4.3.7 to version 5.0.0 on slackware linux. Do I
need to uninstall 4.3.7 first or will installing 5.0.0 just overwrite
the 4.3.7 version? I'm running Apache with php.




View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread
Upgrade To Php 4.3.2
I am currently running php 4.2.1 on FreeBSD. How would I go about upgrading this to version 4.3.2.

How To Upgrade From 4.1.0 To 4.2.2
Can anyone help by giving dead simple step by step instructions for me to upgrade from 4.1.0 to 4.2.2? I am running on Windows ME and using Apache and MySQL.

Should I Upgrade To PHP 4.3.1 ?
I am currently running PHP 4.2.3. I want to install the gdLib and I want to do this as quickly and painless as possible. Should I upgrade to 4.3.1 (i.e. does this have the gdlib included in it) or should I try and install the gdLib with 4.2.3 (from which i can tell is a difficult process)?

Upgrade Help Please
Which is the correct newsgroup to post questions on upgrading RedHat 9.0 to the latest
PHP?

Upgrade Php 4 To 5
if i upgrade from php4 to php5, will all my scripts still work?

PHP & MySQL Upgrade
I am looking to upgrade my versions of PHP & MySQL on my server. I am
wondering what websites you would recommend that are easy to fallow and
with step by step instructions on how to upgrade both of these.

Also how to keep all of the extions or even install more extions for PHP.

MySQL Upgrade
While I know that this forum isnt the primary place for this, I cant seem to get any answers from the people in the MySQL forum (not enough expertise or time I suppose), so since many PHP people use MySQL maybe you guys have tackled this one already.

Basically I want to move from MySQL 3.23.56 to 4.0. I can find the various routines to run to fix the data in the databases. But my question is more fundamental. Once I get the 4.0 release, do I just install it via the setup, or do I need to UNinstall 3.23.56 first?

Current environment: WinXP Pro, IIS, PHP 4.3.1.

Php5 Upgrade
I've been asked to upgrade an existing older linux/apache/mysql/php installation to php5. I'd rather not mess with the other components if I don't have to - just php5. Can I do that?

I can get around the command line ok, but haven't done alot of configuration. The install instructions at http://www.php.net/manual/en/install.unix.php include steps on compiling apache -- do I really need to do that?

Upgrade PHP With GD Support
My current php version is 4.3.3My current GD version is 2.0.15I want to upgrade GD to 2.0.28. How to upgrade it.

Upgrade To 4.3.10 Issues?
I got an email from my web host stating that they are going to upgrade
their PHP on the server from 4.3.8 to 4.3.10.

Are there any known problems with this upgrade that need to be addressed
in the PHP scripts I use? I'm sure there will always be some small
glitches in an upgrade like this but I'm looking for any info on the
scale of any "register globals = off" type changes.

Upgrade Php Version On Red Hat 7.1
I've got a server running Red Hat 7.1 with the default installation of php/apache. This version of php doesn't have a lot of the default functions I need like mysql and odbc support. The php rpms for Red Hat 7.3 have the options I need.

Can I just install these rpms on Red Hat 7.1? I tried doing this and it told me some libraries I need are not present. Would installing these libraries cause any problems?
If anyone knows of the best way for me to add these options for php that I need, please let me know.

Division By Zero After PHP-Upgrade
I have following problem after my hoster updated to PHP 5.2.1. I'm not
really sure from what Version the update was done, but it was
definetly something like 5.x.x.
Locally I run XAMPP w/ PHP 4.4.4 and my script runs just fine.

These are the two lines which generate the error.
$return = $sbox0[$b0] + $sbox1[$b1] % pow(2,32) ;
$return = ($return ^ $sbox2[$b2]) + $sbox3[$b3] % pow(2,32);
It doesn't matter what is stored in the sboxes since the error has to
be from the modulo.

I tested if pow(2,32) would generate a zero, but it doesn't. So that
can't be the problem.

Upgrade From PHP Version 4.2.2 To 4.3.10
I am currently running
PHP Version 4.2.2 on Red Hat Linux release 9 (Shrike)
with Apache/2.0.40 (Red Hat Linux)
I would like to upgrade to the latest version of PHP (4.3.10 ?).

PHP was pre-installed as RPM version, I would like to know where i can
find an RPM upgrade...

What are the steps to take, will original php.ini be overwritten,
do i need to change Apache confg files.

Does Upgrade Cause Slowdown?
I am a webmaster of a website and the server maintianers upgraded from
php 4 to php 5.At around the same time my site slowed down.Does a php
upgrade cause a site to slow down? Is there any way in which I can find
out why my site slowed down?...

$HTTP_REFERER Unuseable Since 4.22 Upgrade ?
$HTTP_REFERER returns nothing since my Host upgraded to Php 4.22. I haven't seen any mention of a name change. Wherabout should I look ? I need to fix this ASAP.

How To Upgrade PHP Via FreeBSD Port?
I'm currently running PHP 4.05 on FreeBSD 4.3. I installed PHP via the ports collection, and now I want to upgrade to 4.06. What would be the best method for accomplishing this? On a test server with the same configuration I deleted the /usr/ports/www/mod_php4/work directory and did a make install. when i ran phpinfo() it said that it was version 4.06, but I don't know if that was really the right way to do it.

PHP 4.3.4 Upgrade ... Need Help With Drop Downs
I upgraded from PHP 4.1.2 to 4.3.4 (Mac OS X 10.2.8), and then had to adjust all of my form scripts to retrieve the POST variables explicitly (because 4.3.4 requires this). I did this like the following:

<input type=text name=myinputbox>
<input type=submit name=submit value=submit>
-------
$myinputbox = $_POST[''myinputbox];
$submit = $_POST['submit'];

That works just fine, and the variable data is available for use elsewhere in the script. Radio buttons and textareas also work in this way.

However, my problem is that <SELECT> drop down menus apparently DO NOT work in this way. This renders my form useless without this ability. If you can post a reply code for retrieving the <SELECT> POST variable to the following code, I would appreciate it.

<SELECT name="MENU">
<option>option1</option>
<option>option2</option>
<option>option3</option>
</SELECT>

I assumed it would be this (but didn't work):
$MENU = $_POST['MENU'];

Hope I am clear with my explanation.

Upgrade To PHP 4.2.2 From 4.2.0 Mysql Error
I'm running PHP 4.2.0 on Suse Linux. I compiled PHP with :

./configure --with-mysql --enable-trans-sid --with-sybase=/usr/local/freetds --with-apxs=/usr/local/apache/bin/apxs

When I compiled 4.2.2 it compiles and installs fine, and I checked this with phpinfo(). However my scripts using MySQL can no longer connect.

Script Problem With Upgrade To PHP 4.3.1
I have tried this script on PHP 4.2.3 and it works. then I upgraded to 4.3.1 and it doesn't work. I believe its because the variable use the null function and that was removed in 4.3.1 Can anybody tell me how I cn get this working? Also the variable declration might hve changed. PHP Code:

MSSQL Problem After Upgrade To 4.3.10
My hosting company upgraded yesterday to pHp 4.3.10. Since then, all my
INSERT/UPDATE/DELET query on our MS-SQL database seem to fail. No
specific error message is returned by mssql_get_last_message(). The
SELECT statements work fine.

If I test on my local server running 4.3.9 the application behaves
properly.

Upgrade PHP4.3.7RC1 To 4.3.9
I want to upgrade, but can anyone tell me if it is an good idea tot install
the newer version on top of the old one? Ore can i aspect than problems
whit my configuration?

Upgrade Or Separate Installation?
I have been using a prepackaged WAMP (Windows Apache MySQL PHP)
installation and along the way (over several years) have modified this
and that, added vhosts, modified php.ini the way I want, set up a live
php manual (docref_root), moved DLLs, and a thousand other things.

Problem is, I have not had to modify anything in a *long* time.
Everything works wonderfully as is, I just want to try out some newer
features (5.0.4).

Quite frankly, I am not confident in my knowledge of the upgrade process
(yes I have read the documentation, I don't find it that helpful).

I am beginning to think it would be safer to just create a separate
installation of PHP and point a vhost to it or something.

Am I being paranoid or is there some *really* simple instructions
somewhere for upgrading just PHP on a Windows system?

How To Upgrade Beta3 To 4.0 Release?
How would I go about upgrading php4b3 to php4.0 release? I realize I could remove apache and php and reinstall, but it seems there should be an easier way. I am running FreeBSD 4.0 and apache.

Upgrade PHP With Informix Support
My existing PHP installation has mysql support, however I need to add informix support.
Can I upgrade PHP with informix support, or do I have to reinstall everything?

How To Upgrade My Easyphp1-8 Php4.3 Into Php 5?
Im using easyphp1-8 currently and intend to upgrade the php4.3 into
php5 as many of the functions are not allowed, or undefined.... so how
do i proceed with this?

Upgrade OpenSSL = Relink PHP?
I just learned that the version of OpenSSL I'm running (on a RedHat EL)
server has some vulnerabilities that I'd like to close. I'm running PHP
5.1.4. My question is this: I've got PHP 5.1.4, and it's built with
"--with-openssl=shared" in the ./configure command line. If install the
latest version of OpenSSL, do I need to relink PHP?

Php Problem After Apache Upgrade
Hi, they just upgraded my webserver to apache 1.3.17 and now I always get these errors on all my PHP pages What's changed that all my code wont' Method Not Allowed The requested method POST is not allowed for the URL /~simpson/test/test.html

Anyone Managed To Upgrade From Php-4.2 To 4.3 On Redhat9
I am currently running Redhat 9 with PHP4.2
I would like to upgrade to PHP4.3 (RPM) in order to install Sablotron
XSL Processor.
Did anyone managed to do so.

ImageMagick Upgrade Problem
I used to run the next command on ImageMagick v5.5.7 to resize an
image:

convert -size 64x64 in.jpg -resize 64x64 +profile '*' -type Optimize
out.jpg

When upgraded to ImageMagick v6.2.5 the same command fails with the
error:

convert: no decode delegate for this image format `in.jpg'.

I saw a comment that the syntax was changed. What is the new syntax for
the same command in v6.2.5?

Server Upgrade, Php Problems?
My site recently had its controll panel upgraded, beforhand i was able to update delete and insert records, now i cant insert? Has anyone heard of this or is it just a coincidence ?

GD Image Error After Php Upgrade.
I've just recently upgraded to PHP Version 5.2.3 from 4.4.7 and noticed a problem with one of my GD images. It should use verdana.ttf for the text using the code below
imagettftext($image, $fontSize, 0, $margin, 73, $black, $font, $tickerText);
But for some reason the text is messed up... and ideas why?

Client Not Requested (How To Upgrade PHP)
Client does not support authentication protocol requested by server; consider upgrading MySQL client Another one Is it possible to UPGRADE php version 4.5.5 to php5 ? Here I stuck now? what should I do now? Pls Help anyone For this.

Error With Streaming Png And A Upgrade To PHP4.3.4
I had a very simple gallery for photos on my site.
The gallery was coded by an old friend I don't have contact anymore.
I don't know much about PHP, so I used his code and everything was
fine until I upgraded my PHP.
I wanted to start learning PHP/mySQL so I upgraded from 4.1.2 to
4.3.4, and now the gallery doesn't work any more.
I have tried to fix and still am going to, but I have seen some errors
in his code that should have caused an errors before but didn't. This
doesn't make sense to me.

It now creates output like this.

notice:
notice:
warning
here is the streamed PNG file.
and then it repeats the same notices and warning over again.

So what I want to know is there away to get this to work now without
fixing the code, as it will take me a while to get good enough to
understand and fix it all.
I'm still going to try and fix it, it fun to learn, but it sort of
suxs that it doesn't work anymore.

Upgrade OpenSSL Version = Rebuild PHP?
I just learned that the version of OpenSSL I'm running (on a RedHat EL)
server has some vulnerabilities that I'd like to close. I'm running PHP
5.1.4. My question is this: I've got PHP 5.1.4, and it's built with
"--with-openssl=shared" in the ./configure command line. If install the
latest version of OpenSSL, do I need to relink PHP?

Upgrade Methods, Php, Pear, Phpdoc
I want to upgrade my version of PHP and with it, to be consistent PECL.
I'm assuming, I'll also need to install Pear from scratch
Maybe I'll go all the way and upgrade my Apache2 webserver

from my current phpinfo() Apache Version Apache/2.0.54 (Win32)
PHP/5.0.4
from Apache's website: Apache 2.2.3 Released

I think it would be hard to install over my current installation at
C:php
I'll probably save my .ini/cfg files (Apache also), rename the
directory and start from scratch.
Since I don't know what Pear does in its installation process, I
envision a nightmare, if I tried to move things over manually.
Starting from scratch has to be the cleaner, simpler way to go.

Mogrify -draw Text Stopped Working After Upgrade
If anyone can recommend a more appropriate newsgroup for this question?

We recently upgraded from php 4.1.2 to php 4.3.9 and ImageMagick 5.5.7
to version 6.2.5. I have a script that creates a random number image as a Turing Test, and without changing that, it's stopped working right after the
upgrade. But, only part of the mogrify command.

Here's the line I'm using:

$imagick = '/usr/local/bin/mogrify -pointsize 26 -draw 'text
'.$txRand.','.$tyRand.' "'.$rand.'"' -rotate '.$rRand.' -swirl
'.$sRand.' -charcoal 2 /var/www/html/verimgs/'.$mrand.'.gif'

exec("$imagick");

PHP is executing the command OK, because it creates the image and does
the swirl and charcoal and the rotate, but it's not doing the -draw
part.

If I echo $imagick it's perfectly formatted:

/usr/local/bin/mogrify -pointsize 26 -draw 'text 17,23 "659"' -rotate 2
-swirl 25 -charcoal 2 /var/www/html/home/verimgs/97531.gif

I can run that line in a command shell and it will perform perfectly.

According to the ImageMagick site:

http://www.imagemagick.org/script/c...ptions.php#draw

I'm formatting the -draw switch just right.
But still, it won't print the numbers onto the image.

I don't get it. What may have changed in the upgrade to prevent this
script from working the way it did before?

PHPMYADMIN Upgrade Caused Table Structure To Change
My host provider recently upgraded the phpmyadmin to 2.9.2 and mysteriously there were then problems with my website.

First of all, in some tables enum fields were changed. For example Paragon 1,2,3,4 got changed to Paragon 1˙2˙3˙4.  Replaced the , commas with y with 2 dots. Also, my cart whcih uses cookies starting to act very strange.

Has anyone ever experienced anything like this. Host provider cannot understand this. I did spot an error when I logged into phpmyadmin that the mbstring was not installed so the host porovider fixed this and all seems to go back to normal but I would like to find out what exactly happened.

Unable To Pass Parameters To Php Page After Upgrade From Php3 To Php4
After I tried upgrading my php version from 3 to 4, all my code which passes
parameters between web pages have stopped working. Not sure what the problem
is. Have tried defining the parameters in the accepting php page with a
'$_GET["parameter_name"]; and also a $_REQUEST["parameter_name"]; but with
no luck. Even tried Globals without any luck.

Below is an eg. of what I am trying to do..

Why I Sart Getting 'Fatal Error: Allowed Memory Size...' After Php Upgrade?
The hosting company I have one account (and several Add Domains)
upgraded php on the server from 4.4.7 to 5.2.5. After the upgrade I
start getting the error message:

Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to
allocate 122880 bytes) in...

on domains they use Gallery2 or are CMS (Joomla or Drupal) based....

Fpdf Not Using Specified Filename In "Save As..." Dialogue After Acrobat Upgrade
Using the string:

$pdf->Output("testfile.pdf", I);

the "Save As..." dialogue box does not provide the specified filename.
The default is the name of the PHP page used to generate the PDF.

It worked when using Acrobat 4.0 and since upgrading to 6.0, it no
longer works.

The "D" and "F" switches do parse the correct filename.

Problem exists in both Netscape and IE.

Anyone else experience this and is there a resolution?

Linux -PHP
i would like to install linux on my PC , however i am a little unsure of which version to choose , with all the ones out there , i want to use it for Perl,PHP,MYsql,Apache Also what is diffrence between FreeBSD and Linux if any ?

PHP Is The VB Of Linux
I'm talking to get this off my chest. I guess I'm talking to
the newbies out there wondering if they want to remain on ASP.NET, C#,
JSP, or whatever, or whether they want to do their next project in
PHP.

Okay. I moved from Microsoft Windows 2000 and Visual Basic and ASP to
Linux and JSP. I plan to stay on Linux now. Let's just say that I did
it, but JSP was aggravating. I had to type 10 times more code than I
felt I had to, and the data types always got in my way. Often I would
have to write some code, fix it, recompile again, then test, find a
bug, go back, etc. -- the compilation step was aggravating and slowed
things down a great deal. I kept wanting a VB for Linux.

Then, I started working with PHP and MySQL because I felt it had
finally matured. To my surprise, besides the {} and ;, PHP pretty much
is the VB of Linux thanks to the raw speed of the Zend PHP4 engine, if
not the PHP5 one around the corner. With PHP, I don't have to worry
about data types, mess with the slow compilation step, have the pain
of adding the JDBC connector to JSP, and I can write 10 times less
code and still have pretty fast pages. And, since you can now compile
PHP, you can run even faster than JSP if you need to do so. To top
things off, PHP is soon going to have a cross-platform GTK+ windowing
engine so that one can make standalone apps or client/server form
apps.

When I say VB and ASP, I didn't mean VB.NET. I took a class in VB.NET
and had to write code in C# and ASP.NET. Microsoft made some things
easier, and some things were ten times harder. I found the XML/XSLT
library sucked and was incomplete compared to the old one. Plus, I
realized I was writing for an unstable, unsecure, proprietary platform
that is doing nothing but get more and more complex. I thought, if
Windows is going in the direction of complexity and lock-in, and Linux
and Java is doing a 180 on that, and things have matured with Linux
and Java, why don't I just make the move, wholesale, to Linux? And it
was done. At first I liked JSP just to be free from Microsoft, but I'm
very glad I finally moved to PHP, where I plan to stay.

RedHat 9 made Apache, PHP, and MySQL a snap to install -- using
nothing but 6 checkboxes on the Add/Remove Programs and inserting the
disks.

Right now, the buzz is all about MySQL and LAMP, but with PostgreSQL
starting to grow up, and because of MySQL's licensing changes, we all
might be moving to LAPP with PostgreSQL, remaining open source.

So, anyway, I'm thinking about writing a work order management system
/ CRM as either a PHP web app, or a PHP/MySQL (or PostgreSQL)
appliance. I plan to make an open source version, and then a
customized version that I can sell for cash. The appliance would be a
rackmount 2 drive hardware mirror, AMD proc., with tape drive. Yes, it
would be built on Linux. You would manage the appliance with a web
browser and it would do nothing but feed it the daily tapes, keep it
in a cool, dust-free environment, and give it a nice UPS.

So, newbies, if you are looking for the "VB" in Linux, look no further
than PHP.

PHP As CGI Does NOT Under Linux??
I created simply test file (<?php phpinfo(); ?>) and tried to install php
as CGI under my RedHat 9.

PHP 4.3.8 was compiled from source tarball. mod_php under Apache 1 and 2
works, only CGI does not work! :( Apache logs contains "Premature end of
script headers". Web browser can see "Internal message" :(

I checked two, different instalation in httpd.conf. None of them works
correctly and I do not know why.

First approach:

ScriptAlias /php4/ "/usr/local/php4/bin"
AddType application/x-httpd-php .php
Action application/x-httpd-php "/php4/php"

Second approach:

ScriptAlias /php4/ "/usr/local/php4/bin/"
AddHandler php-script .php
Action php-script "/php4/php"

Php Run In Linux
if i am provided a system to do with php mysql.. but it required for the linux OS.. is my php code exactly the same as what i do in window xp?

GD With Linux
I'am haveing some trouble with GD images, the code (from phpfreaks) works just fine on windows, but it fails on Linux and I get something like this:

?PNG  IHDR2?PLTE &#40127;`?L.IDAT?c`??a??|(?&#1164;?3&#933;??y&#1742;C&#40912;??&#1934;&#1260;S? ^od,;IEND?B`?
here is the code:

PHP Installer For Linux
Is there a separate file for installing PHP in Linux?

PHP, LINUX And MQSERIES
Hi everybody,

I am currently working on a problem-ticket-system and have been asked to provide the possibility to synchronize the tickets with another ticket-system using MQSERIES. Does anybody have any experience with accessing MQM from PHP or know of a module that could be used with or compiled into PHP for direct MQM-access?

PHP Not Available On Apache (Linux)
I am a newbie to Linux, and therefore having a difficult time of installations that are probably quite mundane to "high-timers." I hope this is the correct newsgroup for a posting like this, but if not, please suggest other newsgroups.

I have installed PHP4 on a LInux/Mandrake machine, running Apache 1.3.12. All installations are compiled and installed in the default locations.
In the browser, I see a text printout of the .php document I'm requesting, rather than the executed form.
File types of:

AddType application/x-httpd-php .php3 .php4
AddType application/x-httpd-php-source .phps

have been added to the Apache config file.

I have a list of what PHP was compiled with, and --disable-short-tags was not one of them.

Execute permissions (755) have been added to the files I'm trying to see.
The INSTALL file called for mod_so which would be visible if httpd -l was run. It was. The five steps required in the "Quick Install" went through without a problem. Actually, I'm just trying to execute that tiny .php file that they give you... <?phpinfo()?> .

I've done the copying thing:
cp php.ini-dist /usr/local/lib/php.ini

In the INSTALL file, it calls for LoadModule php4_module libexec/libphp4.so to have an entry in Apache's config file. I don't see one. I also did a search for the libphp4.so file, and there's none to be found. A search for libphp4 shows a number of files, but none with .so extension.
This PHP installation was performed from a php-4.01pl2.tar.gz download - is this the right module?

As a note, CGI forms and MySQL queries work fine on this machine.

Linux Php -> Nt Sql Server
How can I connect from a Linux Apache server with PHP 4.0 to a Windows NT SQL Server?

On NT this is easy (load the module), but on Linux I didn't see such an option. Also I didn't see anything like --with-mssql in configure. Is it even possible?


Copyright © 2005-08 www.BigResource.com, All rights reserved