FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum » FUDforum Installation Issues » What are correct file permissions for 3.04? (I have everything on 666/777, can't be right?)
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: Lockups with 500 error is caused by permissions [message #168975 is a reply to message #168922] Mon, 12 August 2013 17:28 Go to previous messageGo to previous message
Parrot
Messages: 32
Registered: July 2013
Location: US
Karma:
Member
Here's a helpful tool that sets all permissions in a folder, including its subfolders, to folders=755 and files=644. You can adjust that to suit your needs.

<html>
<head>
<title>Folder and File Permission Fixer</title>
</head>
<body>
<form name="form1" method="post" action="">
<?php
if ($_POST[d] == "Yes and Go") {
	system ('find ./ -type f -exec chmod 644 {} \;'); 
	system ('find ./ -type d -exec chmod 755 {} \;');
	system ('find ./ -name \*.cgi -exec chmod 755 {} \;');
	system ('find ./ -name \*.pl -exec chmod 755 {} \;'); 
	system ('find ./ -name \*.pm -exec chmod 755 {} \;');
	echo '</br>Done.';
} else {
	echo'<h1>This utility will change the permissions to the parent and all of the parents subfolders.</h1><h3>(please place this file in the root of the public_html to be most effective.) </h3>';
	echo'<h3>Set all Files = 644 ???</h3><h3>Set all Folders = 755 ???</h3><h3>Set all cgi and pl and pm files = 755 ???</h3>';
	echo '<input type="submit" value="Yes and Go" name="d">'; 
}	
?>
</body>
</html> 


[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Problem importing data before upgrading the forum (2.7.6->)
Next Topic: Maillist.php works from command line but not postfix pipe
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Thu Nov 28 16:01:18 GMT 2024

Total time taken to generate the page: 0.04343 seconds