Answer the question
In order to leave comments, you need to log in
How to build a server on outdated software?
"Why do you need it?"
There is a server working on OS FreeBSD 7.2. It stands in a regular library (in which the books are paper), and on it is software written in PHP, which is an electronic library catalog. This software can run on PHP versions up to 5.2 and MySQL up to 5. There is a need to port it to newer hardware.
At the moment it all works on the following versions:
Answer the question
In order to leave comments, you need to log in
Virtualize the machine and let it plow itself to the point of exhaustion.
How to virtualize? This is where you have to mess around a bit. (I had to do about the same not so long ago, only the FreeBSD version was even older - installed (by me) in 2004!)
- Remove the screw and stick it into the machine, where there is a place equal to double the volume of the screw
- Make a dumb sector-by-sector image screws (dd in linux, WinDD in Windows)
- Convert the resulting image into an image suitable for hyper - vdi, vmdk, vhd, depending on which hyper it will be
- Create a machine, specify the resulting image as a screw, do not fantasize with iron, set what exactly is in the kernel (in FreeBSD the kernel is monolithic, the practice of loading modules is not particularly used if there are no firewood in the kernel - most likely there are none at all)
- Zabutitsya and check that everything works / does not work. If you suddenly need some kind of program, you will have to manually download the very version that the port wants, put it in /usr/ports/distfiles and compile it.
If you feel confident in your abilities - you can not dig out the stewardess - this is absolutely true (alas, FreeBSD is moving more and more ... to nowhere) - but pick up linux, the one you know and put the necessary software versions there, and just stupidly transfer the site .
Software written in PHP, which is an electronic library catalog. This software can run on PHP versions up to 5.2 and MySQL up to 5.
The OS and the web server do not matter - in principle, any will do. Softina can be containerized in the docker, the base too - you get isolated containers with junk inside a modern OS.
You can also download the image of the old version of the OS and install from it, then mount this image as a repository of old packages.
You can do the same in a virtual machine, abstracting from the hardware.
One word - virtualization.
Since when you try to install an old version of the OS on new hardware, you can get strange problems (or you can’t get it, you won’t know if you don’t try), but the main thing is that outdated software has not been supported for a long time and no one fixes bugs in it. It is most logical to close the virtual machine with a firewall (just when it is already good behind nat).
Therefore, you install a modern OS, and inside using virtualization tools or any sandbox creation tools (even chroot will help), you install an obsolete version of the OS and applications. In a simple version, just migration (read copying) from the old hardware into the virtual machine as is may be suitable, it remains to set up the network and everything will continue to work as it worked.
OS FreeBSD 7.2get away from this, on linux, I recommend for beginners - on ubuntu, freebsd itself may be fine, but setting up something non-standard will be an order of magnitude harder for beginners
OS FreeBSD 7.2
Lighttpd 1.4.25
PHP 4.4.9
MySQL 4.1.25
I will support everyone for the virtual machine.
Copy entire partitions to a qcow2 format disk image and run in a virtual machine on new hardware.
A bunch of old systems work for me in virtual machines.
so what are the difficulties?
This software can run on PHP versions up to 5.2 and MySQL up to 5.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question