Nav dit topic: [topic=385590] wil ik 2 apache daemons draaien. Dit kan, zolang je het maar op verschillende poorten doet.
Goed, ik heb dus httpd.conf en httpd_deamon2.conf, in httpd_daemon2.conf staat dat apache uitgevoerd word als root. Ik doe vervolgens:
Hij geeft nu een error:
Goed dat heb ik gedaan in /usr/src/apache/src/Configuation heb ik de lijn aangepast naar:
Daarna
Maar hij geeft nog steeds dezelfde error... Ik heb al geporbeerd om EXTRA_CFLAGS= -DBIG_SECURITY_HOLE te doen, dus zonder " maar ook dit werkte niet.
Weet iemand wat ik fout doe?
Owja, ik draai apache 1.3.22 op debian 2.2 aardappel. Met kernel 2.4.16
Goed, ik heb dus httpd.conf en httpd_deamon2.conf, in httpd_daemon2.conf staat dat apache uitgevoerd word als root. Ik doe vervolgens:
code:
1
| /usr/local/apache/bin/httpd -f /usr/local/apache/conf/httpd_daemon2.conf |
Hij geeft nu een error:
code:
1
2
3
4
5
6
7
8
9
| Error: Apache has not been designed to serve pages while
running as root. There are known race conditions that
will allow any local user to read any file on the system.
If you still desire to serve pages as root then
add -DBIG_SECURITY_HOLE to the EXTRA_CFLAGS line in your
src/Configuration file and rebuild the server. It is
strongly suggested that you instead modify the User
directive in your httpd.conf file to list a non-root
user. |
Goed dat heb ik gedaan in /usr/src/apache/src/Configuation heb ik de lijn aangepast naar:
code:
1
| EXTRA_CFLAGS= "-DBIG_SECURITY_HOLE" |
Daarna
code:
1
2
3
| ./configure --prefix=/usr/local/apache (en php activeren etc) make make install |
Maar hij geeft nog steeds dezelfde error... Ik heb al geporbeerd om EXTRA_CFLAGS= -DBIG_SECURITY_HOLE te doen, dus zonder " maar ook dit werkte niet.
Weet iemand wat ik fout doe?
Owja, ik draai apache 1.3.22 op debian 2.2 aardappel. Met kernel 2.4.16