I have setup an ftp user which can upload files to /home/ftp/upload and obviously it assigns the ftp user as the owner when it uploads. Now, I want PHP to be able to rename those files, but getting a permission denied, presumably because apache aint the owner or doesnt have permission to do that, so how do I grant it the right permission(s)?
Until recently i had never used a Linux server, as i used to have a windows server. I now have a Linux VPS
I am now at my wits end with file permission problems
I use Joomla a lot for my websites, and i also develop and program many modules and components for it, but at the moment every time i upload a module (which is a zip file with php files that is put onto the server in the right place via php) it sets the ownership to "nobody" rather than the username so i cant access it via ftp, as it says you don't have permission or the file may not exist.
Is there anyway the server can be set so it will by default set the file to have an owner name that will allow ftp access to it without me having to learn SSH Putty (which is all i have done today) or contacting my hosting company every time?
I am spending more of my time with these permission problems than doing my work, it driving me barmy!
I'm using WAMP and IIS for the first time so bear with me if I overlooked something obvious.
I have a simple script that creates a few files and then attempts to move them to a subdirectory. I am getting a permission denied error when attempting to move the scripts in WAMP. I am uncertain how to set directory permissions in WAMP. I am also unsure how this will affect the script when I migrate it to an IIS server.
I'm currently renting a VPS, fingers crossed everything is running just fine. A Question i go for you is,
Im Looking at upgrading the mysql on the VPS, as im looking at installing xcache xcache.lighttpd.net/wiki/Release-1.2.0 Would you say this is a good idea or not, as i've heard that xcache can reduce server loads ?
If you think it is a good idea could you point me in the direction of how to upgrade my mysql, can this be done via WHM?
There is a directory say, "Master" and inside, "Master" there is sub-directory, "Slave". A user who has access to, "Master" should be able to access, "Slave" automatically. However, a user who has access to, "Slave" should not have access to, "Master". Inside cPanel this type of protection is not possible.
After my bad experience regarding unlimited features on this link: [url]
I tried to search some of webhosting provider tos regarding their unlimited bandwidth and space. Here one of the tos: (sorry, I hide the name).Unmetered Bandwidth Policy The purpose of the ********* unmetered bandwidth policy is to assure owners of standard operating web sites and small businesses that they will not be surprise billed for bandwidth usage. It is one less thing someone will need to worry about while hosting their web site at *********. The ********* unmetered bandwidth policy does not cover certain web sites.
These include the following:
* Web Portals/Communities/Forums - Any sites that have members and/or forums. * Online Gaming - Includes online casinos and single/multiplayer online games. * Image Galleries - Includes eBay or other online auction image dumps. * Downloads - Any site that prompts for a download or has large applets. * Audio/Video - Any streaming content, web-cams or audio/video downloads. * Chat - Includes PHP and Java chat rooms. CGI-based chat is not allowed on our servers.
If you are planning on using our servers to host one of these sites, ********* will allow for 50 GBs of transfer per month. You will be billed $10.00/10 GBs/mo thereafter.
All other accounts for personal and small business are allowed unmetered bandwidth. If you adhere to our Terms and Conditions of Use Policy and run a standard web site, you will be covered under the unmetered bandwidth policy. (99.9% of all ********* hosted web sites currently qualify for their unmetered bandwidth usage.) Accounts that do not follow our Terms and Conditions of Use policy are classified as metered bandwidth accounts and will be billed accordingly.
Unmetered Web Space Policy ********* customers are privileged to be offered unmetered web space for their sites on certain plans. ********* will start you out with 1000 MBs of space. Once you approach 90% of its use, simply request additional space from Support. ********* will then add another 1000 MBs of space, free of charge. You can continue this process until you no longer require additional space. The intent of ********* is to provide a large amount of web space to serve web documents, not an off site storage area for electronic files or a backup of your PC. Ninety Percent (90%) of your web pages (html, etc.) must be linked with files (.GIF, .JPEG, etc.) stored within your space, hosted on a ********* server.
Web sites that are found to contain either/or no html documents, a large number of unlinked files, will not be offered any additional web space under our Unmetered Web Space Policy.
Read the tos carefully, it can be tricky right? So if your the owner of webhosting provider that give unlimited bandwidth and space.. what is your TOS?
I've tried just about everything to preserve owner/group using rsync. I've tried running rsync as a daemon, etc.. I user rsync to backup /etc /home etc.. when restoring data I have to change the owner/group for everything this is very time consuming!
I want to move the entire contents of a directory tree to another directory.
So for example we may have a directory with 15 directories inside, each directory contains files itself. I want to copy all the files from the directory tree into another directory located somewhere else one the file system. I want only the "files" to end up in the other directory and not the file structure too.
apparently Envelope-From, Sender and Errors-To headers are set to a wrong address for messages from mailman to the list-owner. This is particularly true for mails like 'message requires approval'.
It seems like the plesk<->mailman magic results in all list-domains being written to the end of /var/lib/mailman/Mailman/mm_cfg.py in the following format: add_virtualhost('list.DOMAIN').This in return results in mail headers Envelope-From, Sender and Errors-To of mailman system mails like described above being set to mailman-bounces@DOMAIN, where DOMAIN is the one from the last add_virtualhost entry.
In my opinion, this obviously is a bug. Maintainance mails from mailinglists have wrong headers set, often with a domain that belongs to a completely different customer than the mailinglist.
I found the following discussion on mailman-users mailinglist from 2008 which discusses the same issue - also a plesk setup: URL....
In moving my site to Drupal, I have had it on a "Beta" account on the same server. I need to move the DB to the "Live" site. How do I re-assign it using the master PHPMyAdmin through WHM to change the owner of the DB from "Beta site" to "Live site"?