[PHP] problem with mod_php
I'm trying to install a webmail in a new server with the following items: Debian 2.6.26-2-amd64 horde 3.2.2 imp 4.2.4 apache 2.2.9 php 5.2.6 when I try to install for the first time to configure it by web, it show the following: Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, [no address given] and inform them of the time the error occurred, and anything you might have done that may have caused the error. More information about this error may be available in the server error log. And the log (apache2 error.log) shows the following: [Wed Sep 30 12:31:26 2009] [error] [client 200.60.166.10] (13)Permission denied: exec of '/var/www/horde3/login.php' failed [Wed Sep 30 12:31:26 2009] [error] [client 200.60.166.10] Premature end of script headers: login.php These are the permissions -r--r--r-- 1 www-data www-data 8740 ene 29 2009 login.php smtp:/var/www# ls -l lrwxrwxrwx 1 root root 18 sep 27 22:31 horde3 - /usr/share/horde3/ smtp:/usr/share# ls -l drwxr-xr-x 18 www-data www-data 4096 sep 27 17:09 horde3 I hope you can help to resolve this problem -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] mkdate error?
The following bit of code completely baffles me as to why it doesn't work. I am doing a very simple validation where I check to see if the end date field of an inputted record is an older date than the start date. I checked this by putting in the same date for both end and start dates. Yet mkdate gives me a different value for each even though since they are both the same date, I should get the same value returned. Right? //notice the start and end date is the same. Therefore, you should get the same value for each, right? START LITTLE CODE SNIPPET $parsed_start_date=split(/, 08/02/2002); $parsed_end_date=split(/, 08/02/2002); $start_dts = mktime(, , , $parsed_start_date[0], $parsed_start_date[1], $parsed_start_date[2]); $end_dts = mktime(, , , $parsed_end_date[0], $parsed_end_date[1], $parsed_date[2]); if ($start_dts $end_dts) { echo This function thinks the end date is older than the start date.; } else { echo Whoah, it actually worked.; } END LITTLE CODE SNIPPET What am I not seeing? Thanks in advance, J. Chyun -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php