+ Post New Thread
Results 1 to 9 of 9
Web Development Thread, PHP Versions in Coding and Web Development; I have recently built a new webserver on Ubuntu 10.10. I was on PHP version 2.11.1 and now on 3.3.7. ...
  1. #1
    frosty's Avatar
    Join Date
    May 2007
    Location
    East Sussex
    Posts
    121
    Thank Post
    13
    Thanked 10 Times in 10 Posts
    Rep Power
    18

    PHP Versions

    I have recently built a new webserver on Ubuntu 10.10.

    I was on PHP version 2.11.1 and now on 3.3.7. I understand that there is no way to import a database from 2.11.1 to 3.3.7 is that correct? If that is the case does anyone have any ideas or is it a rebuild of my Joomla & Moodle from scratch?

  2. #2

    powdarrmonkey's Avatar
    Join Date
    Feb 2008
    Location
    Alcester, Warwickshire
    Posts
    4,867
    Thank Post
    412
    Thanked 778 Times in 651 Posts
    Rep Power
    182
    Quote Originally Posted by frosty View Post
    I was on PHP version 2.11.1 and now on 3.3.7.
    I doubt that very much; PHP major version 2 has not been in production in years now. You mean 5.3.3-1ubuntu9.1.

    I understand that there is no way to import a database from 2.11.1 to 3.3.7 is that correct? If that is the case does anyone have any ideas or is it a rebuild of my Joomla & Moodle from scratch?
    You should probably ask on Moodle.org: Forums

  3. #3
    frosty's Avatar
    Join Date
    May 2007
    Location
    East Sussex
    Posts
    121
    Thank Post
    13
    Thanked 10 Times in 10 Posts
    Rep Power
    18
    Quote Originally Posted by powdarrmonkey View Post
    I doubt that very much; PHP major version 2 has not been in production in years now.[/url]
    2006 I believe? - Yes I am still using it...

    No I mean Ubuntu 10.10

  4. #4

    powdarrmonkey's Avatar
    Join Date
    Feb 2008
    Location
    Alcester, Warwickshire
    Posts
    4,867
    Thank Post
    412
    Thanked 778 Times in 651 Posts
    Rep Power
    182
    Quote Originally Posted by frosty View Post
    2006 I believe? - Yes I am still using it...

    No I mean Ubuntu 10.10


    Ubuntu 10.10 ships PHP version 5.3.3-1ubuntu9, and if you have updated recently you've got 5.3.3-1ubuntu9.1. End of.

  5. #5
    frosty's Avatar
    Join Date
    May 2007
    Location
    East Sussex
    Posts
    121
    Thank Post
    13
    Thanked 10 Times in 10 Posts
    Rep Power
    18
    Right so anyway back to the original query...is anyone able to help?

  6. #6

    ZeroHour's Avatar
    Join Date
    Dec 2005
    Location
    Edinburgh, Scotland
    Posts
    5,770
    Thank Post
    959
    Thanked 1,376 Times in 840 Posts
    Blog Entries
    1
    Rep Power
    455
    Quote Originally Posted by frosty View Post
    Right so anyway back to the original query...is anyone able to help?
    Firstly moodle/joomla requires php 4+ I believe (check by making a something.php file with <? phpinfo(); ?> in it to see the details)
    If its using a mysql database its easy to move the db. Just use a program such as heidisql to connect to the servers database and export to an sql file. On your new server connect and run the sql file you just made against it and it should create the databases (check the relevant boxes when exporting)
    Next you have to manually create the user accounts on your new server and setup permissions to allow the account to access the db. Move the php files and see if it works (update connection server name if its not localhost in the moodle/joomla config file)

    thats a rough outline for you.

  7. #7
    frosty's Avatar
    Join Date
    May 2007
    Location
    East Sussex
    Posts
    121
    Thank Post
    13
    Thanked 10 Times in 10 Posts
    Rep Power
    18
    Sorry I am on 5.3.3-1ubuntu9.1 as I was so eliquently put in my place. In error I posted my phpmyadmin version - so sorry.

    I have tried exporting in phpmyadmin to a .sql file and reimporting in my 5.3.3-1 and get this error:

    MySQL said: Documentation
    #1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot;
    &quot;http://www.w' at line 1

  8. #8

    powdarrmonkey's Avatar
    Join Date
    Feb 2008
    Location
    Alcester, Warwickshire
    Posts
    4,867
    Thank Post
    412
    Thanked 778 Times in 651 Posts
    Rep Power
    182
    Quote Originally Posted by frosty View Post
    Sorry I am on 5.3.3-1ubuntu9.1 as I was so eliquently put in my place. In error I posted my phpmyadmin version - so sorry.
    Right, now I understand. This isn't at all related to Joomla, Moodle or PHP then.

    I have tried exporting in phpmyadmin to a .sql file and reimporting in my 5.3.3-1 and get this error:

    MySQL said: Documentation
    #1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot;
    &quot;http://www.w' at line 1
    The file you've exported isn't a SQL file. That snippet is the top of a web page, so something has gone badly wrong in your export.

  9. #9
    Cools's Avatar
    Join Date
    Jan 2009
    Location
    Bedfordshire
    Posts
    498
    Thank Post
    24
    Thanked 62 Times in 57 Posts
    Rep Power
    25



SHARE:
+ Post New Thread

Similar Threads

  1. Different versions of 7 in same installer?
    By theeldergeek in forum Windows 7
    Replies: 5
    Last Post: 14th May 2010, 02:14 AM
  2. GTK+ Versions
    By cookie_monster in forum Windows
    Replies: 3
    Last Post: 22nd October 2009, 04:52 PM
  3. VMWare versions
    By cookie_monster in forum Thin Client and Virtual Machines
    Replies: 8
    Last Post: 19th June 2008, 06:48 PM
  4. What do all the different versions of Vista do
    By SimpleSi in forum Windows Vista
    Replies: 14
    Last Post: 7th April 2008, 06:52 PM
  5. Office versions
    By JonR in forum How do you do....it?
    Replies: 4
    Last Post: 11th January 2008, 10:48 AM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •