Anyone know any ancient hostings that support php 4 & mysql 3/4?

Discussion in 'Hosting Discussions' started by Impaler, Aug 29, 2019.

  1. Impaler

    Impaler Neophyte

    6
    1
    +0
    hi guys, I'm in need to restore an old backup of a website with was running in year 2008-2011.

    I'm restoring subdreamer cms and IP.Board 2.

    Subdreamer CMS works with PHP version 4.1.0 or newer and MySQL 3.23 or newer.
    IP.Board 2 - PHP: v4.3.0 or better and SQL: mySQL v4.0.0 or better

    Anyone know any free hosting sites or paid, where I might restore these sites for a day or two?

    Thanks
     
  2. Karll

    Karll Adherent

    377
    167
    +160
    Is it an option to just restore them locally, say on your laptop / workstation?

    If the requirement is some old version of MySQL and PHP or newer then why not try a modern version? Have you tried? Did it work? Or is there some known upper version limit?
     
  3. Impaler

    Impaler Neophyte

    6
    1
    +0
    of course, locally would work . duh, how I did not even think of that?

    I tried newer versions and the database just did not work.

    do you know any easy solutions for setting up a localhost environment?
     
  4. Penguin

    Penguin Aspirant

    14
    8
    +11
  5. Karll

    Karll Adherent

    377
    167
    +160
    What format is the database? Is it a copy of the data directory or do you have a mysqldump file, i.e. something with an .sql extension? If you have the latter, I'd think you should be able to import it into a newer version. If you only have a copy of the data directory, then it's much harder, I think.
     
  6. Impaler

    Impaler Neophyte

    6
    1
    +0
    yes I do have, a full backup generated by directadmin back in 2010. database in sql format can be imported. though it just does not work in newer server environment.
     
  7. Karll

    Karll Adherent

    377
    167
    +160
    How are you trying to import it now? What sort of error messages do you get when you try to import it?

    Does DirectAdmin use mysqldump under the hood? If the .sql file was generated by mysqldump, then it will usually say so in a comment at the beginning of the file. You can open the .sql file in a text editor to read it. If it does use mysqldump, then chances are good for being able to import it to a newer version, though may require some small tweaking.

    Feel free to PM me if you'd like me to have a look at it for you.
     
  8. Impaler

    Impaler Neophyte

    6
    1
    +0
    I simply import it via phpmyadmin, I select the database and phpmyadmin eats it up without any errors. I update everything to the new location in the website config files.

    But when I launch the website in the browser it gives an error like this though I know I made the configuration right:

    I just think its incompatibly of the old software with todays' versions of php/mysql
     
  9. Karll

    Karll Adherent

    377
    167
    +160
    Impaler - afraid I can't see your screenshot as it just times out.
     
  10. Impaler

    Impaler Neophyte

    6
    1
    +0
    its not a screenshot, I just copied the error its gives me into pastebin.com
    information in the screenshot would be no different
     
  11. Karll

    Karll Adherent

    377
    167
    +160
    I assume this is with a newer PHP version than used originally? This looks like a PHP error, not an error with the database as such.
    https://www.php.net/manual/en/function.mysql-real-escape-string.php

    You can try to modify your PHP code slightly to make it work, maybe simply remove that second argument to this function?

    (Disclaimer: I'm a pro with databases, but rubbish with PHP.)
     
  12. LeadCrow

    LeadCrow Apocalypse Admin

    6,403
    1,232
    +2,160
    Those versions are insecure, you shouldnt load a live version of your site on online webspace even temporarilly for upgrading.

    Use a local stack if you can handle issues yourself, or commission a freelancer offering upgrade services if you'd rather not mess with this yourself as it's usually cheap and they're usually familiar enough with these procedures to complete upgrades quickly with minimal errors.
     
  13. Impaler

    Impaler Neophyte

    6
    1
    +0
    Karll yes, a newer php version spits this error

    LeadCrow see the thing is that I dont care about that website. It will just be mainly used to collect a few posts of information and its design be used as an inspiration for a re-design for a IPS v4 design so I will just copy some CSS code, colors, images and so on. Its a temporary restore at best for a few days. After that it will all be deleted for good. :) Its insecure, I know but I dont care.
     
  14. Taylor J

    Taylor J Fan

    789
    522
    +68
    Is there not a way to just install the older versions of MySQL and php locally and do it that way?
     
  15. incredible

    incredible Neophyte

    3
    6
    +0
    You can buy an unmanaged VPS and install desired software.
     
  16. overcast

    overcast Enthusiast

    227
    23
    +44
    I am not sure how this will work out because I don't think XAMPP would have that much older version of the installers.
     
  17. Karll

    Karll Adherent

    377
    167
    +160
    Then a solution could be to install and configure the individual components of the stack: Apache web server, MySQL or MariaDB, and PHP. It sounds as if it's only PHP that needs the older package.
     
  18. Oldcrow

    Oldcrow Enthusiast

    213
    75
    +34
    I have used https://ifastnet.com/ probably 20 years now I have a selection for PHP versions from 4.4 to 7.3
     
  19. HD-Sam

    HD-Sam Aspirant

    11
    58
    +7
    If it's only temporary, I'd recommend a CloudLinux + cPanel server. You can then run a hardened version of PHP 4.

    https://www.cloudlinux.com/hardenedphp

    After that, configure your firewall so that it's only open to your own IP and you should be all set.
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.