Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 2 > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 2nd December 2007, 08:00
thinktink thinktink is offline
Junior Member
 
Join Date: Nov 2007
Posts: 3
Thanks: 1
Thanked 0 Times in 0 Posts
Question I need some advice on migrating from PHP4 to PHP5.

I am a noob at servers and stuff but I've managed to get a live working webserver. And all thanks to ISPConfig for which from now on till forever will be my site management software of choice! Kudos!

I wrote my first PHP page on my personal computer with Abyss Webserver and PHP5 for Windows. Works great for testing and learning. Wasn't very hard to learn I guess cause I've already got some skill in C++ and the structure is extremely similar.

I wrote the script using a function only available in PHP5: filter_var. Great function because it will help keep maliciouse attackers from injecting bad code into my site passed through form data and whatnot.

My problem is that the live server is still only running PHP4, and I've already installed ISPConfig, SquirrelMail, etc...

I've tried using yum update php and apt-get update php but neither one seems to be pointed at a live repository.

I downloaded the source for the latest PHP5 and ran the standard unzip, untar, ./configure, make, and make test. Its the "make install" that's giving me the jitters. While it was doing the configure and make stuff, I did more research online and found that there are a fair amount of PHP4 to PHP5 issues.

then this happened:
Code:
FAILED TEST SUMMARY
---------------------------------------------------------------------
Bug #38474 (getAttribute select attribute by order, even when prefixed) (OK to fail with libxml2 < 2.6.2x) [e]
Bug #16069 (ICONV transliteration failure) [ext/iconv/tests/bug16069.phpt]
iconv stream filter [ext/iconv/tests/iconv_stream_filter.phpt]
My concerns are if its even possible to install PHP5 on top of PHP4 and not break everything else in the process and having to wipe the harddrive and spend another 2 weeks getting it back up again? It wouldn't be a problem to take the httpd down for a while but the mailserver needs to be up 24/7.

If I can't install PHP5 on my live server, is there an alternative to the filter_var function?

I'll take any help I can get at this point, I am at my wits end.

On another note:

Can someone point me to a FAQ that shows step-by-step-by-step-by-step how to get yum and apt-get to point to a live repository? I can't tell you how many times I've googled yum and apt and only found threads and faqs to broken repositories and mirrors, or atleast they don't work for me or I'm not doing it right somehow.

Last edited by thinktink; 3rd December 2007 at 01:04.
Reply With Quote
Sponsored Links
 

Bookmarks

Thread Tools
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 On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Php4 / Php5 sjau Server Operation 5 28th September 2007 20:19
php4 and php5 at same time findafriend Installation/Configuration 7 22nd June 2007 16:44
php4 and php5 white debian4 octopus Installation/Configuration 21 18th May 2007 09:58
eaccelerator installation - can't find php5-config tom Programming/Scripts 9 15th May 2006 15:36
PHP4 and PHP5 for SUSE 9.3 Prof M.Behrens Installation/Configuration 3 2nd April 2006 22:20


All times are GMT +2. The time now is 00:55.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.