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

Impaler

Aspirant
Joined
Aug 29, 2019
Messages
15
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
 

Karll

Adherent
Joined
Dec 9, 2011
Messages
408
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?
 

Impaler

Aspirant
Joined
Aug 29, 2019
Messages
15
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?
 

Karll

Adherent
Joined
Dec 9, 2011
Messages
408
I tried newer versions and the database just did not work.
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.
 

Impaler

Aspirant
Joined
Aug 29, 2019
Messages
15
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.
 

Karll

Adherent
Joined
Dec 9, 2011
Messages
408
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.
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.
 

Impaler

Aspirant
Joined
Aug 29, 2019
Messages
15
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
 

Impaler

Aspirant
Joined
Aug 29, 2019
Messages
15
its not a screenshot, I just copied the error its gives me into pastebin.com
information in the screenshot would be no different
 

Karll

Adherent
Joined
Dec 9, 2011
Messages
408
Warning: mysql_real_escape_string() expects parameter 2 to be resource, integer given in /public_html/includes/db/mysql.php on line 83

Warning: mysql_query() expects parameter 2 to be resource, integer given in /public_html/includes/db/mysql.php on line 155
Database Error.
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.)
 

LeadCrow

Apocalypse Admin
Joined
Jun 29, 2008
Messages
6,464
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.
 

Impaler

Aspirant
Joined
Aug 29, 2019
Messages
15
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.
 

Taylor J

Fan
Joined
Mar 13, 2010
Messages
796
Is there not a way to just install the older versions of MySQL and php locally and do it that way?
 

overcast

Adherent
Joined
Mar 17, 2019
Messages
342
I am not sure how this will work out because I don't think XAMPP would have that much older version of the installers.
 

Karll

Adherent
Joined
Dec 9, 2011
Messages
408
I am not sure how this will work out because I don't think XAMPP would have that much older version of the installers.
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.
 

Oldcrow

Enthusiast
Joined
Dec 7, 2010
Messages
215
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
I have used https://ifastnet.com/ probably 20 years now I have a selection for PHP versions from 4.4 to 7.3
 

MikeDance

Aspirant
Joined
Aug 28, 2012
Messages
17
Why would anyone want to use EOL software? You could do so on your own VPS but you're putting yourself and others who use your site at risk. Not worth it!
 
Top