944,000 Members | Top Members by Rank

Ad:
  • PHP Discussion Thread
  • Unsolved
  • Views: 2503
  • PHP RSS
Oct 27th, 2006
0

PHP Upgrade-need to down apache?

Expand Post »
I've been requested to upgrade php on a number of systems. Currently, they are running version 4.3.4, and the most recent upgrade on the php.net site was version 5.1.6. I've never done this before, and have little clue what I'm supposed to be doing. I'm hoping that once I get it figured out for one system, I can upgrade the others with the same instructions without much trouble. (Hope-hope-hope)

First question: As far as I can tell, the systems in question are running the Apache2 webserver. Will I need to down Apache before I upgrade PHP, or should I leave it running?

More questions to come, no doubt.

Thanks in advance,
-EnderX
Similar Threads
Reputation Points: 483
Solved Threads: 1
Posting Shark
EnderX is offline Offline
999 posts
since Aug 2006
Oct 27th, 2006
0

Re: PHP Upgrade-need to down apache?

Do you have a test environment you can test first? Save your php.ini file where you can get it, and walk through and make the changes to the php.ini file that comes with PHP5. They're not exactly the same, so you can't transfer one to the other.

I've done it on EasyPHP, it was a matter of copying the files over and updating the php.ini file. This might not be the cleanest way to do it, but it works.

You'll want to look at some of the things that were changed in PHP5. MySQL is no longer compiled in with PHP, magic quotes is OFF by default and a few other things.
Reputation Points: 23
Solved Threads: 23
Posting Pro in Training
Puckdropper is offline Offline
494 posts
since Jul 2004
Oct 30th, 2006
0

Re: PHP Upgrade-need to down apache?

Thank you for your assistance.

I am now trying to follow up the last instructions in the Install directions that came with the php download. Instruction 15 involves telling apache what files to recognize as php; I'm assuming that the commands that follow would be included in the .conf file for apache, since that's where the previous commands went. The command in question (15) reads as "AddType application/x-httpd-php .php .phtml". Am I correct in assuming this goes in the apache .conf file? If so, where in the file, and if not, where does the command need to be entered?

Thank you again,
-EnderX
Reputation Points: 483
Solved Threads: 1
Posting Shark
EnderX is offline Offline
999 posts
since Aug 2006
Oct 30th, 2006
0

Re: PHP Upgrade-need to down apache?

Look around in the file and do as they do. That's what I usually do when I go to do what you are doing when I go to do it. ;-)
Reputation Points: 23
Solved Threads: 23
Posting Pro in Training
Puckdropper is offline Offline
494 posts
since Jul 2004

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in PHP Forum Timeline: PHP converter
Next Thread in PHP Forum Timeline: PHP parsing error, unexpected '<'





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC