How To Rename A File In Linux

Apr 1, 2009

I have a list of files in a folder like this:

/home/files/[url]

And I need to rename them to this format:

awstats092008.[url]

I've played around with sed, rename, and a bunch of others.. but I just can't figure this out.

server is CentOS 5.2

View 2 Replies


ADVERTISEMENT

Plesk 12.x / Linux :: Deny User Upload File Via File Manager Or Hidden File Tab?

Feb 10, 2015

I'm build Plesk Panel for Linux and Presence Builder, I don't want my user can upload their website to hosting via File Manager. How can I do it...

View 2 Replies View Related

Mass Rename Files

Jan 24, 2007

to rename about 1100 files from SSH. The filenames contain (, ), and spaces, and I'd like to eliminate all of those characters. Can this be done with a simple command?

View 0 Replies View Related

Plesk 11.x / Windows :: Possible To Rename Domain

Nov 21, 2013

Is it possible to rename a domain ? hwo to do it ? I have plesk panel 11.5.30 configured for ISP

View 2 Replies View Related

Package And Rename A Cpanel Acct, Then Scp, Then Delete

Jan 25, 2008

I would like to do the following. It doesn't have to be in this particular order, as long as the results are the same.

delete <cpanelusername>-<date>.tar.gz (created from last pkgacct run)

/scripts/pkgacct <cpanelusername>

rename output to something like <cpanelusername>-<date>.tar.gz

scp -pr /home/backup-<cpanelusername>-<date>.tar.gz root@othervps:/backups

I don't know if all of that can be done in a single cron separated by | or if it has to be in a script file the cron calls. I have never made/called a script before, so I need some help doing that.

When you do the pkgacct, can you specify the name, so you can built it with the date/time?

View 7 Replies View Related

Shell Script To Copy And Rename Files

Aug 27, 2007

To automate a task, I need to create a shell script that will allow me to copy the folder blank/ to a new location and rename it to news/, same for the files inside that directory. And, if possible, change the content of one of those files as well.

For example, I need to copy this:

Code:
blank/
templates/
frontend/
index.html
Blank.php
...to a new folder and rename it to this:

Code:
news/
templates/
frontend/
index.html
News.php

View 5 Replies View Related

Plesk 11.x / Windows :: Cannot Rename Domains In Panel

Jun 20, 2013

I'm trying to rename a domain in my panel and keep getting the following error:

Code:
Error: Execute websrvmng --rename-vhost "--old-name=domainb.com" "--new-name=domaina.com" failed with error code 1: External component has thrown an exception. In IIS7NativeProvider module Exception type: System.Runtime.InteropServices.SEHException at _CxxThrowException(Void* , _s__ThrowInfo* ) at IIS7ApplicationPools.copy(IIS7ApplicationPools* , auto_ptr<IApplicationPool>* , basic_string<wchar_t,std::char_traits<wchar_t>,std::allocator<wchar_t> >* srcName, basic_string<wchar_t,std::char_traits<wchar_t>,std::allocator<wchar_t> >* dstName)
Running

Code:
websrvmng --rename-vhost "--old-name=domainb.com" "--new-name=domaina.com"

In the Windows command line gives the following error:

Code:
Cannot find domain by name 'domaina.com'

Haven't found many leads on the web as to what this might be.

View 2 Replies View Related

Links Files In Linux (file.txt For File.php)

Jul 9, 2007

Today I found some cstomer on the servers make a link for named it file.txt and link it to other customer php file.

so that customer have the ability to show the other custoer file content when visiting the url because it is a text wile originally it is a php file.

the php file was a config file, so now he know the database password , and because he is in the same server he can use that databse.

the question , how to avoide this prolem in the future?

notes , the SuExec is rnning and the open_basedir protection is enabled, but the problem still exists.

View 12 Replies View Related

Change File Name In Linux

Jul 29, 2009

I have a file and i need to change this file name.

But its have space now.

Its: My File Name.tar.gz

How can change this file name to: My-File-Name.tar.gz

View 2 Replies View Related

How To Tweak Linux For File Serving

Sep 14, 2007

i have few servers that just serve files (1MB-100MB)

Suse Linux on all

the servers have minimal apps installed and i already got a llarge performance increase by dumping apache

now im look at tweaking at the OS level

any settings in Linux itself to speed up sending files down the pipe?

net.ipv4.tcp... in /etc/sysctl.conf?

View 0 Replies View Related

Plesk 12.x / Linux :: 404 File Not Found

Jul 23, 2014

When trying to access any files or pages I'm getting the error:"Not Found...The requested URL /wp-login.php was not found on this server.Apache Server at calmcomputing.net Port 80"

The standard default page displays but my Wordpress installation does not (nor does anything for that matter). I've looked in the file manager (and via ftp) and all the files are there like they should be. This is the same for any of the subdomains that I've setup as well.

View 3 Replies View Related

1.com/file.php, 2.com/file.php Where File.php Is Hosted On Main.com/file.php

May 26, 2008

Say I have 2 websites and they all use file.php which is located on mainserver.com/file.php.

I want to use the file like this:
website1.com/file.php
website2.com/file.php

View 2 Replies View Related

Plesk 11.x / Linux :: PHP Script Can't Upload File

Jun 4, 2014

All my PHP script can't upload file. I have tried to set CGI Application or FastCGI Application to my domain, but I can't resolve this issue.

View 6 Replies View Related

Plesk 11.x / Linux :: PHP FastCGI Configuration File?

Oct 24, 2014

Where the file that holds PHP fastcgi configuration is located. I was told its here but it's not

/etc/nginx/conf.d/*.conf.

View 3 Replies View Related

Plesk 12.x / Linux :: File Sharing Broken?

Dec 11, 2014

System:
Parallels Plesk v12.0.18_build1200140610.21 os_Ubuntu 14.04

Symptoms:
Whenever I click "File Sharing" in Plesk, I get the following error and no content is visible:

Internal error: Error in cURL request: IPv6 numerical address used in URL without bracketsClick to expand...

View 7 Replies View Related

Plesk 12.x / Linux :: Upload File Limit?

Jun 22, 2015

I have a big problem concerning the file upload limit (I need a large size, around 2Go) : I was using my app in /var/www/vhost/default and it was working perfectly, I decided to change it and use /var/www/vhost/mydomain.com to have it throught the plesk panel, and there I have an upload limit than I need to push. I can't upload files larger than 128Mo and I don't know why.

- I have checked all php.ini files (with locate php.ini) and they are all correct.
- I used plesk panel to set php conf -> done.
- I put :
php_value memory_limit 2000M
php_value upload_max_filesize 2000M
php_value post_max_size 2000M
in my .htaccess in htdocs

[Code]....

I reload/restart apache2, psa, ... And it still doesn't work, I have no more idea every conf file seems correct. It's not a permission problem because I can upload some 80Mo files but not 500Mo ...

View 6 Replies View Related

Plesk 12.x / Linux :: Cannot Change User File

Jan 19, 2015

We have a website under httpdocs/. We can change/delete files with a ftp user : "ftpold". All is ok. We must create another ftp access for another company which can access only to httpdocs directory (not to logs/, error_docs/...).

So we have create a ftp access in Plesk. But with this ftp connexion, we can not update/delete files ou update rights.

So we decide to change rights on the files/directories under httpdocs with the new ftp access :

httpdocs# chown -R ftpnewsacln *

The is no errors but the files:directories are always with the old ftp user :

httpdocs# ls -l
ftpold psacln ... libs/
ftpold pscln ... index.php

Why ? How can i create another ftp access ?

View 3 Replies View Related

Plesk 12.x / Linux :: Importing Large Sql File Via SSH

Apr 6, 2015

I have been trying quite unsuccessfully to import a large sql db file via phpMyAdmin for one of my clients. Since the db file is about 250mb I get a server timeout error.how I can do this via SSH...I have a CentOS server 6.5, 64 bit that runs Plesk v 12.0.18

View 4 Replies View Related

Plesk 11.x / Linux :: FTP And File Permissions Are Incorrect?

Jun 4, 2014

Whenever I setup a new FTP user in Plesk and then configure my FTP client with exactly the same username and password and transfer files and folders onto the server then the file permissions allocated are incorrect. Folders get allocated a permission of 700 and files a permission of 600, whereas I want all folders to have a permission of 755 and files a permission of 644. How can I change my setup so that files and folders get the permissions I want ?

View 1 Replies View Related

Plesk 11.x / Linux :: Out Of Control SSL Log File - Grows By GB A Day

Jun 8, 2014

I suddenly have a client's access_SSL_log.processed file growing at a ridiculous rate. Very small website. The log file had grown to 6BG before I realized the problem. I removed it and two days later there was a 3GB log file that replaced it. Nothing strange that I can see regarding the traffic to the website, which is quite small. Only 80 visitors.

View 8 Replies View Related

Plesk 12.x / Linux :: Configuration File Error

Jun 25, 2015

PRODUCT, VERSION, OPERATING SYSTEM, ARCHITECTURE

Parallels Plesk Panel 12.0.18 MU #51 CentOS 6.6 (Final)

PROBLEM DESCRIPTION
The following error has started to appear on our server: New configuration files for the Apache web server were not created due to the errors in configuration templates: Template processing failed: file = /usr/local/psa/admin/conf/templates/default/nginxDomainVhost.php, error = Template_Exception: Empty content was provided for config file /var/www/vhosts/system/domain/conf/nginx.conf file: /usr/local/psa/admin/plib/Template/Writer/Webserver/Abstract.php line: 47 code: 0. Detailed error descriptions were sent to you by email. Please resolve the issues and click here to generate broken configuration files once again or here to generate all configuration files.

STEPS TO REPRODUCE
Appears on the plesk home page

ACTUAL RESULT
Error displaying as above

EXPECTED RESULT
No error should be displaying, I haven't seen this before and we didn't receive an email with error descriptions. Is it safe to regenerate the broken config files / all of them? t

View 2 Replies View Related

Best File Sharing Method Between CENTOS/LINUX Servers

Apr 16, 2007

What is the best way to share files/folders between centos/linux servers?

View 7 Replies View Related

Plesk 11.x / Linux :: File System Loop Detected

Sep 19, 2012

I do not know how this happened though. When I use find command on shell, I got the following error.

find: File system loop detected; `/var/named/chroot/var/named' is part of the same file system loop as `/var/named'.

It is minimal CentOS6.3 install with plesk 11.

View 15 Replies View Related

Plesk 11.x / Linux :: FTP - File Do Not Show In Remote Server

May 11, 2014

After a fresh install of Plesk 11.5 am unable to FTP the server.

The FTP client shows that successful but no file in the remote server and its lock I saw only / I cannot stroll the client on remote server

Site builders work ok, Wordpress and built software update and publish...

View 5 Replies View Related

Plesk 11.x / Linux :: FTP - Wrong Folder And File Permissions

Nov 15, 2013

I have a problem where every folder I ftp onto the server gets given a 700 permission and every file gets a Zero permission. Most of the sites I am adding to this server will be WordPress sites and most of the folders I want to have a permission of 755 and for the files a permission of 644 so my question is how do I change the settings so that any new files ftp'd onto the server get the permission 755 and files get the permission of 644 ?

View 2 Replies View Related

Plesk 12.x / Linux :: Fail2Ban - File Contains Parsing Errors

Sep 18, 2014

When I click on the "Change settings" button for any of my jails a page opens showing the following error message:

Messagef2bmng failed: ERROR:f2bmng:File contains parsing errors: /etc/fail2ban/action.d/iptables-multiport-log.conf [line 24]: 'iptables -N fail2ban-<name>-log
' [line 26]: 'iptables -A fail2ban-<name>-log -j DROP
' [line 33]: 'iptables -F fail2ban-<name>
' [line 34]: 'iptables -F fail2ban-<name>-log
' [line 35]: 'iptables -X fail2ban-<name>
' [line 36]: 'iptables -X fail2ban-<name>-log
'
FileAgent.php
Line243
TypePleskUtilExceptionClick to expand...

View 5 Replies View Related

Plesk 12.x / Linux :: Reset Owner File Manager

Jan 13, 2015

CentOS 7 64bit + Plesk 12

How can i reset the owner state of the files in file manager. right now some files have the ROOT as owner. I know with DirectAdmin there is a Reset owner feature. But this is cant find in Plesk.

View 3 Replies View Related

Plesk 12.x / Linux :: Log File To Access The Error Messages

Mar 17, 2015

This is our first installation of Plesk Panel.

In our root directory have the Logs folder, but do not know how to find the log file to access the error messages that may be generated one.

View 1 Replies View Related







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