Skip to main content

env: php: No such file or directory

In terminal I ran a regular command - compose update.  Something I've completed thousands of times previously.  However, this time I received the following response:

env: php: No such file or directory

 

Nginx: 413 – Request Entity Too Large Error and Solution

Working in Drupal 9.x, I was loading images via the Media module.  Below 1 mb no issue.  Any thing over - nothing.  Nothing as in no response when loading.

An interesting situation, as I had already changed the php.ini file where the following updates occured:

; Maximum allowed size for uploaded files.
; http://php.net/upload-max-filesize
upload_max_filesize = 2M

Had changed to 

Percentage encoding

You would have come across a URL string that appears as

https://example.com/project-search?search_api_fulltext=&f%5B0%5D=species%3AAtlantic%20Salmon

As you would already seen %20 many times, that is a space.  Commonly seen in file names either documents or images.

However, what about the others.  Off the top do you know what %3D is?  Maybe, but I didn't.  Below is a quick guide to percentage encoding table:

How to switch users in Ubuntu and other Linux

It is really simple to switch users in Ubuntu or any other Linux distribution using the terminal, iTerm2 or your go to shell program.

All you need to do is to know the username and its account password and you can switch users with su command:

su another_username

You’ll be asked to enter the password of the user you want to switch to.

 

How to create a date range widget?

Steps to get the Solr date range widget working.

 

Steps

Enable the Facets Range Widget sub-module.

Install the jQuery-ui-Slider-Pips library, as described in the README.txt file in that sub-module's folder.  After playing with this for sometime to get it working, I found the best way to install is via composer.

Unknown collation: ‘utf8mb4_0900_ai_ci' Error

Working on an Azure server I ran a mysqldump command to generate a copy of the db.  No issues, the file downloaded on to the serve without cause.

 

The Problem

On my local environment, using Sequel Ace I imported the file, but it suddenly it stopped with a red message “Unknown collation: ‘utf8mb4_0900_ai_ci‘”

How to create SOLR cores on Azure hosted SOLR service?

We are going to work through two methods of creating the SOLR cores.

Variables for reference used in this article:

{ip_address} - your server IP Address

{name} - name of the instance you are creating

{dir} - name of the instance directory you are creating

 

How to remove all files from a directory?

To remove all the contents from a directory, you need to ask yourself:

Do I want to remove everything including the directory itself?

To remove a directory with all its contents (including all interior folders):

rm -rf /path/to/directory
Do I want to keep the directory, but delete everything else?

Need to remove all the contents of the directory (including all interior directories) but not the directory itself:

Subscribe to php