Publish Fails from iCal

Problems with publishing and subscribing to calendars ...remember that publish.php is not officially supported (but you can discuss it here anyway)"

Publish Fails from iCal

Postby gowrann » Wed Jan 27, 2010 8:56 pm

Each time I try to publish from iCal - I get an error that "Access is not permitted".

I am trying to publish from iCal to an OS X Server 10.5.8 with phpicalendar 2.31.

On the server the webserver is on, a realm is created for the calendars directory with "Everyone" set to browse read/write WebDav, WebDav is turned on and in the phpicalendar config.inc.php the only change is
Code: Select all
phpicalendar_publishing    = '1'
so WebDav is supported.

If i disabled webdav on the server and delete the realm - publishing from iCal still fails but this time with an error that calendar URL can not be found.
Calendars directory on the server has full read/write and has permissions set to 777
Very frustrating - any help is appreciated.
gowrann
Member
 
Posts: 5
Joined: Wed Jan 27, 2010 8:22 pm

Re: Publish Fails from iCal

Postby Parasyte » Mon Feb 01, 2010 11:02 am

The "phpicalendar_publishing" variable only enables or disables the use of publish.php:

Code: Select all
/*     ========= CALENDAR PUBLISHING =========

    This section is not needed if your calendars directory is accessible via WebDAV or CalDAV.  These settings 
    control the publish.php script provided in the calendars directory.  For more information, please see that
    file.
*/

    
'phpicalendar_publishing'=> 1


Since you are trying to use WebDav, this configuration will not have any effect.

I don't use OS X Server, so I'm unfortunately not able to help you with the WebDAV configuration on there, but that's the most likely spot where the trouble lies. (I use OpenBSD with Apache (httpd) and mod_dav. The setup is a pain, but I got it working such that everyone has read-only access, and only HTTP-authenticated users have read/write access to their own specific calendar directories.)
Parasyte
Member
 
Posts: 165
Joined: Thu Jan 15, 2009 4:31 pm

Re: Publish Fails from iCal

Postby gowrann » Tue Feb 02, 2010 6:27 pm

hmmm - I think it has something to do with permissions but i can't figure it out - if I FTP to the site and drop the .ics file in the designated folder it is served out no problems - just cant publish it from ical.

On OSX Server I have tried all 3 security options with the realm, being basic, digest and kerberos and even then I have set "Everyone" to browse/read/write WedDav, I have tried setting the calendar folder in the root level. And as said before the folder has read/write access for all. On OSX server I have enabled all Apache modules for webDav options.

Are there any specific webDav Apache modules required - will a .htaccess file in the "calendars" folder make a difference? and if so what content should it have ... any help is appreciated
gowrann
Member
 
Posts: 5
Joined: Wed Jan 27, 2010 8:22 pm

Re: Publish Fails from iCal

Postby Parasyte » Wed Feb 03, 2010 1:21 pm

With HTTP basic authentication, you'll still want a username/password in your .htaccess file. OS X Server might have something analogous with a GUI. (I just use htpasswd to create my .htaccess files.) In any case, you should try creating a username and password with HTTP basic auth, then configure your calendar application to use that authentication information when publishing. With Lightning/Sunbird, that's just a matter of putting the username and password into the calendar URL directly:

http://username:password@www.example.com/calendars/example.ics

We use HTTP basic authentication in conjunction with HTTPS, but of course our environment is completely different, so I might be on the wrong track with this suggestion.
Parasyte
Member
 
Posts: 165
Joined: Thu Jan 15, 2009 4:31 pm

Re: Publish Fails from iCal

Postby gowrann » Wed Feb 24, 2010 7:12 pm

Ok tried with a .htaccess file and a user created with htpasswd - still cant authenticate and get the same error:

Access to http://myserver.com/phpicalendar/calenders/calendar.ics is not permitted.
gowrann
Member
 
Posts: 5
Joined: Wed Jan 27, 2010 8:22 pm


Return to Publish/Subscribe problems

Who is online

Users browsing this forum: No registered users and 1 guest