Upload files in drupal to be indexed in solr - drupal

Are there any modules that let you upload files which will then get indexed by Apache solr. I have used the attachment module that sits on top of the solr integration module. But this involves the creation of basic pages and/ articles then having a file upload widget to upload files to them which then gets indexed and is searchable.
But i do not want to create pages to upload my files.This is the requirement.
my stack is apache solr 3.2 , drupal 7 solr integration module and solr attachment module(which i am not happy with for the above reason !)

This is unavailable so far. There are modules in drupal like file-entity which le t you upload files so do the core drupal module but they never get indexed by the apache solr attachments module.
I would like to be stand corrected.

Related

Drupal 7 used s3fs modules to storage images, now how to use aws cloudfront CDN for my website?

My website is built using Drupal 7 and uses s3fs modules for storing all files and images, I use i18n to translate my website from source language English to french, german, and more. I use domain as multi domain was working well
I want to use the CDN module to speed my website, so I try to use AWS CloudFront service for it. However, I am confused as to how to do it.
Because the s3fs module makes images use aws s3 store to server images files, and how to use aws CloudFront to server all websites files through CDN?
You can create a CloudFront distribution for your S3 bucket, that's going to be unrelated of how you upload your files in the S3 bucket itself.
After that you can install the CDN module, to use the distribution of your S3.
From this tutorial of AWS:
There is one module, not included in the Core Package that I would
consider. This is the CDN Module, produced by Wim Leers. It has been
actively developed since its initial release in 2008 and has been
re-written for Drupal 8. This module changes file URLs so that CSS,
JavaScript, images, audio, and videos can be cached within CloudFront
more easily. It also changes the URL when a file is changed by a user
in Drupal. This allows the content to be cached early, without having
to think about expiring content from the cache. To enable the module,
go your Drupal Administration site, and click the Extend Tab. From
there, click the blue button for “+ install new module.” I looked up
the latest version supporting Drupal 8, and provided the URL to the
.tar.gz file. In my case, this was
https://ftp.drupal.org/files/projects/cdn-8.x-3.2.tar.gz.
Also remember that you would need to invalidate the cache if you change the underlying content of a file in S3. Eg. update a file content but the filename is the same.

Need help to live WordPress website without database

I have downloaded all files & folders from c-panel root directory but somehow I have deleted/lost the database from my end. So is there any way to get all content from my backup or am I able to live back my website without the database as well?
No, It is not possible to run WordPress without the database.
What's more:
The only database supported by WordPress is MySQL version 5.0.15 or greater, or any version of MariaDB.
Why it is not possible?
Because as You can read in WordPress Documentation, It is using the database
for storing and retrieving the content of your blog, such as posts, comments, and so on.
https://codex.wordpress.org/Database_Description
Basing on that you downloaded files I think You will be able to restore only parts of your website on new installation.

How do I keep WP db content synchronized in the filesystem?

I'm looking for an easy way to sync content that is in the Wordpress DB with the file system. Pages and Posts mostly, but any additional content would be great. I'm not looking to cover 100% of the DB content, just the most used configurations.
This is the Wordpress workflow I'm looking for:
Create a file in the filesystem, ie. /repo/posts/mypost.yml
Run a Wordpress command-line, ie. wp sync, which checks for sync status between my filesystem /repo/ and the content in the database.
Differing content from the db is exported and from the filesystem imported.
In case of conflict (double changes in both), ask for merge or whatever.
This is very common with the newer, file-based, CMSs, like Grav, Kirby, Jekyll, etc. but unfortunately, for many reasons, we're stuck with Wordpress.
That way we can use git and edit and version content in a much more robust way.
WordPress already has built-in version control in the database, called revisions. If you use different user accounts, WordPress will even lock pages that are being edited, preventing collisions.
Additionally, you can export the database to an .sql file and store it in your custom theme directory which you should manage with git. You only need to version control your custom theme directory, because all non-custom WordPress files already have version control. However, you can export the database every now and then to keep your git repository complete. Additionally you should ask your hosting provider to create daily backups.
This will give you full version control on everything (git for the theme and WordPress for the content). Developers will be able to take the git repository and rebuild the installation locally, to change the theme. Content can be edited remote in WP, with WP versioning and daily back-ups for security reasons.
Note that exporting your database to an sql file can be done by using a database manager like PHPmyAdmin or Adminer and using the export functionality or by using a WordPress plugin.

Drupal: After installing the video module and successful set the Amazon S3 keys, how do I embed my already uploaded videos?

I have the video module installed, with all its submodules on my Drupal 6.x site.
I have an Amazon S3 account where I have several videos already uploaded.
Those videos are private, and they were uploaded with server side encryption provided by amazon. The link to the videos starts with https://...
I´ve configured the video filesystem at Drupal, to use Amazon S3. I´ve set the bucket and the keys. In fact, after saving the config, the system recognizes my already uploaded files.
Now, my big question is... how do I "paste" my already uploaded videos inside a specific (private) node??
The module allows me to upload a new video or select one of the already uploaded ones inside my drupal installation. How do I search inside all my buckets?
Thanks!
Rosamunda

drupal on cpanel

Is drupal good for building an online store?
How do I install drupal on cpanel? I don't want to use the automatic installation on cpanel, since I heard it is less customizable.
Thanks
Drupal has excellent modules for building an online store.
Use cPanel to setup FTP or SSH access, then you'll be able to upload the Drupal tar ball - detailed instructions for installing Drupal here.
Some modules for creating an online store in Drupal:
Ubercart
Commerce
They each have dependencies, that is, modules that are required in order for them to run. They are two different approaches to creating a store in Drupal, so you'd use one or the other. Make sure you read the project descriptions listed to see which fulfil your needs the best.
Drupal is indeed known as one of the most robust CMS. It is not as used as WordPress with WooCommerce installed but it is still a pretty solid choice. I personally would recommend PrestaShop
You can easily install Drupal if your hosting provider offers Softaculous in your cPanel as well
Otherwise you need to do the following:
Download Drupal from their site
Upload the archive to your cPanel account, in the Directory Root for your domain
Extract the archive from within your cPanel's File Manager
Create a MySQL User and Database, assign the User to the Database (done through MySQL Wizard)
Proceed with the installation by visiting your website
To install Drupal 8 on cPanel not using Softaculous:
Use the "MySQL Database Wizard" to create a new database
Give the database a name & create a user with all privileges
Download the .zip/.gzip file for the latest Drupal 8 package
Upload the file & unpack (Using File Manger in cPanel) to the root folder for the domain name
Change the name on the settings.php file in the sites/default folder
Run the Drupal 8 installation script from the domain root, entering the DB information
Make sure to keep the Drupal CMS & contributed modules up to date with the latest security versions in production.

Resources