install.sh EA4.0 and CentOS 5 support

Hey Sebastian,

That yum error is a bug that I thought I’d fixed about a month ago. I’m looking into it.

Oh, and it’s probably harmless that that last update failed, if your system is stock and doesn’t have any pre-existing components from other sources (older versions of Webmin, in particular, but other components can also cause problems if they came from DAG or RPMForge).

Hi Seb,

Joe is the expert, so he should be able to help you.

You said you did not yum update right after installation of CentOS (but before installation of Virtualmin Pro). I think you should. Then, install Virtualmin Pro.

As I use my server mainly as a web server, I did not install Gnome, X Windows etc. etc., only the server components. Virtualmin Pro is all I need to manage my server.

Cheers.

I am ready to upgrade one of my production servers from CentOS 4 to CentOS 5. Currently the CentOS 4 server has only PHP 4 installed. I expect the upgrade installer to replace it with PHP 5, however I want to keep PHP 4 afterwards for hosting customers to have both choices available.

What is the best way to do this? Should I reinstall PHP 4 from the Virtualmin repo after the upgrade? Will it peacefully co-exist with the CentOS PHP 5 packages?

Any other gotchas that I should be aware of before doing the upgrade?

Thanks,
Alan

Hi Alan,

Why don’t you try upgrading from CentOS 4 to CentOS 5 on a development server first? That way, if there are any nasty surprises, at least there is no real consequence.

Well, that’s exactly what I wound up doing, although I was hoping that someone had already been down this road. Overall, the upgrade went pretty well, but it definitely requires some work afterwards to clean things up.

As I suspected, the CentOS 5 upgrade did remove the PHP 4 packages during the installation, so I had to add them back manually afterwards. No big deal though, I basically just did a yum install php4* from the Virtualmin repo, and it seems to work so far.

The biggest problem right now is that I get a segfault upon starting the httpd service from the virtualmin package. I am still troubleshooting this one, so feel free to give me any suggestions…

The segfault is both PHP versions trying to load. I could have sworn I had fixed this.

Comment out the module loading bit of either /etc/httpd/conf.d/php4.conf or /etc/httpd/conf.d/php.conf. (Or both, since mod_fcgid can handle everything we’ve thrown at it, including the Joomla on Virtualmin.com, which is a pretty heavy-duty task.)

That worked. Thanks for the tip, Joe!

I found the problem in my PHP4 packages, and it’ll be fixed by default tonight or tomorrow.

Thanks for the heads up about this problem still existing.