Quote:Plus hopefully i'll know a bit more about linux then as well.
Lets hope so, ok so .. well it looks a little odd with the HTTPD_ROOT="/etc/httpd" (doesn't that mean your apache is in /etc/httpd ?!?) anyway other than that .. nothing special is there, so lets just do the basic.
By the way, I will be doing this "properly", that is we will not be simply installing from source, we will build a RPM and install that :)
In preparation put this into a file in
~/.rpmmacros
Code:
%_topdir %(echo $HOME)/rpmbuild
Then continue with this:
Code:
# mkdir ~/rpmbuild/{RPMS,SOURCES,SPECS,SRPMS,BUILD}
# wget http://apache.rmplc.co.uk/httpd/httpd-2.0.59.tar.gz -O ~/rpmbuild/SOURCES/
# cd ~/rpmbuild/SOURCES/
# tar -xzf httpd-2.0.59.tar.gz
# cd httpd-2.0.59
# cp httpd.spec ~/rpmbuild/SPECS
Now edit the file that I told you about
os/tpf/os.h (or maybe just check that its larger than the 1024 that you seen). Look for the line
#define FD_SETSIZE 2048 if it is 2048, then its fine, if its smaller then you need to make it bigger and save the file.
IF YOU CHANGE IT, do this:
Code:
# cd ~/rpmbuild/SOURCES
# rm httpd-2.0.59.tar.gz
# tar -cvf httpd-2.0.59.tar httpd-2.0.59/
# gzip -9v httpd-2.0.59.tar
If you haven't changed it, then skip that bit above.
OK So next!
Code:
# cd ~/rpmbuild/SOURCES
# rm -fr http-2.0.59/
# cd ~/rpmbuild/
# rpmbuild -ba SPECS/httpd.spec
It should just go away and make a RPM at this point! Lets hope so at least. Once that is done then you should have an RPM you can install.
You should BACKUP BACKUP BACKUP, if I haven't made that clear .. backup! hehe. You should do something like this:
Code:
# tar cvf /root/backup-apache.tar /etc/httpd/ /var/www
I don't know your exact layout, nor the size of your setup so you should consider whatever is the most valid method of backup you do. At minimum you should backup the
/etc/httpd directory, it will be the configuration of your of your apache (most important).
It might also be worthy of hunting for your original apache RPM, that way you can reinstall it if you find this one provides more issues! heh ;)
Ok, so if its gone well and built the RPM. To install it you do this (become root first!):
Code:
# cd ~user/rpmbuild/RPMS/
# ls */*
i686/httpd-2.0.59.i686.rpm
# rpm -ivh i686/httpd-2.0.59.i686.rpm
That is an example, you might find your arch is different and its not i686, so just look for the entry from the ls command.
Any assistance, any issues, just ask more questions.
Good luck!