Today i found extraction of zip file seems disabled in cpanel File Manager.Yesterday it was working fine and i had extracted one file .I had uploaded a big file of size 472MB.but then uploading got cancelled and From then I am facing the problem.
What is the reason behind the strange behaviour of cpanel file manager.?
And what is the solution to this problem..?
I really want the extract button enabled because Upload on server using Filezilla is very time consuming..
By default the icon is grayed out if no file is selected, make sure that's not the case.
If it's selected and it's like that then you might consider checking with your hosting provider, if you're the administrator of the server then go ahead and run
/scripts/upcp
You just need to select the file which need to be extracted. Extract button will automatically appear if you select any zip file from your directory.
Related
I had a task that required me to move files from a subdomain to the public_html directory on my cPanel. To move them I simply selected the files and directories I wanted from the subdomain, clicked move and entered the destination path.
Once the move process had completed, only some of the files and folders were in the new location (public_html). The files that didn't move to the new location no longer seem to exist.
Has anyone encountered this problem before and is there any way to recover the lost files (they aren't in the trash)?
Thanks in advance!
Have you tried to connect to your server with other FTP client like FileZilla or something similar to see if the files are still missing. It seems like UI glitch. cPanel represents only an user interface and is not able to delete the files.
I'm doing some work for a client who has an existing shopify website. They want to make some big changes to the site, so i have set up a new development site in shopify, exported all of the products/pages/blog posts to it and am now working on getting all the new functionality/design working on the dev site.
Once the new build is finished though, i want to transfer everything back over to their current site. Products/pages/blog posts will be fine (ive written a custom export/import thing using their api), but what about images?
I am uploading lots of images to the dev site and i am worried they will be deleted when development is finished and i shut down the dev site. Is it possible to transfer over images from one site to another?
Ideally, keeping the same urls on shopifys cdn when doing so, although if i have to change the urls, then i can probably do an automated replace on the csv files that will get uploaded.
There are going to be hundreds of images involved, and they will be used in various places throughout the site, including in the rich text area of pages/blogs, so it's not going to be practical to do manually in any way, must be something I can automate.
Thanks for any help.
When you export products as a CSV, you get links to your images. You could write a script to download each of the images in the CSV. Just redirect the output of curl to save the image.
curl link_url > imagename
Have you tried transferring between the two sites using FTP? If you have SSH Access
login to the server via SSH
change to the right directory to file location or desired location
FTP into the other server using ftp <name_or_IP_address_of_other_server> and your login details
use cd to locate your location / desired destination
use the binary command
hash if you want a progress bar
if sending the file from the server you SSHed into issue the put <filename> command, and if you want to pull the file from the other server to the one you are logged into use get <filename> instead.
Wait a while for the transfer to complete - might take a while
Permissions are in line (777, owned by NGINX, etc),
Folder is writable,
File is small,
Everything I've found on Google for the last 4 hours is correct / NA
Players are NGINX, PHP-FPM, FastCGI..
I upload the file, use move_uploaded_file to move to uploads directory and the file saves. However the file, upon inspection, is 0kb and 0px by 0px. EMPTY.
Not finding this issue anywhere online?
Any thoughts?
If anyone comes across this and everything seems to be perfect.. CHECK your disk space! In my case I was using a mounted drive so I didn't get any typical low-space errors.
move_uploaded_file and copy do NOT display space issues. I had to use rename() to get any useful details.
Hope this helps some poor soul.
Someone posted a similar issue as yours here - http://bytes.com/topic/php/answers/1002-move_uploaded_file-corrupts-some-files
It seems the issue resides in transferring a GIF from a Windows machine to Linux.
Try using copy function instead. copy([source]),[destination]. If this works, that means you have a permission issue with upload temp directory.
Have you checked the permission on upload temp directory? You can find the directive/path on php.ini file(upload_tmp_dir).
I am learning how to use SQL, I set up a localhost, in the course of that journey, I was confronted to the issue of importing sql files into phpMyAdmin, I did the right click on config.inc.php and clicked on the Notepad++ that I previously installed, I typed in there the following code: $cfg['UploadDir']='c:\Files';, of course I created on the hard drive C the Files directory. Now that I came back into phpMyAdmin, clicked on my database, clicked on import, this is what I got as message:
The directory you set for upload work cannot be reached.
Can anyone help me here with this issue?
Your webserver probably doesn't have permission to read 'c:\Files' thus it is not a valid directory. Technically you would say this is out of the web root.
I suggest you set the upload directory to a subdirectory of your web server's root directory (or in the PHPMyAdmin web directory). Then if for your own ease of use you want it to be located at 'c:\Files' you can create a shortcut from the web root upload directory whatever you name it, and place the shortcut in 'c:' and name it 'Files'.
Whenever I create an .htaccess file in a directory it disappears. I am running a VPS at Digital Ocean (I have full control over the server). So I can't see why my .htaccess files are automatically deleted upon creation. I even tried to make the file on my computer and just transfer it to the directory via FTP but as soon as it transfers, it disappears. I checked the log of the FTP transfer and the file transferred successfully. I can't figure this out.
Its because system files are hidden on apache servers... Either select the option to see hidden files if you're using a GUI or type the command "ls -a" if you're on terminal and you should see the files. Any file that starts with a dot is going to be hidden by default. Your .htaccess files fall within the same category.
If you want to be able to view the .htaccess file on the server, make sure you are logged in as the root user, or a user with root level permissions.
Then, navigate yourself to "/home/username/public_html(in my case)" And if you have a .htaccess file uploaded, it should be displayed there.