How to auto set up permissions.

freed1985

New member
Joined
Apr 7, 2010
Messages
3
When I use the web hosting made in cpanel,if I upload some site and run install.
It test that all files and folder which need to be writable has been writable.

But in directadmin I need to set them to 777 manually.
Can directadmin auto to set folder in virtual host writable?

Maybe I need any plug-in or software to comply it ?:)
 
Are you really trying to make all your files and folders 777? That's both unnecessary and dangerous; it makes any site extremely exploitable.

Jeff
 
That is lazy and you would be crying at the end of the month and wished you never did that!

I think you should just go through and do ONLY the files that need it!

There is install instructions so read them and they will help you and then you won't be crying :)

There isn't ever many files that need to be 777 so just do the ones it asks!

Then you'll be all good!
 
The OP did not say that he wanted all the files to be 777.

It test that all files and folder which need to be writable

Only the files that need to be writable.
 
The install script knows which files need to be 777. The person does not. The install script works with the server that happens to be running Cpanel but not with the server that happens to be running DirectAdmin.

I do not think it has anything to do with DirectAdmin or Cpanel. I think it has to do with the php installation.

Sometimes you don't know what files need to be 777 until you do some trial and error. He wants to avoid the trial and error method.

There is install instructions so read them

How do you know the instructions tell which files need to be 777? We do not even know what program he is trying to install. We do not know what the instructions say.
 
Then what he is installing is made cheaply.

If it does not tell you or show you what files need to be 777 then don't use it - and who would use something that will not work - you can not think oh I'll make this 777 and that 777 this could get very messy very soon.

Either that or he is using nulled softwares!!!
 
All of that may be true. But it has nothing to do with his question. He did not ask if it was dangerous or not.

He asked:
Can directadmin auto to set folder in virtual host writable?

Answer: No. And Cpanel doesn't either.
 
When I use the web hosting made in cpanel,if I upload some site and run install.
It test that all files and folder which need to be writable has been writable.

But in directadmin I need to set them to 777 manually.
Can directadmin auto to set folder in virtual host writable?

Maybe I need any plug-in or software to comply it ?:)

I guess you need apache to have permissions on your folders and files.
try this:
goto the folder containing your script : /home/username/domains/domainname/
chown -R username.apache public_html
chmod -R 775 public_html

this is not the best way to do this, but at least the files aren't WOLRD writable.
 
I should say: stop, read first, my message

1) Install mod_ruid and enable it in the custom templates
2) rebuild HTTPd configs
3) Restart HTTP and try again
4) Problem should be fixed.

We use mod_ruid on all our servers and everything works perfect without changing the permissions.
 
Last edited:
Back
Top