Did you show your host these errors? They should be able to CHOWN the stories folder so that Apache has permission to create new sub-folders and files. They may not have understood what the issue was and CHOWN'd it incorrectly.
I have explained in more detail and with the error messages and their response is:
I think you need to modify the script as it is looking for a 777 where a nobody user can write.
As the folder is 755 it is throwing this error.
Should I try replacing 777 with 755 in stories.php ?
www.scarletseduction.info
You can try it.
You can try it.
For info, I have tried it now and the problem persists. Error message is now
Warning: fopen(stories/1/141.txt) [function.fopen]: failed to open stream: Permission denied in /home/scarlet/public_html/seeingred/festival/stories.php on line 201
Warning: chmod() [function.chmod]: No such file or directory in /home/scarlet/public_html/seeingred/festival/stories.php on line 207
-----
I've asked the host for more info, will post here with any progress. Thanks for your help.
scribblemoose
www.scarletseduction.info
To their credit, my webhost (jiffynet) have spent a lot of time trying to solve the issue from their end, but have come up blank. Their latest reply is:
I have looked into the matter and it seems that the issue is related to coding.Could you please consult with your programmer and make sure that the code is correct. Let me know whether it was working earlier and whether any changes were made of late. Let me know the admin login details to the stories section also.
I presume that as other users are not having this problem the code is fine - if anyone else is having a similar problem could you let me know?
www.scarletseduction.info
and finally - the latest from my webhost
We has upload a test file with a single word test2. It seems that the story is stored in some other location than /home/scarlet/public_html/seeingred/festival/stories/66 .
Please consult your programmer regarding this. Also make sure that the text file is uploaded to the ownership of user rather than uploading as user nobody and then changing the permissions.
(stories/66 was the location reported in the error message).
I thought I'd post this here in case it's of any use to anyone else, but I think I've reached the end of the road myself - I'm going to bite the bullet and switch to database storage, however unappealing the idea of re-uploading 56 stories might be!
Thanks to everyone for their help here.
www.scarletseduction.info
The file isn't being uploaded. It's being created by the script. As are the folders under the stories/ folder (66 in the case of your example). Therefore the ownership is user nobody because user nobody is what they probably have Apache running on. Seems like your host aren't really looking at what's actually happening.
Finally (after I prodded again as Tammy suggested) the webhost has confessed it's because they won't let me set the folder to 777 because they argue it's a security risk.
Which brings me back full circle but at least it's confirmed the original advice here as correct and might save a few other people the same dance with their hosts!
My advice to anyone setting up an archive would be to keep stories in the database from the start, unless they can be certain that their web host allows CHMODing to 777 and does not intend to change their policy!
www.scarletseduction.info
You can ask them for it to work with 755 permission as well.
When i was having all my chmod issues, they changed my permissions for me to be able to have my story folders at 755 and it still work, expressing concerns about the 777 level.
See if they can do that for you because that might be a way around.
why is nothing ever easy?
url: http://www.pretendercentre.com/missingpieces/
php: 5.2.5 msql: 5.0.45-community
efic version: 3.4.3 latest patches: yes
bridges: none mods: challenges, displayword, beta-search
Thanks, but they tried that and it didn't work.
www.scarletseduction.info
Okay... I switched to store stories in database yesterday, and all appeared well; I re-uploaded a couple of things and it seemed fine. Came back to the site today and I'm getting header errors:
Warning: session_start() [function.session-start]: open(/tmp/sess_108c1d63531f85af6bfaeef7bec962cb, O_RDWR) failed: Permission denied (13) in /home/scarlet/public_html/seeingred/festival/header.php on line 53
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/scarlet/public_html/seeingred/festival/header.php:53) in /home/scarlet/public_html/seeingred/festival/header.php on line 53
Warning: Cannot modify header information - headers already sent by (output started at /home/scarlet/public_html/seeingred/festival/header.php:53) in /home/scarlet/public_html/seeingred/festival/header.php on line 61
Warning: Cannot modify header information - headers already sent by (output started at /home/scarlet/public_html/seeingred/festival/header.php:53) in /home/scarlet/public_html/seeingred/festival/header.php on line 62
Warning: Cannot modify header information - headers already sent by (output started at /home/scarlet/public_html/seeingred/festival/header.php:53) in /home/scarlet/public_html/seeingred/festival/header.php on line 63
------------
Also had an email from my webhost (despite them telling me yesterday there was nothing more they could do) to say they have recompiled php on the server as CGI, so I can now upload files using 755 permission.
Quite apart from the fact that they told me they had tested with 755 before (and the folders seemed to be CHMOD'd to 755 when I looked at them), could whatever they've done be causing the errors? Or was it switching to database storage? Something unrelated? Or is it just me???!
www.scarletseduction.info
My host assured me that they coudl set the permissions to work on 755 and that should be no problem at all, they just had to make the adjustment, so i suspect the first person you spoke to got it wrong. SOme of mine are now on 755 permissions and they seem to be going okay (havent had any reports that they are not working at any rate)
why is nothing ever easy?
url: http://www.pretendercentre.com/missingpieces/
php: 5.2.5 msql: 5.0.45-community
efic version: 3.4.3 latest patches: yes
bridges: none mods: challenges, displayword, beta-search
Someitmes a header's already sent error means you may have a space in a php file after the closing
?>
. I don't know that you touched header.php, but when I see something like that, I look at the file for that
The first error I've never seen before.. oO
It's a problem with your host's session handling. It can't open the session file.
Warning: session_start() [function.session-start]: open(/tmp/sess_108c1d63531f85af6bfaeef7bec962cb, O_RDWR) failed: Permission denied (13) in /home/scarlet/public_html/seeingred/festival/header.php on line 53
I'm trying to upload a story to http://thelegacy.byethost9.com/library/index.php and am the owner and just recently I have been getting this error message (it hasn't popped up until a couple of days ago though)
You must include the text of your story either as an upload or as input into the textarea.
I've pasted the story into the field, I've uploaded as an html and htm document but also as a text document as well, none of them work. Please
advise!
I've checked the permissions and they're still set to 777 and when I emailed the site about it, I was told I needed to post here before I got help. So... I've posted.
Please start a new thread for your problem, thelegacy, following the guidelines in the sticky threads at the top of the forum.