Web Hosting Forum | Lunarpages

Author Topic: How to upgrade php4 to php5 by using webmin?  (Read 10381 times)

Offline aiko

  • Spaceship Captain
  • *****
  • Posts: 122
How to upgrade php4 to php5 by using webmin?
« on: July 06, 2006, 10: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: [Select]
<?
$domain = "http://www.google.com/";
$handle = fopen($domain, "r");
?>


Script result on my website:

Code: [Select]
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, 11:42:45 AM by aiko »

Offline perestrelka

  • Master Jedi
  • *****
  • Posts: 1397
Re: How to upgrade php4 to php5 by using webmin?
« Reply #1 on: July 09, 2006, 08: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.
Kind Regards,
Vlad Artamonov

Offline aiko

  • Spaceship Captain
  • *****
  • Posts: 122
Re: How to upgrade php4 to php5 by using webmin?
« Reply #2 on: July 13, 2006, 12:51:12 PM »
Thanks for the input perestrelka  :D

The problem came from a firewall installed on my server.

Aiko :D

 

Share |