LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > CentOS
User Name
Password
CentOS This forum is for the discussion of CentOS Linux. Note: This forum does not have any official participation.

Notices


Reply
  Search this Thread
Old 02-07-2023, 02:14 AM   #1
mark608
LQ Newbie
 
Registered: Feb 2023
Posts: 4

Rep: Reputation: 0
virtual machine with centos 5


Hello everyone,
Is there a way to get a virtual machine with centos 5? With apache, php and mysql.
I can install from the iso, but when installing packages with yum it gives an SSL connection error.
(I have changed to the vault option in the repositories)

Thanks in advance
 
Old 02-07-2023, 02:30 AM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,923

Rep: Reputation: 7319Reputation: 7319Reputation: 7319Reputation: 7319Reputation: 7319Reputation: 7319Reputation: 7319Reputation: 7319Reputation: 7319Reputation: 7319Reputation: 7319
Hi, and welcome here, at LQ

CentOS 5 had reached its end of life long time ago, therefore you will get no uptodate software for it. From the other hand what you wrote is vague. An SSL connection error is definitely just a configuration problem somewhere.
http://www.catb.org/~esr/faqs/smart-...html#beprecise
 
Old 02-07-2023, 02:53 AM   #3
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,740

Rep: Reputation: 5922Reputation: 5922Reputation: 5922Reputation: 5922Reputation: 5922Reputation: 5922Reputation: 5922Reputation: 5922Reputation: 5922Reputation: 5922Reputation: 5922
Why do you need to install centos 5? Do you need specific version of mysql or php?

It is probably a ca certificate problem and switching to http from https in yum repository list might work. If versions do not matter then CentOS 7 is good for another year or go with Alma or Rocky linux.
 
Old 02-07-2023, 06:15 AM   #4
mark608
LQ Newbie
 
Registered: Feb 2023
Posts: 4

Original Poster
Rep: Reputation: 0
Thank you for your answers.
I have an old web application (made with codeigniter) that works on a server with centos 5.This server can die at any time.
That is why I would like an environment that is the same or similar to the one in which I already have the application running.

centos 5.9

PHP 5.2.10 (cli) (built: Nov 13 2009 11:24:03)

mysql Ver 14.12 Distrib 5.0.95, for redhat-linux-gnu (i386) using readline 5.1

On a clean install of centos 5, when doing yum update, I get this error:

Code:
[root@localhost ~]# yum update
Loaded plugins: fastestmirror, security
Loading mirror speeds from cached hostfile
YumRepo Error: All mirror URLs are not using ftp, http[s] or file.
 Eg. Invalid release/repo/arch combination/
removing mirrorlist with no valid mirrors: /var/cache/yum/base/mirrorlist.txt
Error: Cannot find a valid baseurl for repo: base
/etc/yum.repos.d/CentOS-Base.repo

Code:
[base]
name=CentOS-$releasever - Base
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os
#baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5

#released updates
[updates]
name=CentOS-$releasever - Updates
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates
#baseurl=http://mirror.centos.org/centos/$releasever/updates/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5

#additional packages that may be useful
[extras]
name=CentOS-$releasever - Extras
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=extras
#baseurl=http://mirror.centos.org/centos/$releasever/extras/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5

#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-$releasever - Plus
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=centosplus
#baseurl=http://mirror.centos.org/centos/$releasever/centosplus/$basearch/
gpgcheck=1
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5

#contrib - packages by Centos Users
[contrib]
name=CentOS-$releasever - Contrib
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=contrib
#baseurl=http://mirror.centos.org/centos/$releasever/contrib/$basearch/
gpgcheck=1
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5

I have made several changes to the repository without success on other installations.

I just did this installation to test your suggestions.

Thanks in advance
 
Old 02-07-2023, 06:54 AM   #5
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,923

Rep: Reputation: 7319Reputation: 7319Reputation: 7319Reputation: 7319Reputation: 7319Reputation: 7319Reputation: 7319Reputation: 7319Reputation: 7319Reputation: 7319Reputation: 7319
Quote:
Originally Posted by mark608 View Post

On a clean install of centos 5, when doing yum update, I get this error:

Code:
[root@localhost ~]# yum update
Loaded plugins: fastestmirror, security
Loading mirror speeds from cached hostfile
YumRepo Error: All mirror URLs are not using ftp, http[s] or file.
 Eg. Invalid release/repo/arch combination/
removing mirrorlist with no valid mirrors: /var/cache/yum/base/mirrorlist.txt
Error: Cannot find a valid baseurl for repo: base
Because it is not available any more. You need to upgrade your system. Not only because it is over, but also your product is currently using/running on a system which is not supported any more.
 
Old 02-07-2023, 07:58 AM   #6
mark608
LQ Newbie
 
Registered: Feb 2023
Posts: 4

Original Poster
Rep: Reputation: 0
I know that it is not correct, but it is an application that is not connected to the network.
and I just want to have it replicated in case the server dies.
I have tried newer versions but it doesn't work.
That's why I want only one (virtual) machine with these versions:
-Centos 5.9
-PHP 5.2.10 (cli) (built: Nov 13 2009 11:24:03)
-mysql Ver 14.12 Distrib 5.0.95, for redhat-linux-gnu (i386) using readline 5.1

do you think it is possible to achieve?
 
Old 02-07-2023, 08:17 AM   #7
TenTenths
Senior Member
 
Registered: Aug 2011
Location: Dublin
Distribution: Centos 5 / 6 / 7
Posts: 3,476

Rep: Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553
Shut down your existing server, then use something like clonezilla to take a full backup to external media, that way you've at least got a backup in the event of hardware failure.

You may also find that unless your existing server has weird hardware like proprietary RAID controllers that you may be able to restore your clonezilla backup into a VM
 
Old 02-07-2023, 02:46 PM   #8
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,740

Rep: Reputation: 5922Reputation: 5922Reputation: 5922Reputation: 5922Reputation: 5922Reputation: 5922Reputation: 5922Reputation: 5922Reputation: 5922Reputation: 5922Reputation: 5922
As posted the ssl is way out of date and it isn't not worth my time to see if updating is possible.

I did install 5.9 in a VirtualBox VM and it is possible to manually install RPMs from the archive but you need to resolve dependencies. As a workaround I downloaded the desired RPMs to the host and then created a CD ISO that I could "insert" into the guest. The 5.9 archive has php 5.3 not 5.2.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to : Open Virtual Machine Manager to create a new virtual machine BKChicago Linux - Newbie 2 11-08-2016 09:48 PM
Looking For A Bootable OS + Virtual Machine Combo - Bootable Virtual Machine OS Help angelbabycry Linux - Newbie 7 05-08-2015 08:36 PM
how to know the remote machine is Virtual machine or physical machine pantdk Linux - Server 19 10-16-2014 01:48 PM
Is base memory of virtual machine used when virtual machine is not running? ravisingh1 Linux - Virtualization and Cloud 3 04-09-2013 03:41 AM
Running virtual pc files in a virtual machine in linux ... preferably virtual box biharibong Linux - Software 4 01-21-2009 01:04 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > CentOS

All times are GMT -5. The time now is 11:10 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration