i have a drupal site, that is using media module and we are updating all media to Azure blob storage. Now the situation is i have to change the media location to AWS so what will be the best practice to do this without loosing data/media.
We have media ids in drupal and medias to Azure....
Related
I need a tool which will analyze unused images of Wordpress images folder.The tool which will check unattached images of website and display it so we can delete it.The tool can be free or paid. I don't want any kind of plugin.
The only thing I can recommend is that you do a good backup of your filesystem which would include the media library. This step is not optional; it is required. You cannot trust any tools modifying or deleting your files.
Plugin: Media Cleaner
Media Cleaner cleans your Media Library from the media entries (and files) which aren’t used in your website, as well as broken entries. An internal trash allows you to make sure everything works properly before deleting the media entries (and files) permanently. It uses a smart analysis powered by many implementations for specific plugins and themes.
This is one of the most useful plugins I’ve come across.
Somehow a client managed to upload three copies of every single image she owned, each duplicate was a difference size, and all of them had to be checked. The unnecessary ones removed. This is the only tool I could find to fix the problems.
I’d recommend this plugin in a heartbeat.
I have a classified website pkwhistle.com that is leading multiple countries and has a huge collection of images media. Is there any way to store newly uploaded listing images automatically store outside WordPress and fetch back to my site. clasificadospr.com is the best example of my idea. Because this website is using service which I am actually asking about. It's using the "thumbor" service. Please help me in this matter so I can increase the speed of my website. More than 10thousand images on a website can kill speed.
Well, it's called hosting/loading your images from a CDN, and there are many providers that work nicely with Wordpress!
With 10.000 images you mostly end up with a premium solution such as WP offload Media from Deliciousbrains (highly recommended and I am not in any way affiliated to them, just love their products). They also have a free version.
You can hook it up with all the big assets storage providers (digitalOcean Spaces, Amazon's AWS)
And integration with WP is great, it syncs between the CDN and your Wordpress Library.
Alternatively, there are some free options, you can use photon from Wordpress, it does almost the same, but hosted on photon's servers. It comes with the Jetpack plugin.
Another free option is Cloudinary (they have a plugin as well). But it has a limited free plan.
Good luck!
I have a wordpress site, and it has more that 30k posts.
Every post has own feature image, and each feature image has 10 responsive sizes.
#10076 post has 13 thumbnails
So there are about 300k image files, and this reaches to the File Usage Limit(inode limit) of hosting service.
File Usage Indicator
How can I reduce the number of thumbnails?
For example, when we use 2~3 thumbnails, we can store 120k~180k posts.
Well, are there any other hosting services which can store more than 300k files?
Sure, it is possible. There are several plugins in the WP repository that will automatically push uploads to S3 or some other CDN (e.g. WP Offload S3 Lite).
But the biggest challenge you'll face is in migrating the huge collection of images you already have. Anything you run from a web browser will almost certainly die trying. WP-CLI is the only real option for large-scale maintenance tasks. Take a look at S3-Uploads.
Alternatively you could push files to S3 manually and dynamically rewrite media URLs in WordPress by hooking into post_thumbnail_html or some such. You could build a cachable "does this exist?" check into your filter so it only rewrites image URLs that can actually be found at Amazon.
empty your trash folder in File Manager and file usage will drop significantly.
I've had to migrate many Wordpress web sites from different domains on the same server to different domains on different servers. In few cases, a simple export was sufficient. In many cases, an import failed to load the media correctly and I was forced to use a common work around.
Workaround (for those wondering):
I download from the original site and upload to the new site the uploads folder where my media is stored via FTP. Once this transfer is complete, I use the plugin Add From Server to select each individual image, one directory at a time.
This is the best workaround I've found, but it's hardly efficient. It's incredibly time consuming and stressful on your bandwidth.
If you have any better suggestions, I'm all ears. But primarily, I want to know the "Why" to this question. What causes Wordpress to have such a hard time managing media migration while migrating posts, pages, and users are much less of a headache?
There is an excellent tool that certainly eases Wordpress migration WordPress (and others) Search and Replace Tool. With that tool it's easy to search through the entire database for all occurrences of old domain, and replace that with the name of new domain. After replacement all the pictures and widgets should work properly.
The way I'm moving WordPress:
export and import the database with phpMyAdmin
transfer the files with FTP program like FileZilla
edit the wp-config.php settings for a new domain
search and replace on the database with InterconnectIT Search and
Replace Tool
I want to develop a website using Drupal that can be accessed on mobiles. Can I do that?
I found a page on google full of useful links
An overview of Mobile modules for Drupal
http://mobiledrupal.com/content/overview-mobile-modules-drupal
Then theres the mobile theme and modules
http://drupal.org/project/mobile_theme
Adds the ability to choose a mobile theme in admin/build/themes/settings which is used for serving users on mobile devices.
http://drupal.org/project/browscap
The Browscap module provides a replacement for PHP's get_browser() function. get_browser() is difficult (or impossible) to configure for most users in shared webhosting situations, and requires attention to keep the underlying data (browscap.ini) up-to-date. This module avoids the configuration issue by storing the data in a database table, and the freshness issue by automatically retrieving the latest data on a weekly basis (if cron.php is run regularly).
Yes, sure. Drupal allows you full control on the HTML generated, so you just need to create a theme that is optimized for mobile users. You may be able to find some themes that already have support for this, you should search.