Change File Name In Linux
Jul 29, 2009I 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
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
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 ?
I can't seem to remember, but what's that command or file used in Linux so that you can view/adjust the number of open files and others in the system?
View 3 Replies View RelatedI'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 RelatedI have a client on a dedicated IP, today we needed to downgrade the web hosting plan. As the web hosting plan puts users on a default shared IP, this plan change also changed the dedicated IP to the shared one causing some propagation issues for a small period of time.
I have contacted WHMCS about this asking if they had a way of changing the clients plan but keeping the IP address intact as this could lead to some very undesirable outcomes. They explained that it is not their fault and to contact Parallels.
I know I can change the plan directly in Plesk however by initiating the plan change via WHMCS, everything is automated.
I currently have this code in my Image Upload script which changes the file name into sets of numbers and letters
Quote:
$new_file_name = "uploads/" . md5($_FILES['selector']['name'] . time()) . "." . $extension;
How can i make it so its smaller than an md5, about 6 or 7 numbers and letters.
well i am running into the problem of hitting 30k subdir limit. so i need to change to a file system that supports something much bigger.
question is, do hosts allow this ?
I am not able to change the attribute of a file using the command chattr. Please see the output below.
root@server [~]# lsattr /etc/exim.conf
----ia------- /etc/exim.conf
root@server [~]# chattr -ai /etc/exim.conf
root@server [~]# lsattr /etc/exim.conf
----ia------- /etc/exim.conf
In fact, I can change the attributes for all the other files.
I noticed that attribute of /etc is I
root@server [~]# lsattr -d /etc
----------I-- /etc
I have a dedicated server and till few days back i was able to edit my files fine but this morning when i am trying to edit any file, it gives me back this error:
[user@domainname theme]$ chmod 777 header.php
chmod: changing permissions of `header.php': Read-only file system
[user@domainname theme]$
[root@domainname theme]$ chmod 777 directoryy
chmod: changing permissions of `directoryy': Read-only file system
[root@domainname theme]$
I tried both as normal user and root and same results. Do you think the hosting guys changed the permissions of the file system or something?
Recently I moved my WordPress website to another server, After moving my site I see that my all files permission set to 664, for that I getting many error, now I want change all files permission 644, but problem is I have many subdomain with this site, is there any way to make change all files permission to 644 with SSH or any other way?
View 1 Replies View RelatedToday 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.
after a number of hours I finally got myself an SSH connection to my Linux server. I created an account with bin/bash access, whatever that is, and got in. Phew, this is all new to me!
I can get to the ./configure prompt and all looks well when I type command --enable-magic-quotes but I refresh my phpinfo() and nothing has changed.
All I want to do is install Joomla!
My Joomla! installation tells me to action following: Set PHP magic_quotes_gpc setting to ON
Set RG_EMULATION setting to `ON` instead of `OFF` in file globals.php
Display Errors should be on
Register Globals Emulation should be off instead of on
It's also telling me that the var/lib/php/session is unwriteable. Do I need to get shell access and command to do that too?
I have installed a new SSL cert and tried to assign it to an IP address.
Plesk says "Information: The properties of the IP address .... were changed."
But it seems the SSL cert was not changed.
Running in mysql the following query
select d.name from domains d inner join hosting h on h.dom_id = d.id where h.certificate_id = <id of new cert>;
gives:
Empty set (0.00 sec)
I changed the cert for the IP where all my domains are so it should show the domains using that IP/cert. Running the query using the ID of the old cert lists all the domains on that IP/cert.
CentOS 6.6
Plesk 12.0.18
64-bit
At some point, not sure when, PHPMyAdmin's (as accessed through the admin panel by clicking on a customer, manage hosting, databases, etc) permissions have changed such that I cannot view, edit or add MySQL routines/procedures. This appears to have occurred system-wide, though I have not checked every database on the server.
Is there a fix to get the permissions set so that I can make these changes again?
Are that possible to change root password on plesk?
I have a man so work for me on my server and install double php version on my server and maybe it`s best and change password to root!
So no one have access to my root more.
how to change ports of Nginx from 80 to 8080 I would like install Varnish
View 2 Replies View RelatedI recently changed the main domain url from website.com to www.website.com, this resulted in 404-errors when i navigated to wordpress...
I found a solution on the internet and updated the records with phpmyadmin [URL] ....
When I click on Login at the the WordPress Installations I'm still being navigated to the old website url. It supprices me that there is no option to change it on Plesk level after wordpress is deployed.
How can i change or update the wordpress path once it is installed in Plesk?
I'm using CentOS 6.2, maybe there is a config file or an database for Plesk?
I dont find where or how can I change default mailbox size, traffic and disk space for each domain in Plesk 12 Web App Edition, I only have unlimited by default.
View 15 Replies View RelatedWe have installed our plesk servers using parallels plesk mage from AWS market place. We are unable to change the system time from default NOVT.
$ date
Mon Nov 10 13:28:25 NOVT 2014
When we tried changing time to EST from plesk tools / by linking /etc/localtime to /usr/share/zoneinfo/EST
We can see the logs are updated with the EST timings but 'date" command still shows the NOVT.
Due to this installed fail2ban is not working properly due the difference in the system time with logs time.
I am trying to move a particular domain to a different subscriber but am getting an error. I haven't had any problems with this function before.
Code:
Warning: Some problems were encountered when attempting to assign some of the subscriptions to a new owner.Unable to continue subscription transfer: this subscription requires more resources than can be provided by the new owner's provider.
Warning: Unable to continue subscription transfer: this subscription requires more resources than can be provided by the new owner's provider.
All of the resources it shows before and after the transfer are the same. What it is referring to?
I've looked a good amount of time trying to change/find where its stored. I've looked in var/qmail and there is no alias folder..We're running postfix/dovecot ....
View 4 Replies View RelatedI'm trying to copy a backup from the FTP server to the production server but I don't have enough space in the tmp folder.
There is a way to change where the backups are temporary until the hole backup is on the server? In case the only thing to do is to change where the tmp folder is mounted. This is a production server, I won't like to do it without knowing all the steps.
where do I find the setting to change dns records in plesk 11.5 ver ? I do not see it, it is missing in settings of domain under tab: "Websites and Domain"
View 1 Replies View RelatedMy customer has two domains, one of it is a alias-domain.
He wants to set this alias to his primary domain, so how can i change it?
I tried it with deleting the alias, but i can't find the "button" for changing the primary domain?
Have I to delete the complete abonnement and reinstall all files and databases?
I know, that I have to change some paths in files, but it would be easier, than to dump everything and upload again...
Recently I have migrated from a VPS to another VPS. How can I change nameservers for domains in old VPS to point them to the new VPS ?
View 6 Replies View RelatedI need changing the nginx port. I've followed various threads and have created a custom nginxDomainVirtualHost.php file at: /usr/local/psa/admin/conf/templates/custom/domain, while the website indeed moves to the port I have set, a second nginx thread starts at port 80 and takes over in it's place.
I need to put varnish at port 80 and cannot do so until all services relinquish control on port 80.
Followed clues here: [URL] ....
some here: [URL] .....
Turn's out to be able to change the nginx port to a non-standard port you need to edit 6 files
nginx.php
nginxDomainForwarding.php
nginxDomainForwardingIpDefault.php
nginxDomainVhost.php
nginxDomainVhostIpDefault.php
nginxWebmail.php
For the time being i disabled SSL support for my test domain as I didn't need it. The line you need to look for the in above files is:
Code:
$VAR->server->nginx->httpPort
So the line would finally become from this:
Code:
<?php echo $VAR->includeTemplate('server/nginxVhosts.php', array(
'ssl' => false,
'frontendPort' => $VAR->server->nginx->httpPort,
'backendPort' => $VAR->server->webserver->httpPort,
)) ?>
to this:
Code:
<?php echo $VAR->includeTemplate('server/nginxVhosts.php', array(
'ssl' => false,
'frontendPort' => "8888",
'backendPort' => $VAR->server->webserver->httpPort,
)) ?>
To get this to work you'll need to create a custom directory at: /usr/local/psa/admin/conf/templates
And copy the files over from the root of /usr/local/psa/admin/conf/templates/default
Not sure why, but for some reason lately our Plesk installation randomly sends us notification emails about alarm level changes which go from Green to yellow, yellow to red, then goes back to normal over time. No changes were made on the server for these constant changes and emails to occur. We have a customer who also has the same issue.. Both focus primarily on nginx with little to no usage of apache.
View 2 Replies View RelatedAfter changing website domain name (from development one -dev-domain.com- to production one) we have this error in fail2ban.log :
2015-02-01 06:46:41,176 fail2ban.filter [2848]: ERROR Unable to open /var/www/vhosts/system/dev-domain.com/logs/proxy_access_log
2015-02-01 06:46:41,176 fail2ban.filter [2848]: ERROR [Errno 2] No such file or directory: '/var/www/vhosts/system/dev-domain.com/logs/proxy_access_log'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/server/filter.py", line 520, in getFailures
has_content = container.open()
File "/usr/lib/python2.7/dist-packages/server/filter.py", line 601, in open
self.__handler = open(self.__filename)
IOError: [Errno 2] No such file or directory: '/var/www/vhosts/system/dev-domain.com/logs/proxy_access_log'