1>. Error 1: gethostbyname: no such file or directory
Solution: Modify boa. conf to remove the annotator (#) before servername www.your.org. Here (#)
2>. error 1: util. c: 100: 1: Error: pasting "T" and "->" does not give a valid preprocessing token make: *** [util. o]
Solution: Modify src/compat. h.
Find
# Definetimezone_offset (FOO) Foo #-> tm_gmtoff
Modify
# Definetimezone_offset (FOO)-> tm_gmtoff
3>. Error 2: boa. C: 211-getpwuid: no such file or directory
Solution: Modify src/boa. c
Comment out the following program:
If (passwdbuf = NULL ){
Die ("getpwuid ");
}
If (initgroups (passwdbuf-> pw_name, passwdbuf-> pw_gid) =-1 ){
Die ("initgroups ");
}
To:
# If 0
If (passwdbuf = NULL ){
Die ("getpwuid ");
}
If (initgroups (passwdbuf-> pw_name, passwdbuf-> pw_gid) =-1 ){
Die ("initgroups ");
}
# Endif
4>. Error 3: boa. C: 228-Icky Linux kernel bug! : No such file or directory
Solution: Modify src/boa. c
Comment out the following statement:
If (setuid (0 )! =-1 ){
Die ("icky Linux kernel bug !");
}
To:
# If 0
If (setuid (0 )! =-1 ){
Die ("icky Linux kernel bug !");
}
# Endif
5>. Error 4: log. C: 73 unable to dup2 the Error Log: Bad file descriptor
Solution:
Method 1> determine whether the log directory has the read/write permissions for all users.
Method 2> modify src/log. C (method 1 is recommended)
Comment out
If (dup2 (error_log, stderr_fileno) =-1 ){
Die ("unableto dup2 the error log ");
}
To:
# If 0
If (dup2 (error_log, stderr_fileno) =-1 ){
Die ("unable to dup2 the error log ");
}
# Endif