1

Topic: How to update LAMP?

==== Required information ====
- iRedMail version: 0.8.4
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Linux/BSD distribution name and version: CentOS 6.4 64
- Related log if you're reporting an issue:
====

I've managed to install iRedMail and it works fine in my server.
Dispite of being the best mailing solution I've found, the LAMP stack installed with it is outdated for my needs and I'm having the hardest time trying to upgrade it.

I was wondering what would be the most painless way to use apache 2.4 with php 5.4 and a newer version of mysql.

The fastest way I've found to install this LAMP stack was using Bitnami installer but, unfortunately, I wasn't able to make it work together with iRedMail. After iRedMail was tested, I tried to remove apache, php and mysql and install the Bitnami stack but it just didn't work (no errors in the log).

What approach should I take for that?? Did I miss anything during the install or maybe should I take a different approach (like editing the iRedMail install script to make it work with the newer LAMP stack from the beginning)?

Thanks a lot!

2

Re: How to update LAMP?

The best way is, find a trusted third-party yum repository which provides Apache-2.4, PHP, then upgrade. But i don't know which one provides it.

Another way is building RPM package yourself by following Apache official guide: https://httpd.apache.org/docs/2.4/platform/rpm.html

Just curious, why you want to upgrade to Apache-2.4 and PHP-5.4? Any special features you expected?

3

Re: How to update LAMP?

ZhangHuangbin wrote:

The best way is, find a trusted third-party yum repository which provides Apache-2.4, PHP, then upgrade. But i don't know which one provides it.

Another way is building RPM package yourself by following Apache official guide: https://httpd.apache.org/docs/2.4/platform/rpm.html

Just curious, why you want to upgrade to Apache-2.4 and PHP-5.4? Any special features you expected?

Hello, Zhang! Thanks for the quick answer.
I forgot to mention that I didn't find any (working) yum repo with Apache 2.4 (don't understand why).
I guess I'll have to take your suggestion and build it from source.

Do you think it's worth trying to modify the installer to install those versions from the start??

In this moment, I need to upgrade those for benchmarking purposes. I'm lauching a web app and I heard that apache 2.4 is much faster but that I should try it with my own app to know how much faster. I could just install them and test but I'd like to see how my server would behave while using everything that I'll have in the real server and that will probably include iRedMail (if I can solve this issue).

Thanks once more!

4

Re: How to update LAMP?

robyflc wrote:

I forgot to mention that I didn't find any (working) yum repo with Apache 2.4 (don't understand why).
I guess I'll have to take your suggestion and build it from source.

Many third-parties don't pack RPM packages for softwares which already shipped in upstream, for example, Apache, PHP, Dovecot.

robyflc wrote:

Do you think it's worth trying to modify the installer to install those versions from the start??

You can try it, but personally, i don't recommend this. I suggest you get a working iRedMail server first, then upgrade.

You have to make sure the new build RPM has the config files in same path, e.g. /etc/httpd/httpd.conf. Otherwise iRedMail won't config it for you, or even failed.

robyflc wrote:

In this moment, I need to upgrade those for benchmarking purposes. I'm lauching a web app and I heard that apache 2.4 is much faster but that I should try it with my own app to know how much faster. I could just install them and test but I'd like to see how my server would behave while using everything that I'll have in the real server and that will probably include iRedMail (if I can solve this issue).

I don't know how much traffic your site will serve, but you can do it on your own.