privileges problem
while configuring dynamic virtual hosting (with mod_vhost_alias) on a new server i ran into this problem i create a new group named g(username) for each new virtual web, I set all user files to chmod 640 to avoid them to be read by another user my apache server runs as www-data so i need to add user www-data to each virtual web group to be able to serve its documents this all works fine but when I create a new virtual web, that means a new group, user and home directory and try to access its documents via http I get this error in the apache error.log Permission denied: /home/html/inko.sk/public_html/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable everything works well after restarting the apache server, it looks like the running apache server doesn't know that the user it runs as (www-data) became a member of the new group created for the new virtual web is there a way to somehow refresh this info for the running process without restarting it? do you have another suggestion? If I have to restart apache every time I add a new server then I am on the beginning and usibng mod_vhost_alias didn't help at all. thanks Martin Dragun
redundancy via DNS
we have several servers colocated with several ISP's i am trying to sort out some configuration that would ensure good uptime for customers i want to place the html documents of every customer on two separate servers connected to separate ISP's the dns servers will point to one server and the second one will be just a backup, in case the main server goes down we just change the DNS and point the affected domains to the backup server. when the main server is back up the dns changes back to normal and now my questions: 1. what should the times in zone files be set to to enable the dns change to be propagated very quickly, say 5 minutes max. is it possible/wise to use TTL=0 2. if a domain has 2 name servers set during registration, are both of these servers used for lookups? Or is it so that just the primary is querried if it works, and the secondary is querried only if the primary is not responding? 3. is this whole idea worth consideration anyway or should I forget it? thanks for answers Martin Dragun -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
redundancy via DNS
we have several servers colocated with several ISP's i am trying to sort out some configuration that would ensure good uptime for customers i want to place the html documents of every customer on two separate servers connected to separate ISP's the dns servers will point to one server and the second one will be just a backup, in case the main server goes down we just change the DNS and point the affected domains to the backup server. when the main server is back up the dns changes back to normal and now my questions: 1. what should the times in zone files be set to to enable the dns change to be propagated very quickly, say 5 minutes max. is it possible/wise to use TTL=0 2. if a domain has 2 name servers set during registration, are both of these servers used for lookups? Or is it so that just the primary is querried if it works, and the secondary is querried only if the primary is not responding? 3. is this whole idea worth consideration anyway or should I forget it? thanks for answers Martin Dragun
php cgi
I'm trying to use PHP4.03pl1 as CGI for security reasons (it works as apache module already) When I start a php script (first row is #!/usr/bin/php) from the commandline it works well, but when I call it in browser as cgi it fails with Internal server error. I was trying to find out what is happening and ended up with this: other cgi works well, i mean perl and shell scripts commandline php works well, outputing the right headers when I intentionaly make a mistake in php skript an error message apeares in php error log when i invoke such script in browser no error message apear so I think the php is not executed just a standard error message in apache error log "premature end of script headers" php and script are world executable how can I find out what is wrong? thanks Martin Dragun -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
php cgi
I'm trying to use PHP4.03pl1 as CGI for security reasons (it works as apache module already) When I start a php script (first row is #!/usr/bin/php) from the commandline it works well, but when I call it in browser as cgi it fails with Internal server error. I was trying to find out what is happening and ended up with this: other cgi works well, i mean perl and shell scripts commandline php works well, outputing the right headers when I intentionaly make a mistake in php skript an error message apeares in php error log when i invoke such script in browser no error message apear so I think the php is not executed just a standard error message in apache error log premature end of script headers php and script are world executable how can I find out what is wrong? thanks Martin Dragun