How to get back to your repositories

Yes, I have strayed from the fold and went with an external repo for php and mysql. Well, all of those packages were updated today and now httpd won’t restart.

I’d like to get back to the base Virtualmin versions of httpd, mysql and php so I am in line with the rest of the VM world.

I am on CentOS EL5 i386

Please help a lost lamb! Thanks!

Thanks for your honesty, that definitely helps solve the problem :slight_smile:

It’ll unfortunately take a small book to write all the steps here… but I’ll toss out a few notes :slight_smile:

First off – I’ll be the first to admit that you can use third party software from some repos, and there are times when it makes sense to do so. If you’d simply like to go over the error you’re seeing, we can certainly do that.

That said, you might consider the VM Bleed repository:

http://www.virtualmin.com/documentation/id%2Cvirtualmin_bleeding_edge_packages

If you do want to get away from the software you’re using, the first thing you’d do is disable the third party software repository you’re using.

From there, you just have to figure out what packages you have installed now, and replace them with ones in the other repositories you have enabled.

For example, I think you can use something like:

yum install php-5.x.x php-mysql-5.x.x

Where 5.x.x is the version you’re migrating to (which is only necessary if the installed version is newer).

The only thing I’d be concerned about is MySQL – you’d need to verify ahead of time that the database format you’re using with your currently installed version is also supported by the previous version… otherwise weird things could happen otherwise :slight_smile:

You might consider doing a full backup first.

I hope that helps!

-Eric

Eric,

Here’s a quick workaround I have done, perhaps it will ring a bell with you and let me know what to do to continue:

If I install the 3rd party httpd, restart, then install the vm httpd over top of it, httpd & apache and mysql and php all run like a champ. But if apache is restarted, httpd fails. And if I don’t install vm httpd over top of the 3rd party httpd, httpd fails.

So I’m guessing the difference must just be a configuration file.

Any ideas to help me limp along for a few hours?

Well, I don’t have any guesses as to what may be awry.

The best I can offer is that if you provide error messages and the like, that we can try and troubleshoot them :slight_smile:

For example, if Apache isn’t starting, there’s likely an error in /var/log/httpd/error_log.

-Eric