Hello all, I’ve just uploaded a site and I’m getting this message:
“A file permissions error has occurred. Please check the permissions on the script and the directory it is in and try again.”
It’s done using nothing fancier than WebYep, and I’ve checked that all of the read, write and execute permissions are checked, so I’m at a loss.
Any pointers would be much appreciated, thanks.
Sorry, no heading!!
On 20 Apr 2012, at 10:14, Trevreav wrote:
Hello all, I’ve just uploaded a site and I’m getting this message:
“A file permissions error has occurred. Please check the permissions on the script and the directory it is in and try again.”
It’s done using nothing fancier than WebYep, and I’ve checked that all of the read, write and execute permissions are checked, so I’m at a loss.
Any pointers would be much appreciated, thanks.
What (S)FTP application are you using to check/set those permissions? If Transmit, try pressing the Refresh button and see if the permissions revert back to the previous values. Some hosting providers trawl automatically for folders set to 777 and set them back, because they are quite rightly afraid of cross-site scripting attacks. You may need to ask your hosting provider to set the permissions so that the Unix user that the Web server runs as has permission to write and execute the data folder, and not that anyone has that right. Also, be sure that you haven’t set your WebYep PHP scripts to 777 permissions by mistake. You need to apply this permission only to the folder where you will store your CMS data.
Walter
On Apr 20, 2012, at 4:19 AM, Trevor Reaveley wrote:
Sorry, no heading!!
On 20 Apr 2012, at 10:14, Trevreav wrote:
Hello all, I’ve just uploaded a site and I’m getting this message:
“A file permissions error has occurred. Please check the permissions on the script and the directory it is in and try again.”
It’s done using nothing fancier than WebYep, and I’ve checked that all of the read, write and execute permissions are checked, so I’m at a loss.
Any pointers would be much appreciated, thanks.
Hi Walter, yes, that’s probably what I did, change the permissions for everything. I tried it on the folder and nothing happened, so I applied it to all enclosed items, including the WebYep system.
So do you know what the permissions should be for the WY system folder?
I am using Transmit, but I can’t see a refresh button anywhere, not that I think it would do any use now you’ve mentioned the permissions and WY folder.
thanks for the answer
Trev
On 20 Apr 2012, at 14:12, Walter Lee Davis wrote:
What (S)FTP application are you using to check/set those permissions? If Transmit, try pressing the Refresh button and see if the permissions revert back to the previous values. Some hosting providers trawl automatically for folders set to 777 and set them back, because they are quite rightly afraid of cross-site scripting attacks. You may need to ask your hosting provider to set the permissions so that the Unix user that the Web server runs as has permission to write and execute the data folder, and not that anyone has that right. Also, be sure that you haven’t set your WebYep PHP scripts to 777 permissions by mistake. You need to apply this permission only to the folder where you will store your CMS data.
Walter
On Apr 20, 2012, at 4:19 AM, Trevor Reaveley wrote:
Sorry, no heading!!
On 20 Apr 2012, at 10:14, Trevreav wrote:
Hello all, I’ve just uploaded a site and I’m getting this message:
“A file permissions error has occurred. Please check the permissions on the script and the directory it is in and try again.”
It’s done using nothing fancier than WebYep, and I’ve checked that all of the read, write and execute permissions are checked, so I’m at a loss.
Any pointers would be much appreciated, thanks.
Unless you’re one of the very few people who run PHP in CGI mode, your PHP scripts should have the same mode as any other HTML file: 644. Your folders (besides the data folder) should be 755.
Walter
On Apr 20, 2012, at 11:14 AM, Trevor Reaveley wrote:
Hi Walter, yes, that’s probably what I did, change the permissions for everything. I tried it on the folder and nothing happened, so I applied it to all enclosed items, including the WebYep system.
So do you know what the permissions should be for the WY system folder?
I am using Transmit, but I can’t see a refresh button anywhere, not that I think it would do any use now you’ve mentioned the permissions and WY folder.
thanks for the answer
Trev
On 20 Apr 2012, at 14:12, Walter Lee Davis wrote:
What (S)FTP application are you using to check/set those permissions? If Transmit, try pressing the Refresh button and see if the permissions revert back to the previous values. Some hosting providers trawl automatically for folders set to 777 and set them back, because they are quite rightly afraid of cross-site scripting attacks. You may need to ask your hosting provider to set the permissions so that the Unix user that the Web server runs as has permission to write and execute the data folder, and not that anyone has that right. Also, be sure that you haven’t set your WebYep PHP scripts to 777 permissions by mistake. You need to apply this permission only to the folder where you will store your CMS data.
Walter
On Apr 20, 2012, at 4:19 AM, Trevor Reaveley wrote:
Sorry, no heading!!
On 20 Apr 2012, at 10:14, Trevreav wrote:
Hello all, I’ve just uploaded a site and I’m getting this message:
“A file permissions error has occurred. Please check the permissions on the script and the directory it is in and try again.”
It’s done using nothing fancier than WebYep, and I’ve checked that all of the read, write and execute permissions are checked, so I’m at a loss.
Any pointers would be much appreciated, thanks.
That’s great thanks Walter, this is where I’m completely out of my depth.
Thanks once again for your help.
Trev
On 20 Apr 2012, at 17:26, Walter Lee Davis wrote:
Unless you’re one of the very few people who run PHP in CGI mode, your PHP scripts should have the same mode as any other HTML file: 644. Your folders (besides the data folder) should be 755.