Go Back   vb.org Archive > Community Discussions > Forum and Server Management
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 05-18-2008, 01:59 AM
skywalker2208 skywalker2208 is offline
 
Join Date: Mar 2008
Posts: 45
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Moving to PHP5

My site is currently running on PHP4 and MYSQL4 and I wanted to move my site to PHP5 and to MYSQL5. For the move to PHP5 do I need to do anything with the site? Will everything still work fine from moving from 4 to 5?

On regards to mysql, can I just take a mysql dump of mysql4 and import that dump in the new mysql 5 database?
Reply With Quote
  #2  
Old 05-18-2008, 04:38 AM
iogames's Avatar
iogames iogames is offline
 
Join Date: Jan 2007
Location: Las Vegas, NV.
Posts: 1,433
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

request to your hosting service the migration, on my case just 2 external scripts, non-vBulletin stopped working, but I fixed them...
So don't hesitate and take the step

Maybe a backup will give you peace
Reply With Quote
  #3  
Old 05-19-2008, 01:06 AM
skywalker2208 skywalker2208 is offline
 
Join Date: Mar 2008
Posts: 45
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by iogames View Post
request to your hosting service the migration, on my case just 2 external scripts, non-vBulletin stopped working, but I fixed them...
So don't hesitate and take the step

Maybe a backup will give you peace
Request what? Migrating the mysql4 to the mysql 5 database? I was planning on exporting the database and importing it into the new one.

I then plan to download a copy of the whole site just in case. Upgrade to mysql5 and change the script to point to the new database.

Once everything checks out I plan to switch to php5 and also backing up the database again. The hosting company will make the switch to php5 I just have to make sure everything that I am running can run on php5.

Is there anything wrong with the process I plan on doing?
Reply With Quote
  #4  
Old 05-19-2008, 01:26 AM
mikesz mikesz is offline
 
Join Date: Jan 2006
Posts: 45
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You should be fine. Your plan is correct. Be sure to do a full back up of everything before you start the switch. I use the system backup provided in my cpanel. It gets everything and is accessible if something doesn't go right.

HTH, mikesz
Reply With Quote
  #5  
Old 05-19-2008, 01:44 AM
skywalker2208 skywalker2208 is offline
 
Join Date: Mar 2008
Posts: 45
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks mike, but I should have no problem switching from php4 to php5 because I see that it the recommended version to use.
Reply With Quote
  #6  
Old 05-19-2008, 06:23 AM
Dismounted's Avatar
Dismounted Dismounted is offline
 
Join Date: Jun 2005
Location: Melbourne, Australia
Posts: 15,047
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You may have small compatibility issues from modifications (most common is the array_merge() error, but can be easily fixed).
Reply With Quote
  #7  
Old 05-23-2008, 12:25 PM
skywalker2208 skywalker2208 is offline
 
Join Date: Mar 2008
Posts: 45
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I just tried to do the switch from mysql4 to mysql5 and it couldn't connect to the database. Here is the process I did.
1. Create another database
2. import the database
3. changed my config.php file in the includes directory to point to the new database
4. after import was complete it said that it could not connect to the database.

Is there somewhere else I need to make the change?
Reply With Quote
  #8  
Old 05-23-2008, 12:26 PM
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Posts: 25,415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What is the exact error message?
Reply With Quote
  #9  
Old 05-23-2008, 01:27 PM
skywalker2208 skywalker2208 is offline
 
Join Date: Mar 2008
Posts: 45
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Doesn't give any specifics. Just a standard message. I attached a screenshot.
Database error
The database has encountered a problem.
Attached Images
File Type: jpg error.jpg (23.4 KB, 0 views)
Reply With Quote
  #10  
Old 05-23-2008, 01:31 PM
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Posts: 25,415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Either check the error message in your technical email, or right-click on the error page, select "View Source" and you will also get the full error message.
Reply With Quote
Reply


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


All times are GMT. The time now is 04:20 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04472 seconds
  • Memory Usage 2,268KB
  • Queries Executed 12 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (1)postbit_attachment
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • postbit_attachment
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete