Web Hosting Forum | Lunarpages


*
Welcome, Guest. Please login or register.
Did you miss your activation email?



Login with username, password and session length
May 21, 2012, 04:08:47 AM

Pages: [1]   Go Down
  Print  
Author Topic: Upgrading PHP 4 to PHP 5 and MySQL 4.0.25-standard to 4.1  (Read 1966 times)
inerd
Trekkie
**
Offline Offline

Posts: 17


« on: September 30, 2005, 06:20:41 PM »

Hi there,

I use LunarPages dedicated server running PHP 4.3.11 and MySQL 4.0.25-standard. With the release of the new vBulletin 3.5 -- they suggest if you have PHP 5 and MySQL 4.1 for better performance.

If I upgraded the dedicated server to PHP 5.0 and MySQL to 4.1 -- will I run to into issues to my current website? www.laptoplogic.com

Thank you for your help on any information.
Logged
abhilash
Intergalactic Cowboy
*****
Offline Offline

Posts: 61



« Reply #1 on: October 01, 2005, 01:38:47 AM »

AFAIK , there wont be any issues. MySQL 4.1 has different password hashing mechanism from the older version.  So there **may** be slight issues with the mysql passwords.  However we can reset them if you run into any issues.

Please send a email to dedicated@lunarpages.com mentioning your requirements and the last four digits of CC info you have in record with us. You may also need to send the existing DB passwords to dedicated@lunarpages.com along with the link to your forum.
« Last Edit: October 01, 2005, 01:40:26 AM by abhilash » Logged

Abhilash

JSA Supervisor - System Admin Team
inerd
Trekkie
**
Offline Offline

Posts: 17


« Reply #2 on: October 01, 2005, 02:50:26 PM »

Thank you! You have been extremely helpful to me with all my questions.

What about upgrading to PHP 5? Will anything affect the website such as the control management system? Thank you

AFAIK , there wont be any issues. MySQL 4.1 has different password hashing mechanism from the older version.  So there **may** be slight issues with the mysql passwords.  However we can reset them if you run into any issues.

Please send a email to dedicated@lunarpages.com mentioning your requirements and the last four digits of CC info you have in record with us. You may also need to send the existing DB passwords to dedicated@lunarpages.com along with the link to your forum.
Logged
abhilash
Intergalactic Cowboy
*****
Offline Offline

Posts: 61



« Reply #3 on: October 03, 2005, 06:08:25 PM »

PHP5 is backwards compatible (only to a certain point though). I don't think upgradation will be an issue with the existing php based softwares/codes including control/content management system. But I would check with the CMS's website or forums before I proceed with the upgrade.

http://www.zend.com/manual/migration5.incompatible.php do mention about it more. URL mentions about the backward incompatible changes, which you should pay attention before proceeding with the upgradation.

Logged

Abhilash

JSA Supervisor - System Admin Team
inerd
Trekkie
**
Offline Offline

Posts: 17


« Reply #4 on: October 03, 2005, 06:19:47 PM »

HI! Thank you. I mgiht play it safe and upgrade to PHP to version 4.4.0 and MySQL to 4.0.26 -- do you think upgrading the MySQL cause any issues? Thank you once again.
Logged
perestrelka
Administrator
Master Jedi
*****
Offline Offline

Posts: 1395



« Reply #5 on: October 06, 2005, 07:49:58 AM »

MySQL upgrading to 4.0.26 should not cause any problems as this is just a new release of stable branch with bug fixes only.

Logged

Kind Regards,
Vlad Artamonov
Adelante
Chief Systems Administrator
Pong! (the videogame) Master
*****
Offline Offline

Posts: 23


i see a kitty!!!!


WWW
« Reply #6 on: October 08, 2005, 01:28:33 AM »

I wouldn't recommend upgrading mysql 4.0.25 straight to 4.1.x, because it will break your databases, the same as if you upgrade from mysql3 to mysql4.0

To upgrade it make exports of all your databases, uninstall 4.0, install 4.1 and then import your databases again (except the mysql database) for the mysql database, only import the NON duplicate mysql.db, mysql.user, mysql.host, mysql.table_priv, mysql.func, mysql.column_priv

To get a proper export of all your mysql databases (not in 1 file) put the code below into a mysql_backup.php script and run it (/usr/bin/php mysql_backup.php) Obviously edit the location you want the backup to dump the files, and change the your_password to your mysql password.

Code:
<?
print("mysql backup\n");
foreach (glob('/var/lib/mysql/*') as $fullname)
{
        $database = basename($fullname);
        $command = sprintf('mysqldump -a -B %s -c -v -Q > /home/backup/mysql/%s-%s.sql --password=\'your_password\'', $database, $database,
date('Ymd'));

        exec($command);
        print($database . ' : ' . $command . "\n\n\n");

}
?>

If you move to php-4.4.0 also remember to upgrade your mod_php to the latest, and use Zend Optimizer 2.5.10a (any other version of zend won't work with 4.4.0)
Logged
Pages: [1]   Go Up
  Print  
 
Jump to: