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


ADVERTISEMENT

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 View Related

How Can This Be Done? IIS Multiple Vir. Dir. Or Real Folders

May 12, 2007

The scenerio is client want to enable unlimited URL for his individual customers.
ie,[url]
Platform: W2K3 IIS6

I only know two ways doing it

1. Create a real folder /username1, /username2, but this will be real messy, and I remember there is a limitation for up to 36,000 sub-folders within a root folder under Windows (correct me if I am wrong)

2. Create virtual directories under IIS Manager using ASP/ASP.NET script, this is easiest, but having two problem.

a. If I have say 10,000 vir. dir., and then I try to expand that root folder under IIS manager, IIS manager will hang for sure.

b. Having such huge vir. dir will inevitably having a huge IIS Metabase, this means a great chance of corrupting it, so it's very dangrous.

I really hope someone can give me some hints how to do this in a scalable way? I know many Web2.0 site do this even using IIS6 ie, [url]

View 0 Replies View Related

Zipping The Contents Of Directory

Jul 28, 2008

Zip the contents of a directory (/path/to/dir/*) and then include a file in that zip that is located here: /a/whole/different/path/file.jpg. Is there a ZIP parameter that allows me to include that JPG file in the ZIP file that I am creating? Can someone give me the command?

Also, instead of zipping the contents inside of the "dir" directory, can I zip the "dir" directory itself but exclude the full path when creating the zip (/path/to/ part). I can do this with the -j parameter but when I do it also excludes the "dir" directory and only ZIPs the content inside of it.

View 3 Replies View Related

Root Is Zipping And Unzipping

Feb 12, 2007

when I check the top for my server is making backups and sometimes the root is zipping and unzipping!

I have root access and my srever is linux (centos)I need help how can I check what is wrong? why the server is running these? zip-unzip-pkgacc...

top - 16:58:14 up 76 days, 20:15, 1 user, load average: 5.56, 4.46, 4.51
Tasks: 204 total, 1 running, 200 sleeping, 1 stopped, 2 zombie
Cpu(s): 5.1% us, 1.1% sy, 0.0% ni, 39.5% id, 54.2% wa, 0.1% hi, 0.0% si
Mem: 2074160k total, 2057376k used, 16784k free, 59232k buffers
Swap: 1052248k total, 102896k used, 949352k free, 680504k cached

PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
20709 nobody 16 0 52600 39m 3976 S 8 1.9 3:33.61 httpd
31290 nobody 15 0 54416 42m 3808 S 2 2.1 7:06.79 httpd
31333 nobody 15 0 52988 39m 3728 D 2 2.0 3:52.61 httpd
1244 nobody 15 0 42144 29m 3192 S 2 1.5 0:14.32 httpd
14009 mysql 15 0 325m 166m 3220 S 1 8.2 538:10.84 mysqld
26177 nobody 16 0 51812 39m 4080 S 1 1.9 4:34.83 httpd
22915 root 16 0 3920 1076 760 R 1 0.1 0:02.56 top
2264 root 34 19 13388 9628 644 D 1 0.5 0:20.90 pkgacct
333 root 15 0 0 0 0 D 0 0.0 80:11.82 kjournald
533 mailnull 15 0 7672 1720 1424 S 0 0.1 1:42.76 exim
18720 nobody 16 0 51132 39m 3792 S 0 1.9 3:28.69 httpd
7977 root 15 0 0 0 0 S 0 0.0 0:25.24 pdflush
20260 nobody 16 0 54088 42m 4024 S 0 2.1 3:08.79 httpd
20468 nobody 15 0 58348 46m 3796 S 0 2.3 3:25.07 httpd

View 3 Replies View Related

Change Jail Shell To Normal Shell

Jul 8, 2008

Do any1 know how to change jail shell to normal shell?

View 14 Replies View Related

Plesk 12.x / Linux :: Backup And Quota - Limit Number Of Cores Backup Zipping Tool Uses?

Aug 15, 2014

I have 2 problems:

Firstly I wonder if there is any possibility to limit the number of cores the plesk backup zipping tool uses? This pigz takes up all my CPU. Is there any way I can reduce the amount of cores it uses because all my websites are down every time a backup takes place for around 3 minutes.

Secondly I get the following in my syslog:

1 baby plesk sendmail[20189]: Error during 'check-quota' handler

I don't know what is wrong. I think it's since the upgrade to Plesk 12. I now have 12.0.18 Update #13.

View 9 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

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

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

Plesk 11.x / Linux :: Multiple Email Certificates For Multiple Domains?

Nov 11, 2014

I have two domains as virtual hosts on same IP address.

I am getting certificate error for the second domain when I try to check email (using MS Outlook). I can't permanently "accept" certificate, it complains again and again. Certuficate I created and self signed for imap.domain1.com, but the second email server is imap.domain2.com, so it complains.

How do I set separate email certificates for two domains? Is it possible at all?

View 5 Replies View Related

Apache :: Multiple Error Codes For Multiple Pages

Nov 9, 2012

Depending on where u are at on my site (documents pages, training, main root, etc.) will depend on which type of background, footer, header and the like you'll get. Now I was thinking. Is there a way to have multiple error messages for more then one page depending on where you are at on a site? Right now it's intranet site and a modded snitz forum. What is the code and were does it go and in which apache conf file(s) does it go in?

View 1 Replies View Related

Httpd Directory Alias (public_html) Virtual Directory

Dec 11, 2008

How do I direct my httpd file to point to:

home/USER/public_html
instead of:
C:Users estetc...

I want to do this to make my test server just like the remote server.

View 5 Replies View Related

C99Shell Folders?

Jul 30, 2009

I found these folders in the root

/usr/bin/c99

/usr/include/boost/numeric/interval/detail/c99_rounding_control.hpp

/usr/include/boost/numeric/interval/detail/c99sub_rounding_control.hpp

what are these ? is it normal folders ? or somebody hacked our server?

what shall I do?

View 10 Replies View Related

IIS 5.1 - Browsing Folders

May 8, 2008

Well I finally got around to getting my IIS up and running which will save some time with uploading various files to check that they are working correctly but now I have run into a new problem. What used to happen with my IIS is it would list out all of the folders which I had in the wwwroot and I would simply navigate through and select which site needed to be tested.

At the moment, I have cleared out the wwwroot folder entirely since all of the stuff in there was to do with a "Windows XP Professional" page which appeared upon installation.

However, now that I don't need it anymore, I decided to clear it out and test IIS out by making a new folder called "sites" into wwwroot. Now though, it simply comes up with a "Directory Listing Denied. This Virtual Directory does not allow contents to be listed." error message, even though I have changed the permissions on the wwwroot folder to allow writing etc.

Could this be because it's IIS 5.1 and I need to install IIS 6.0 instead or is something else wrong? I know for a fact that my operating system (Windows Media Center Edition 2005) will do this list as I have had it before, back before I installed Vista and then decided to come back to MCE.

View 3 Replies View Related

Nobody Folders And Delete

Jun 29, 2008

when people run a forum and the template and forumdate folders may created some files with nobody permission,

the user could not delete them by the user themself,

and need admin login as root with ssh to delete those,

and let the files permission can run as the user instead of nobody.

the server is centos with cpanel and suexec.

View 5 Replies View Related

.htaccess And Folders

May 22, 2007

In the public_html directory, I have

php_value user_agent "Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.8.1) Gecko/20061010 Firefox/2.0"
<IfModule mod_security.c>
SecFilterScanPost
</IfModule>

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
Errordocument 404 /404.html
RewriteCond %{REQUEST_FILENAME} !.(jpg|jpeg|gif|png|css|js)$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule .* index.php [L]
</IfModule>

Then I created a new directory named caller

There is an exact same .htaccess in public_html/caller

However, the .htaccess in the public_html directory rewrites all request to index.php

.htaccess in public_html/caller rewrites all request to /caller/index.htm

The thing is when I access
[url] whatever the one that's called is /public_html/index.php

How can I arrange so that the one called is /caller/index.htm?

View 1 Replies View Related

Can I Delete These Folders From My Ftp

Mar 17, 2007

I heard the following folders were used by frontpage.

_private
_vti_bin
_vti_cnf
_vti_log
_vti_pvt
_vti_txt

I was wondering can i delete these folders if i'm not using frontpage ?

View 4 Replies View Related

SSL Certificates Works For Folders?

Jan 13, 2008

Say i have domain zzzzz.com and have some folders say a, b and c

would ssl if installed for main domain zzzzz.com work for https://zzzzz.com/a and so on ? or would wildcard ssl be required for that ?

And what if that /a folder is actually a subdomain, but since you can access subdomains via url/folder instead of folder.url would ssl work on it using url/folder option instead of subdomain url ?

View 12 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

Unable To Delete Folders In Ftp

Mar 28, 2009

im using fireftp and i chmod the folders to 777 but it seems that im still unable to delete the folders as i get the message 550 directory not empty etc.

View 9 Replies View Related

Emails Going To SPAM Folders

May 15, 2008

I can send e-mails out but many times they go directly to the recipient's SPAM box.

Also, my server cannot send to any company e-mail that uses MXLogic.net's services.

Going to [url]<--My server IP is on ZERO blacklists.

/etc/resolv.conf appears correct
/etc/hosts also appears correct

Is there something that I am overlooking?

View 3 Replies View Related







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