Jump to content
xisto Community
iGuest

Cpanel File Manager - File Upload Problem - Permission Denied - Pleasse Help.

Recommended Posts

Upload Status move /home/theshop/tmp/cpanel.TMP.sIrVzLxen20QECJ7, /home/theshop/public_html/administrator/components/com_virtuemart/CHANGELOG.php failed: Permission deniedCHANGELOG.php (CHANGELOG.php): upload succeeded, overwrote old file.


This is the message I am getting when I want to upload few patch files for VirtueMart using cPanel File Manager. what does it indicate?
What do I need to do to get rid of

Permission denied

message?
Please help.

Share this post


Link to post
Share on other sites

Thats an odd message. M not a proffessional in File manager errors, but guess someone who knows well can help you. But just for the time being ...

 

CHANGELOG.php (CHANGELOG.php): upload succeeded, overwrote old file.

 

This indicates that it was uploaded..

 

OK wait ! .. are u trying to update a feature of a pre-installed cPanel script ? Cause if thats the case, its a no no. Are you trying to move CHANGELOG.php from your public_HTML to your tmp folder in your base ? Hope m not confusing you. Just let us know what exactly you are trying to do here. But FYI, you cant change any file below public_HTML .. atleast thats what i think, cause if u do then you are screwing up your hosting configuration..

 

Or your best option, try a FTP Manager lol :D

 

Regards

Dhanesh.

Share this post


Link to post
Share on other sites

Thanks for your reply. Let me answer your questions.

 

CHANGELOG.php (CHANGELOG.php): upload succeeded, overwrote old file.

 

This indicates that it was uploaded..

 


It was an example, with each file I tried to upload, I got the same message. And I have strong doubt whether it was successful or not as I could not locate any difference.

 

OK wait ! .. are u trying to update a feature of a pre-installed cPanel script ?

No.

 

Are you trying to move CHANGELOG.php from your public_HTML to your tmp folder in your base ?

No.

 

Just let us know what exactly you are trying to do here.

I have installed Virtuemart Version 1.0.5 few months ago as a component of Mambo CMS. Now the upgraded version of Virtuemart, i.e. version 1.0.6 has been released. So I need to copy the changed files in place of the existing ones. If I want to do that using cPanel file manager, I am getting that error message. And I think the upload is not being done successfully.

 

Or your best option, try a FTP Manager lol :D

 


I have tried Leech FTP, but there also I am getting the same error message.

Above all, I have tried MamboXplorer, a mambo component for managing files, but the result is no different.

 

Please help.

Share this post


Link to post
Share on other sites

/home/theshop/public_html/administrator/components/com_virtuemart/CHANGELOG.php failed: Permission denied

have you used an installer from mambo to install this module? if you have use an installer.. package installer from mambo... you also need an upgrade installer not just overwriting it..

mambo scripts sets up the default user i think to apache for the modules it have installed.. our accounts here are using only ordinary user accounts so meaning, you cannot access those files created by apache..

Please dont confuse this one.. I believe that using the control panel.. you can change the ownership of the files.. I have not done this or tried this yet with the current hosting of Xisto..

I just delete all or use an installer script to update the configuration and files created by apache scripts..

-------------

when you use scripts to install modules.. the one process running is apache and it is running on its own account.. if it creates a new file then it is the owner.. i hope you get what i mean..

Share this post


Link to post
Share on other sites

vhortex, what you just said gave me a possible solution a problem that I had :D I installed Google Sitemap Generator component for Joomla! through the administration panel. It required me to CHMOD some files, but I just could. Neither Total Commander nor the cPanel file manager could do it - both gave me errors. Not only that, but I am unable to edit any of those files, and that is the most important thing, since it's not working properly. I have to edit one of the core files (not to mention that I still don't know WHAT to edit).Can you remember where the permissions are changed in cPanel?

Share this post


Link to post
Share on other sites

here is what i have done.. Since I cannot edit or chmod the files.. I go to control panel and have found use the filemanager..I dit the file and chmod it with filemanager.. you can even erase and upload a newer file..-------The last time I have this problem with simple CMS.. I downloaded the directory.. you can read it anyway.. then using the filemanager.. deleted the old directory.. after that I reuploaded the same files i have downloaded a while ago..Do the download with ftp and the erase or modfications with filemanager.. Filemanager have a higher access than our normal accounts.. So all that we have created are owned by filemanager also..-------by the way.. i encounter a bug in filemanager a few months ago.. when you edit a file using filemanager and saved it without chmod first.. the fileowner turns into filemanager.. then no one can read that on the web..---------------------------I think i saw something like change ownership in the Cpanel sometime.. i was looking at it now..*****************************Gosh.. I have this problem when i duplicate the old error I got.. It seems that my account is yanking of a bad file descriptor for the two files I use to reset.. It seems that filemanger can no longer modify them..I thinkl this is time for the admins or you reset them using a php script..

Edited by vhortex (see edit history)

Share this post


Link to post
Share on other sites

Unfortunately, deleting the folder didn't work. Total Commander didn't give me any errors, but after the action had been completed, all the files were still on the server. However, I thought of another solution that worked.The component I installed was in a zip archive with all the files. When installing, I just selected the zip archive, and Joomla! uploaded and did what was necessary. Anyway, instead of changing the problematic file after installing it, I changed it on my computer. After installing it, everything worked just fine :D

Share this post


Link to post
Share on other sites

You either don't own the folder or file that you are trying to change or upload to!

The server probably owns it because yone of your scripts created the folder or file.

Anytime a script creates a directory or file then it is actually the server (user 0) that is doing the task and as such is by default the owner of the entity.

This is especially bad in Joomla/Mambo since the installer doesn't use FTP which you would log in with which would make you the owner.

Here is more information:
http://forums.xisto.com/index.php?showtopi&hl=cleanup
http://forums.xisto.com/index.php?showtopi&hl=cleanup

These links have all the info you need as well as a script to fix the problem.

Hope This Helps. :D

vujsa

Share this post


Link to post
Share on other sites

I have noticed another thing that might have something to do with this problem. When we generate and download a full backup, we get some files that aren't accessible through FTP (amongst them is the mysql folder and the homedir folder).Beside the folders that we have in the root of our backup, there is also a file called "nobodyfiles" that has no extension. As far as I could see, the file contains pathways to files created/uploaded by some script - exactly those files that I cannot change. This is probably the file that somewhat controls the permissions, right?

Share this post


Link to post
Share on other sites

Vujsa, thanks for those two links, both of them are informative. But the script, "cleanup.php" as referred to in the first link, could not solve my problem. When I am running the script, either, it is reporting a list of files that it has accessed or it is generating a warning:

Warning: chmod(): Operation not permitted in /home/theshop/public_html/cleanup.php on line 54

In both the cases, the script is unable to change the ownership of the files.

Needless to say, I have understood the problem, but just can't see any solution. I require to change the ownership of the files created using Mambo Installer. Then I can do subsequent operations like Editing/Deleting those files.

Ownership/permissions may be changed by running a script, but in my case, the script ( cleanup.php ) failed.
I uploaded the script using cPanel File Manager. Is there any other way to change the ownership/permission?

Share this post


Link to post
Share on other sites

It might help to know who owns this file:your ftp client should tell you the owner name or number.Owner 0 is the server.Member accounts are something like owner 20193.All of your files should be owned by either your number or by 0. If the files you have problems with are owned by another number, there may be a larger problem.There is one last way to take control of the files. Download the entire directory that contains the file you have problems with to you local system.You must be sure to get EVERYTHING!On the server, delete the effected directory with all files and subdirectories.Now upload the files that you backed up and all of the files will show YOU as the owner.Since this involved the deletion of multiple files and perhaps directories, I can not guarantee that you will not lose something important. You must be very care during this process or your files may be lost.I suggest making a full backup of your entire website prior to attempting this task.I do not recommend that anybody attempted the solution I suggested here in any situation!If this operation works, then you may need to tweak the permissions of some of the files that changed ownership.Hope This Helps! :Dvujsa

Share this post


Link to post
Share on other sites

Thanks again for your very specific suggestion but that is too risky. MamboXplorer suggests that owner of the file is '0' , i.e. the server. Deletion of Directories/files from the server which are posing problem may cause potential damage to the website. Instead of that, is it possible to uninstall the components/modules using Mambo and then upload the files (backed up already) through FTP? I have never uninstalled the components/modules using Mambo, so, I am not quite sure whether uninstalling them will simultaneously drop the database tables containing data.

If anybody has already tried the backup->delete->upload method, please tell it whether it was successful or not. Also what do you think about the method I have in my mind, i.e. uninstalling the component/modules and uploading the necessary files thereafter.

As I have already undertaken too many experimentations with this site, so I have no other option left but to take extreme care before taking a decision in this regard.

Hope this explains the scenario which compells me to put forward the same issue repeatedly.

Share this post


Link to post
Share on other sites

Thanks again for your very specific suggestion but that is too risky. MamboXplorer suggests that owner of the file is '0' , i.e. the server. Deletion of Directories/files from the server which are posing problem may cause potential damage to the website. Instead of that, is it possible to uninstall the components/modules using Mambo and then upload the files (backed up already) through FTP? I have never uninstalled the components/modules using Mambo, so, I am not quite sure whether uninstalling them will simultaneously drop the database tables containing data.

If anybody has already tried the backup->delete->upload method, please tell it whether it was successful or not. Also what do you think about the method I have in my mind, i.e. uninstalling the component/modules and uploading the necessary files thereafter.

As I have already undertaken too many experimentations with this site, so I have no other option left but to take extreme care before taking a decision in this regard.

Hope this explains the scenario which compells me to put forward the same issue repeatedly.

 


the install and backup of mambo components can be only answered via the component writer/developer. the first part of the component installation is the creation and initialization of the needed tables and variables.

 

some components are badly written that they just overwrite some major parts of the database..

 

the uninstallation is also the writers/developers taste.. some removes all data.. some just remove the files and some creates a backup.. while there are some chance of other programmer just leaving everything behind..

Share this post


Link to post
Share on other sites

I repeat what I just wrote to other topic: If you use Joomla, the most convenient way is to go to(in administration panel) site - global configuration - server and from there change the directory and file permissions to 0777. Hope this helps.

Share this post


Link to post
Share on other sites
Uploading website problem via cpanelCpanel File Manager - File Upload Problem - Permission Denied - Pleasse Help.

I have been uploading my websites through my webhost who uses cpanel, for the past 6 months I have been able to upload my websites to my remote folder in cpanel's file manager directly from my software. Suddenly on 4/01/10 it stopped working ie it was uploading but the files were not reaching my file manager, after several frantic emails, I tried uploading my files manually and was receiving confirmation that this was 100% completed, when I checked the file manager the files were not there. I double checked everything ie correct folder etc. Then I thought I would try to upload my files to one spare free domain hosting package that I had and hey presto all worked fine and there was my website.

I have been waiting since the 4/01/10 to have this problem solved with my web business backing up, apart from moving my business to another hosting company has anyone experienced this problem or could give me some advice, in the meantime I have emailed the technical team at cpanel.

-question by harrymedia

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.