Web Hosting Forum | Lunarpages
News: July 14, 2008 - New Contest! - Submit Your WordPress Theme Designs, Win BIG!
June 30, 2008 - Submit Your Site for the July 08 Site of the Month Award!
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
July 26, 2008, 12:56:31 AM


Login with username, password and session length


Pages: [1]   Go Down
  Print  
Author Topic: How to upgrade php4 to php5 by using webmin?  (Read 2085 times)
aiko
Spaceship Captain
*****
Offline Offline

Posts: 122


« on: July 06, 2006, 11:59:47 AM »

Hi,

I am using Linux sysvinit-2.85, Apache 1.3.34, MySql 4.1.20 and php 4.4.1.

And I want to upgrade php 4.4.1 to php5 through webmin.

One of my script using the fopen() function does not work anymore since my website has been moved to a new server. The fopen() function does not work under php 4.4.1 and 4.4.2. See: http://bugs.php.net/bug.php?id=36017

Here is the script:

Code:
<?
$domain = "http://www.google.com/";
$handle = fopen($domain, "r");
?>


Script result on my website:

Code:
Warning: fopen(http://www.google.com/): failed to open stream: Connection timed out in /home/account/public_html/file.php on line 5


How should I do that step by step to upgrade? Thanks in advance. Help

PS: or is it other easy way to do that without webmin?
« Last Edit: July 06, 2006, 12:42:45 PM by aiko » Logged
perestrelka
Administrator
Jedi
*****
Online Online

Posts: 981



« Reply #1 on: July 09, 2006, 09:10:42 PM »

Hi,

You'll need to manually build PHP5 or find and install RPM's for PHP 5 using shell. Unfortunately, this can't be done through Webmin. It is necessary to know which Linux distribution you are using in order to provide more detailed instructions on how to upgrade PHP.

Looking at the error you posted, I'm sure that the bug mentioned is not related to the problem you are having with fopen(). Your script does not crash and says that connection timed out. We are running PHP 4.4.2 and 4.4.1 on numerous servers and have never got into such issues. I would recommend to check the nameserver settings on your server and make sure that outbound connections are not being blocked in your firewall if you want to upgrade PHP only because of this problem. It is more than likely that one of above is causing the fucntion to fail.

I hope this helps.
Logged

Kind Regards,
Vlad Artamonov
aiko
Spaceship Captain
*****
Offline Offline

Posts: 122


« Reply #2 on: July 13, 2006, 01:51:12 PM »

Thanks for the input perestrelka  Very Happy

The problem came from a firewall installed on my server.

Aiko Very Happy
Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.3 | SMF © 2006-2007, Simple Machines LLC
Seo4Smf v0.2 © Webmaster's Talks


Valid XHTML 1.0! Valid CSS! Dilber MC Theme by HarzeM