• Dear Pleskians! The Plesk Forum will be undergoing scheduled maintenance on Monday, 7th of July, at 9:00 AM UTC. The expected maintenance window is 2 hours.
    Thank you in advance for your patience and understanding on the matter.

Apache 2.2.21 (problem installing httpd-devel)

P

Pauli Jokela

Guest
Hey,

I'm running CentOS 5.7 with the latest updates, as well as the latest Plesk version (10.4?).

I need to install httpd-devel in order to compile a certain Apache module, but I'm unable to install it due to dependency errors.

Apparently, the Apache version installed is httpd-2.2.21-11092115.x86_64 while it should be something like httpd-2.2.3-53.el5.centos.3.x86_64.



Running yum install httpd reports the following:
Package matching httpd-2.2.3-53.el5.centos.3.x86_64 already installed.

/usr/sbin/httpd -v reports the following:
Server version: Apache/2.2.21 (Unix)
Server built: Sep 21 2011 15:13:03


rpm -qi httpd | grep Vendor reports the following:
Version: 2.2.21
Vendor: Parallels




So currently, using the version of Apache supplied by Parallels, I'm unable to install the httpd-devel package due to a version mismatch.

Could Parallels provide the httpd-devel package for the corresponding version?

I already tried using the Parallels Installer/Updater to switch from Apache SNI to plain old Apache, but it's not letting me do that. Only reason I wanted to try that, was because I thought that the other version (without SNI) would've used a "public" release of Apache, instead of a custom Parallels built version.
 
Hi,

Same problem here... Did you find a solution ?

Regards,
 
Sadly no, still waiting on official word from Parallels. :-(
 
Hi,

I have installed my serveur with OVH Plesk 10 Installer as naturally. This is how I got Apache 2.2.21.
Do you have the x86_64 version ?

Regards,
 
Hi,

I have tried what atomicturtle described but I still have the error :
Error: Missing Dependency: httpd = 2.2.3-53.el5.centos.3 is needed by package httpd-devel-2.2.3-53.el5.centos.3.i386 (updates)
Error: Missing Dependency: httpd = 2.2.21-1.el5.art is needed by package httpd-devel-2.2.21-1.el5.art.x86_64 (atomic-testing)
You could try using --skip-broken to work around the problem
You could try running: package-cleanup --problems
package-cleanup --dupes
rpm -Va --nofiles --nodigest

I hope someone can sort this out because I'm getting lost...

Regards,
 
Try yum --enablerepo=atomic-testing upgrade httpd httpd-devel

oh and make sure your yum config isnt excluding anything.
 
Tried that. Here is what it says :

# yum --enablerepo=atomic-testing upgrade httpd httpd-devel
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* atomic: www7.atomicorp.com
* atomic-testing: www6.atomicorp.com
* base: mirror.ovh.net
* extras: mirror.ovh.net
* updates: mirror.ovh.net
Excluding Packages in global exclude list
Finished
Excluding Packages from CentOS / Red Hat Enterprise Linux 5 - atomicrocketturtle.com
Finished
Setting up Upgrade Process
Package(s) httpd-devel available, but not installed.
No Packages marked for Update

# yum install httpd-devel
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* atomic: www7.atomicorp.com
* base: mirror.ovh.net
* extras: mirror.ovh.net
* updates: mirror.ovh.net
Excluding Packages in global exclude list
Finished
Excluding Packages from CentOS / Red Hat Enterprise Linux 5 - atomicrocketturtle.com
Finished
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package httpd-devel.i386 0:2.2.3-53.el5.centos.3 set to be updated
--> Processing Dependency: httpd = 2.2.3-53.el5.centos.3 for package: httpd-devel
---> Package httpd-devel.x86_64 0:2.2.3-53.el5.centos.3 set to be updated
--> Processing Dependency: httpd = 2.2.3-53.el5.centos.3 for package: httpd-devel
--> Finished Dependency Resolution
httpd-devel-2.2.3-53.el5.centos.3.i386 from updates has depsolving problems
--> Missing Dependency: httpd = 2.2.3-53.el5.centos.3 is needed by package httpd-devel-2.2.3-53.el5.centos.3.i386 (updates)
httpd-devel-2.2.3-53.el5.centos.3.x86_64 from updates has depsolving problems
--> Missing Dependency: httpd = 2.2.3-53.el5.centos.3 is needed by package httpd-devel-2.2.3-53.el5.centos.3.x86_64 (updates)
Error: Missing Dependency: httpd = 2.2.3-53.el5.centos.3 is needed by package httpd-devel-2.2.3-53.el5.centos.3.i386 (updates)
Error: Missing Dependency: httpd = 2.2.3-53.el5.centos.3 is needed by package httpd-devel-2.2.3-53.el5.centos.3.x86_64 (updates)
You could try using --skip-broken to work around the problem
You could try running: package-cleanup --problems
package-cleanup --dupes
rpm -Va --nofiles --nodigest
 
Simple, reliable solution:

* Creating repository mirror for APACHE_2.2.21:
# mkdir APACHE_2.2.21
# rsync -avu rsync://rsync.autoinstall.plesk.com/autoinstall/APACHE_2.2.21/ APACHE_2.2.21/
(the output will contain downloaded rpm packages for different OS/architectures).

* Install httpd-devel packages:
rpm -Uvh APACHE_2.2.21/dist-rpm-CentOS-5-x86_64/contrib/httpd-devel-2.2.21-11092115.x86_64.rpm

Select corresponding package file for your OS/architecture to install.
Be happy!
 
my solution

#get apache version
yum list | grep httpd

#get according package set from plesk
mkdir APACHE_2.2.22
rsync -avu rsync://rsync.autoinstall.plesk.com/autoinstall/APACHE_2.2.22/ ./APACHE_2.2.22/

#get dependancies
wget http://mirror.euserv.net/plesk/APAC...x86_64/packages/apr-1.4.6-12070410.x86_64.rpm (if needed)
wget http://mirror.euserv.net/plesk/APAC...4/contrib/apr-devel-1.4.6-12070410.x86_64.rpm
wget http://mirror.euserv.net/plesk/APAC...trib/apr-util-devel-1.4.1-12051419.x86_64.rpm

#install everything
rpm -Uvh APACHE_2.2.22/apr-devel-1.4.6-12070410.x86_64.rpm
rpm -Uvh APACHE_2.2.22/apr-util-devel-1.4.1-12051419.x86_64.rpm
rpm -Uvh APACHE_2.2.22/dist-rpm-CentOS-5-x86_64/contrib/httpd-devel-2.2.22-12070410.x86_64.rpm

#test
whereis apxs

#install module
/usr/sbin/apxs -cia mod_xsendfile.c

#test
/usr/sbin/httpd -M | grep send

#configure plesk
cd /var/www/vhosts/example.com/conf/
vim ./vhost.conf
chown root:apache ./vhost.conf
/*************************/
</IfModule><Directory /var/www/vhosts/example.com/httpdocs/>
XSendFilePath /var/www/vhosts/example.com/httpdocs/
</Directory>
/*************************/

#rebuild plesk config for specific domain
/usr/local/psa/admin/sbin/httpdmng --reconfigure-domain example.com

#for good luck might as well restart apache
#through plesk panel
tools & settings -> services management
 
Last edited:
Back
Top