• We value your experience with Plesk during 2024
    Plesk strives to perform even better in 2025. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2024.
    Please take this short survey:

    https://pt-research.typeform.com/to/AmZvSXkx
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

How to upgrade apache version to 2.4.X in centos 6 with Plesk panel 12

JebinL

New Pleskian
Hello members,

Can some one help me on how to upgrade apache version to 2.4.X in centos 6 with Plesk panel12 without breaking anything. The current version is httpd-2.2.15-31.el6.centos.x86_64 and running yum update httpd is showing as no updated versions are available.
 
I'm waking this thread back up because the answer wasn't very complete.

Is there a best-practices doc for upgrading to Apache 2.6? I see it installs to a different directory, how does plesk then know to use it?
 
Err...are you sure you want to do this? The best practice in my book would be not to do so at all. If you need Apache 2.4 then consider Centos 7. I'm not sure what to suggest if you need 2.6 which I didn't think existed yet ;-) [yes, I know, 2.6 was a typo - I'm just pulling your leg].

While Plesk 12 "supports" Apache 2.0 to 2.4, the standard version for Centos 6 is 2.2. You would need to remove 2.2 and then obtain or compile a version of apache 2.4 that essentially completely replaces the 2.2 installation, and live with any incompatibilities that may occur in doing so. Unless you really know what you are doing, this really isn't a good idea. As I understand it, on top of everything else, you may also need to obtain/compile compatible version of php that works with 2.4 as well - I'm not sure the versions provided with Centos 6 would work with 2.4. Same goes for all sorts of other modules Plesk depends on. I'm not saying it isn't possible - just that it probably isn't terribly practical.

And for all I know someone has created an installed/upgrader and plenty of compatible rpms, but I'm not aware of such a thing.

May I ask why do you want to do this? I can't think of any reason to change the vendor-provided version of Apache when running Plesk.
 
That was a typo sorry, I meant Apache 2.4



Here's the issues I'm having so far, and this will be just as relevant when installing Plesk on the box since I don't know how Plesk works with Apache 2.4 being in a different directory structure...


I installed Apache 2.4 on a min. installation of CentOS (in other words, this was a fresh Apache installation, not an upgrade from 2.2, there is no previous Apache on the box)

I'm a little green on this in general, but I see that Apache 2.4 got installed to:
/opt/rh/httpd24/root/var/www

(this was installed using repo http://repos.fedorapeople.org/repos/jkaluza/httpd24/epel-httpd24.repo)

and I need to stop/start/restart using command:
service httpd24-httpd {start|stop|restart}


I haven't installed Plesk yet as I wanted to get Apache 2.4 installed first, here is just one example (it isn't Plesk specific) but the solution may be similar and I do want to install Apache and modules in a way that is best-practice for Plesk 12.


An example complication just to demonstrate one challenge:

1) I'm trying to install some modules, for example following the steps here for mod_pagespeed:
http://wpguru.co.uk/2014/03/how-to-install-apache-mod_pagespeed-on-centos-with-plesk/

it places its files here for example: /etc/httpd/conf.d/pagespeed.conf


Should I be creating some kind of sym link to redirect attempts of accessing /etc/httpd/ to redirect to /opt/rh/httpd24/..<something>?

For example the Apache 2.6 conf file exists at /opt/rh/httpd24/root/etc/httpd/conf/httpd.conf

This is the file structure for the 2.4 httpd directory:

# ls -al /opt/rh/httpd24/root/etc/httpd
total 20
drwxr-xr-x. 5 root root 4096 May 1 10:57 .
drwxr-xr-x. 11 root root 4096 May 1 10:57 ..
drwxr-xr-x. 2 root root 4096 May 1 10:57 conf
drwxr-xr-x. 2 root root 4096 May 1 10:57 conf.d
drwxr-xr-x. 2 root root 4096 May 1 10:57 conf.modules.d
lrwxrwxrwx. 1 root root 34 May 1 10:57 logs -> /opt/rh/httpd24/root/var/log/httpd
lrwxrwxrwx. 1 root root 44 May 1 10:57 modules -> /opt/rh/httpd24/root/usr/lib64/httpd/modules
lrwxrwxrwx. 1 root root 34 May 1 10:57 run -> /opt/rh/httpd24/root/var/run/httpd



2) Has anyone installed Plesk on Apache 2.4? Does it detect this non-standard location of Apache? Or does something need to be done first before installing Plesk (sym links?)



Back to the module installation, the module isn't working and I don't know if I should copy the files over (but I don't want to keep having to do that) or what the best practice is (create a sym link, but not sure what to link to what)

I do see some files here since Apache 2.2 wasn't installed I don't know if these files just come default with CentOS min build or where they came from. The machine was built very recently (in the last month)


# ls -al /etc/httpd/conf
total 60
drwxr-xr-x. 2 root root 4096 May 1 11:12 .
drwxr-xr-x. 4 root root 4096 May 1 11:12 ..
-rw-r--r--. 1 root root 34418 Aug 15 2014 httpd.conf
-rw-r--r--. 1 root root 13139 Oct 16 2014 magic



Thanks in advance for any help or clarification.
 
I don't think Plesk will detect a non-standard location. You can try symlinking but it may not work. The best way to experiment is with a VPS of some type, so that you can create multiple backups/snapshots to which you can restore quickly if something doesn't work.
 
Does it detect this non-standard location of Apache? Or does something need to be done first before installing Plesk (sym links?)

Can you not define the new Apache directory in /etc/psa/psa.conf, I see...
Code:
# Apache configuration files directory
HTTPD_CONF_D /etc/apache2

# Apache include files directory
HTTPD_INCLUDE_D /etc/apache2/conf-enabled

# Apache binary
HTTPD_BIN /usr/sbin/apache2

On Ubuntu 14.
Maybe you can define a new directory as you would if you moved the email location?

How to change location of mail maildirs in Parallels Plesk Panel?


Anyway just a thought.
 
That may be fine for Plesk but not sure about when Apache modules get installed outside of Plesk (which I realize isn't a Plesk-specific question) but there must be some best practices recommended by Plesk when using Apache 2.4 or someone out there running 2.4 who can advise?
 
Plesk is mostly only concerned with the configuration, restarting etc, so mods to psa.conf may well work.
 
So when i understand you Plesk 12 supports Apache 2.4 and i hope latest php , i guess 5.5 ?
I'm using Deb Wheezy and due to the latest news about DH Crack i guess to upgrade my Apache2.2 and PHP over backports to the latest versions.

And another questeion, when will Plesk support Debian Jessy ?

THX
Chech
 
I was talking about Debain not centOS ;)

I could say something sarcastic like
"I was not answering you, i was answering this thread and as far as i can see is this discussion about apache 2.4.x on centos 6. There is a big hint towards this is the title and in 95% of the posts."

But i wont.

regards
Jan
 
Back
Top