Chmod For Public_html And Other Folders

Jul 24, 2009

what should be ideal chmod permission for public_html and other folders.

is 755 fine ? what is most secure one

View 14 Replies


ADVERTISEMENT

Can't CHMOD 777 Files, But I Can CHMOD 777 Folders

Dec 4, 2008

On one of my servers i can't CHMOD 777 Files, but i can CHMOD 777 Folders.

Files are chmod 777 but on scripts installation... It's Said Please Chmod Example.php to 777
Centos 5
PHP 5
Apache 2.2.3

View 11 Replies View Related

Zipping Up Multiple Public_html Folders From Shell

Jul 20, 2008

OK so I'm on the shell and looking at the contents of my home/ directory which has all the various accounts. In each account directory are subdirs such as mail, logs, tmp, etc, and public_html. Is there a way (or a ZIP command) to be in the home directory and create a massive ZIP file containing all the account directories, each containing ONLY the respective public_html subdir for that account?

Using the command "zip -r Backups.zip ./" seems to include all those extra folders (such as mail, etc.) that aren't needed.

View 3 Replies View Related

Finding And Chmod The Www Folders

Oct 23, 2009

i need to find al www folders within home directory with 777 permissions and need to chmod to 750.

if possible post the command to do it

View 8 Replies View Related

Difference Between Www And Public_html

Jan 13, 2009

what is the difference between www and public_html? I have hosed my domain in a small hosting company and when i was going through all its folders i found both the folder www and public_html has the same content. but by hosting company asks me to upload all my files into public_html. Iam curious to know the difference between these two folders.

View 19 Replies View Related

Php.ini In Public_html, Safe

May 12, 2007

I'm a customer and don't know much about server management, so like title says, is it okay to put php.ini in public_html?

View 14 Replies View Related

301 Redirecting To Public_html

Jan 31, 2007

I'm currently using this in my .htaccess:

Code:
RewriteEngine On
rewritecond %[url]
rewriteRule ^(.*) [url]
I have this in my root (public_html) folder. However when you go to [url]
it redirects you to [url]
I'm already in the root. Why would it try to go to public_html/public_html?

What's the correct implementation of this .htaccess?

View 0 Replies View Related

Change Public_html For IP Address

May 16, 2008

My server has one IP address assigned to it and i use Webmin with Virtualmin to manage domains.

When you put my IP into a browser like [url]however, it points to my websites public_html folder at /home/username/public_html, which was the first domain i set up.

I would like to change it so that the IP points to its own folder: /var/www/html when entered into a browser.. how do i do this?

View 4 Replies View Related

Move Public_html Folder

Jun 28, 2008

I have recently registered a new dedicated server, I am trying to move some sites over. Essentially, what I am trying to do is copy the public_html folder from one server to another.

I have root access on both accounts, I have managed to move the whole home folder from the old to the new, but I guess I would need to download all 2gigs worth of data then upload again, or is it possible to extract only the information you need from the compressed backup.

I am thinking that specifying data from an uncompressed folder wouldn't be possilbe, so, is there a way of moving certain folders from one server to another via SSH?

View 1 Replies View Related

Tar Public_html (cPanel To DirectAdmin)

Mar 31, 2008

I wanted a move 1 accounts from cPanel to DirectAdmin server platform. I know it has to be done manually. But this one account has 800MB.

So the question is:

Is it possible to tar public_html while keeping every permission & folder ownership at it's correct setting?

(Sql is not a problem for me)

View 4 Replies View Related

Can I Upload 200,000 Web Pages Under Public_html

Sep 25, 2007

My website has 200,000 webpages.

I would like to upload all of them to the hosting under public_html

I do not use sub directory.

Can I make sever down or slow?

View 10 Replies View Related

How To Make Subdomains Point To Public_html Folder

Jan 16, 2009

I have a VPS with WHM/cPanel on linux.

Currently my sub-domain points to a sub-folder in public_html

I want to make 18 sub-domains but I want them to point to public_html instead.

In other words sub.domain.com will point to /home/user/public_html/ instead of /home/user/public_html/sub/

View 4 Replies View Related

/home/username/public_html Does Not Exist Or Is Not A Directory

Jan 13, 2007

When I'm adding a new account, I got some error:

[url]

How can I fix that?

View 8 Replies View Related

Chmod 777 Vs 755

Jul 3, 2007

I've just moved from a reseller account with ResellerZoom, so a VPS with SolarVPS.

When I was with RZ all my scripts could write to folder with the 755 permissions. On the vps I have to alter the folder I want the script to write to to be 777.

Which the is best and most secure?

I think I understand that if a folder is 777 then anyone on the server can write to that folder. So I assume some sort of thing that stops users being able to access folders outside of their own folders is needed? is that right?

View 3 Replies View Related

Chmod

Oct 2, 2007

I have a server running php 5.2.4 with CGI as Server API and suexec, but I cant create dirs in php with chmod 755. When I use mkdir("/home/user/public_html/$dirname", 0755); it creates the dir with chmod 744. Why?

I can change later this chmod to 755 in php with the chmod function. But why my server doesnt allow the directory to be created as 755? Where can I configure it?

View 5 Replies View Related

How Use Chmod Only For *.php

Jul 16, 2007

How change CHMOD for all files *.php on account /home/user/publc_html?

I user chmod -R *.php
but this does not work for subfolders /home/user/public_html/subfolder1

View 3 Replies View Related

Apache 2.2 DocumentRoot /home/user/public_html Not Exist

Dec 18, 2007

I am getting this error and I just installed apache 2.2 and added a user using useradd user. When i added into the virtual which is:

NameVirtualHost *:80

<VirtualHost *:80>
DocumentRoot /home/user/public_html
ServerName user.com
</VirtualHost>

It does not find the public_html folder I added. Is this a permissions problem? or something else?

View 7 Replies View Related

/home/create1/public_html Does Not Exist Or Is Not A Directory! In Cpanel

Oct 30, 2007

created one problem for us cpanel

in create new account:

[an error occurred while processing this directive]

Setting up FrontpageŽ...
/home/create1/public_html does not exist or is not a directory!

View 8 Replies View Related

Chmod Using Shell

Oct 8, 2006

I was wondering if it were possible to chmod a directory that is set to a low number to 777 using a shell or command and if so can anyone point me in the right direction as to how to go about doing so ??? I am trying to learn a little and i pefer using my browser to edit files rather then a ftp client.

View 9 Replies View Related

How Do You Avoid Using Chmod 777

Nov 5, 2009

I know you're not supposed to use 777 but it seems some scripts just simply won't work without it, what steps needs to be taken to avoid using 777?

as far as i understand we're only supposed to use 775 for folders and 644 for files correct?

View 7 Replies View Related

CHMOD For Files

Jun 18, 2007

I just moved my folder_A from computer A to computer B, what is the command to change the permission of owner, access, group for every files in that folder_A at 1 time?

in the folder_A has hundred of files. Let's say , i want to change owner = laptop, access = read and write, group = user, access = read and write , what is the specific command to do that for all the files in folder_A at 1 time?

View 5 Replies View Related

Cpanel Error (VPS) :: Doesn't Put Public_html And Public_ftp Folder In The Account

Nov 4, 2009

I have fresh cpanel, but when i create account it doesn't put public_html and public_ftp folder in the account...

View 10 Replies View Related

How To Change Chmod Directory With Ssh

Jun 12, 2009

How to change chmode directory with ssh?

what best rootkit cheker for centos 5.3?

View 2 Replies View Related

Default CHMOD Settings

Sep 10, 2009

Is there a way in ubuntu 8.10 to have default chmod? everytime someone uploads a file they have to chmod it so that it can be seen/used by the web.

View 5 Replies View Related

What Is Windows Equivalent To Linux CHMOD 666

May 5, 2009

On a Linux box, I know how to set a file to CHMOD 666 permissions. How do you set world writable permissions to a file on a Windows server?

View 7 Replies View Related

Recursive Chmod Via Shell Access

Apr 29, 2009

I want to recursive chmod 777 to some particular folder.

As per i know the command is -

chmod -R 777 *

But how can i run this command for any particular folder.

For eg the folder is - /home/XXXX/public_html/folder

View 7 Replies View Related

Chmod Choices With Php Writing To A File

Aug 31, 2008

My account has been hacked with every index.php page defaced. I've cleaned up and my shared wehost is pointing at me saying there shouldn't be any 777 permissions for any files in there.

I used 777 to allow php to add records in a txt file and in an xml file.
Is there a better / more secure chmod code I can use?

Those are the only two instances where I need php to write to a file and those files shouldn't be served to anyone, I do not want anyone to be able to access them.

How can I secure them while letting php write in them?

View 5 Replies View Related

PHP: Uploading As Apache User, And Chmod 600

Aug 12, 2007

I've recently moved to a new server in which I don't have root, so bare with me.

For some reason when I upload a file with 'move_uploaded_file($tmpName,$new_filename)', it seems to work fine - but when I check it, try to download it (http or ftp), or change the permission - I can't, because its set to 600 for some odd reason, and owned by the user Apache is setup on.

View 5 Replies View Related

How To Chmod The Files And Subfolder + File.php To 755

Jun 25, 2007

i download a script .. when i unzip the script .. all the folder have chmod to 700 + 600

what command could let the folders and sub folders have chmod to 755 ( as root )

i command this

chmod 755 *

but the folders inside the folder didn't chmod to 755

there is alot folders thats why its hard to do it manually :p

View 7 Replies View Related

How To CHMOD? Sever Security Best Practices

Jan 3, 2007

I have my web server hacked several times and I am beating my head against the wall trying to find the problem(s).

Way back when my sites have been defaced and CHMODing my *.html files to 744 seemed to have done the trick

Now someone has put a phishing site somehow, which by the way I'm not able to remove still, I can't help but to think that I may have more CHMODing to do, I have recursevly set my site to 755, shoud this do the trick? I know I need to chmod .htaccess and alike files to 644, but what about...imagesCGI/PHP?cssetc?

What other steps can I take to secure this thing?

it's a shared host, limited access, but I do have SHELL.

View 6 Replies View Related

Cannot Perform 'chmod' On FTP Client Software Interface

Apr 14, 2009

I got a VPS with Linode and I have installed CentOS 5.2 32-bit, Apache, MySQL and ProFTPd. The server itself runs very OK, however, I have issues with running 'chmod' on the user interface with either FileZilla or CuteFTP pro.

Whenever I try to chmod 777 on a directory, I got this error on the FTP client interface:

Quote:

Command:SITE CHMOD 777 includes
Response:550 CHMOD 777 includes: No such file or directory

Why no such file or directory? weird. It's just on the server though. The FTP user is the owner/group of the directory I try to chmod to.

But I am able to run chmod on Putty.

View 7 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved