Page 1 of 1

Permissions Error...help please!

Posted: Sat Mar 07, 2009 4:39 pm
by j36047
Hi,
First let me be the first to admit my noobishness. I'm new to PHP and am trying to set up an email form so people can contact me via my website. Swiftmailer looks like a great project and the solution to my email issues with PHP so let me say thank you to the developers! Here is my issue...I can get all the smoke tests to run except the test of Attachment and test of Embedded Image. Here is an example of the errors I get:
PHP Warning: fopen(/6c65572a826275aee4d4612929eb1044append) [<a href='function.fopen'>function.fopen</a>]: failed to open stream: Permission denied in X:\XXX\XXX\XXX\XXXXX\XXX\XXX\SwiftMailer\lib\Swift\Cache\Disk.php on line 59
PHP Warning: fwrite(): supplied argument is not a valid stream resource in X:\XXX\XXX\XXX\XXXXX\XXX\XXX\SwiftMailer\lib\Swift\Cache\Disk.php on line 60
I am running my website on Server2003 with IIS 6.0. I know it is a permissions error and can only assume I need to add write/execute permissions to a folder or file, but for the life of me can't figure out where. Any help would be greatly appreciated! Thanks!

Re: Permissions Error...help please!

Posted: Sun Mar 08, 2009 12:30 am
by Benjamin

Re: Permissions Error...help please!

Posted: Sun Mar 08, 2009 6:31 am
by j36047
Spent a few more precious hours on google with no results other than what I am sure is a totally unsecure server :cry:
Started by adding modify permissions to the IUSR_xxxxx account through IIS manager....ended by adding full permissons to just about every user account mentioned in many of the links from the previous reply. No love to be had in my quest to upload files through Swiftmailer. Still getting the exact same errors. Ah well...maybe I didn't need to have upload capability after all.....

Re: Permissions Error...help please!

Posted: Sun Mar 08, 2009 8:14 am
by j36047
Well, I finally figured it out. I don't think it was a permissions problem after all :roll: . I think I had the folder structure incorrect. I swtiched the "/" in line 59 of Disk.php to "../../tmp/" and now I'm up and running properly. I set most of my permissions back to where they were and it looks like things are still working. Thanks to all for your views and any assistance provided!