How to enable xsendfile on centos?

Status
Not open for further replies.

tommycharleon6602

New Member
Jun 9, 2017
38
0
0
i saw xsendfile for faster performance and want it. The instructions are for debian not centos.

I tried to post this in technical support but that forum is missing the new topic or reply buttons.

Please help
 

adam

Administrator
Staff member
Dec 5, 2009
2,046
108
63
Your server admin should be able to do this. Some guidance here:

http://blogs.isb.bj.edu.cn/miles/2014/02/20/installing-mod_xsendfile-on-centos-6/

Thanks,
Adam.
 

tommycharleon6602

New Member
Jun 9, 2017
38
0
0
Sorry but no. I am the server admin (there is no one else). And I cannot do it. None of your instructions work and xsendfile is not able to be installed. I need some better instructions.

I spent hours trying but all of the tutorials are out of date and the urls to install with wget are all broken links now.
 

tommycharleon6602

New Member
Jun 9, 2017
38
0
0
I saw the link you posted but it is outdated. I actually already tried that exact website already a couple days ago. I'm doing it again now just to output out to you the errors.

Code:
root@server [~]# rpm -Uhv http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
Retrieving http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
Preparing...                ########################################### [100%]
        package epel-release-6-8.noarch is already installed
root@server [~]#
yum is already updated, my system is already fully up to date. Just for kicks and giggles:

Code:
root@server [~]# yum update
Loaded plugins: fastestmirror, security
Setting up Update Process
Loading mirror speeds from cached hostfile
epel/metalink                                            |  14 kB     00:00
 * base: mirror.hmc.edu
 * epel: mirror.sjc02.svwh.net
 * extras: centos.mirror.ndchost.com
 * ius: mirrors.kernel.org
 * rpmforge: mirror.hmc.edu
 * updates: mirrors.ocf.berkeley.edu
base                                                     | 3.7 kB     00:00
centos-sclo-rh                                           | 2.9 kB     00:00
centos-sclo-sclo                                         | 2.9 kB     00:00
extras                                                   | 3.4 kB     00:00
ius                                                      | 2.3 kB     00:00
ius/primary_db                                           | 225 kB     00:00
rpmforge                                                 | 1.9 kB     00:00
updates                                                  | 3.4 kB     00:00
No Packages marked for Update
root@server [~]#
Lastly, attempting to install mod xsendfile:

Code:
root@server [~]# yum install mod_xsendfile
Loaded plugins: fastestmirror, security
Setting up Install Process
Loading mirror speeds from cached hostfile
 * base: mirror.hmc.edu
 * epel: mirror.sjc02.svwh.net
 * extras: centos.mirror.ndchost.com
 * ius: mirrors.kernel.org
 * rpmforge: mirror.hmc.edu
 * updates: mirrors.ocf.berkeley.edu
Resolving Dependencies
--> Running transaction check
---> Package mod_xsendfile.x86_64 0:0.12-3.el6 will be installed
--> Processing Dependency: httpd-mmn = 20051115 for package: mod_xsendfile-0.12-3.el6.x86_64
--> Finished Dependency Resolution
Error: Package: mod_xsendfile-0.12-3.el6.x86_64 (epel)
           Requires: httpd-mmn = 20051115
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest
root@server [~]#
Same problem I ran into before. I can't install mod xsendfile.

When I enable xsendfile in yeti, nothing will download.
 

adam

Administrator
Staff member
Dec 5, 2009
2,046
108
63
tommycharleon6602 said:
None of your instructions work and xsendfile is not able to be installed. I need some better instructions.
Just to be clear, we do not offer support on the installation of xsendfile. It's an option within the script, the script supports it, but we offer script support not for additional server applications or modules. Just like we don't offer support on setting up PHP, MySQL, Apache etc.

If the guidance we provide doesn't work you would need to speak with someone that knows more about servers or search via Google. Alternatively use Nginx as xAccelRedirect comes included.
 

adam

Administrator
Staff member
Dec 5, 2009
2,046
108
63
It's not part of the script, it's part of your server.

Just like your car runs on the road, if I was Audi I wouldn't be responsible for the potholes.

We try to offer guidance where possible but if you want to enable xsendfile it's up to whoever manages your server to enable it.

Sorry I couldn't offer any additional guidance.
 

tommycharleon6602

New Member
Jun 9, 2017
38
0
0
If I bought a car and it did not drive properly because they forgot the rubber on the tires, you can't blame the road for being hard.

Seems your script regarding xsendfile is incompatible with centos 6.
 

enricodias4654

Member
YetiShare User
Jan 13, 2015
411
1
16
tommycharleon6602 said:
If I bought a car and it did not drive properly because they forgot the rubber on the tires, you can't blame the road for being hard.

Seems your script regarding xsendfile is incompatible with centos 6.
xsendfile is an apache module. The script can use this module if you install it, but it's not the script's responsibility to install it for you. You are responsible to setup the environment to run the code.
 

enricodias4654

Member
YetiShare User
Jan 13, 2015
411
1
16
tommycharleon6602 said:
it's not compatible with centos 6, in the future you need to provide centos 6 support.
The OS has nothing to do with it. 90% of this forum probably runs the script in centos. You should probably hire a sys admin.
 

adam

Administrator
Staff member
Dec 5, 2009
2,046
108
63
tommycharleon6602 said:
it's not compatible with centos 6, in the future you need to provide centos 6 support.
Our demo servers run on CentOS 6. We recently moved to Nginx but it was working fine with Apache previously.
 

adam

Administrator
Staff member
Dec 5, 2009
2,046
108
63
The output you posted previously contains an error:

Code:
Error: Package: mod_xsendfile-0.12-3.el6.x86_64 (epel)
           Requires: httpd-mmn = 20051115
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
Searching Google there's a comment on this page:

https://stackoverflow.com/questions/30154245/cant-install-php-package-on-centos

Code:
yum clean all
Try this.

Failing that I can only suggest you post on a more Linux specific forum to see if any other Linux guru can help. Or use Nginx, it comes bundled with xAccelRedirect and performs better than Apache. We have a guide for CentOS here:

https://support.mfscripts.com/public/kb_view/62/
 

tommycharleon6602

New Member
Jun 9, 2017
38
0
0
I tried that already and it did not make any difference. In any case, that stackoverflow answer was for installing the PHP package - that user didn't even have php installed.

That link has nothing to do with xsendfile.
 

adam

Administrator
Staff member
Dec 5, 2009
2,046
108
63
The link relates to the package management error you had. If you see the output on your previous post on this thread, you'll see the dependency error. You'll need the fix the dependency issue as that's why mod_rewrite isn't being installed.
 

adam

Administrator
Staff member
Dec 5, 2009
2,046
108
63
The error is clearly shown in the output you posted.

Code:
Error: Package: mod_xsendfile-0.12-3.el6.x86_64 (epel)
           Requires: httpd-mmn = 20051115
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest
Please re-read everything on this thread. I can try to help but I've also posted this same thing above.
 

adam

Administrator
Staff member
Dec 5, 2009
2,046
108
63
Thread locked, it's going round in circles. I've made it clear what support we help with.
 
Status
Not open for further replies.