Basically, I'm just trying to limit my guests' downloads to only 1 file at a time, limited by their IP. There are multiple tutorials that I've looked up through Google that show me how to limit my users to 1 download at a time using Apache (e.g.: http://skullboxx.net/kb/node/216). I've tried following the tutorial to the best of my novice SSH skills, but I'm always getting errors halfway through the tutorial. From what I'm understanding, I need to get the "mod_limitipconn.c" from this site: http://dominia.org/djao/limitipconn.html I'm using Apach 2.0.63, so I'm using the mod_limitipconn.c from here: http://dominia.org/djao/limitipconn2.html The problem is, whenever I try to "tar xzvf mod_limitipconn-0.23.tar.bz2" after downloading it, I get this error: gzip: stdin: not in gzip format tar: Child returned status 1 tar: Error exit delayed from previous errors Code (markup): I've read that I can convert it to a tar.gz file, but I don't have Linux to be able to do that. Is there another approach that I can use to limit my guests' downloads to 1 file per IP? Thank you! - Nate
Hello there, Try using this to extract: tar xjvf mod_limitipconn-0.23.tar.bz2 You need to run it through the bz2 filter. Chris
Thank you Chris! That worked well. The only problem is that I get this after the "#make install" line: /usr/local/apache/build/libtool --mode=install cp mod_limitipconn.la /usr/local/apache/modules/ cp .libs/mod_limitipconn.so /usr/local/apache/modules/mod_limitipconn.so cp: cannot create regular file `/usr/local/apache/modules/mod_limitipconn.so': Permission denied apxs:Error: Command failed with rc=65536 . make: *** [install] Error 1 Code (markup): Any suggestions? - Nate
Hello there, Make sure you are logged in as the root user, or using the sudo option if needed. Do you have a control panel with this server? You may need to install the apache-devel package for apxs as well. Chris
Actually, I was doing a bit of research and it looks like the permissions error can be caused by not having mod_security installed with Apache? I'm not sure if that's correct, but I found "EasyApache" in my WHM panel, which seems pretty neat. The only thing is that the build process was taking over 11 hours to complete, so I finally closed down my browser and now it's asking me to do the beginning setup again. I thought it would run in the background... But anyways, is there a tutorial on how to setup the apache-devel package? I found links to the actual apache-devel package, but not on how to set it up. - Nate
Hello again, Sounds like you are using cPanel, which will have apxs already installed, along with the devel suite. EasyApache should not take that long to build, at most, maybe an hour or so. The permission issue with mod_sec sounds incorrect, as I do not think that mod_limitcon is dependent on it. If you need a hand, feel free to PM me, and I'd be happy to take a first hand look at things for you. Chris