I ran into an issue implementing reCaptcha on my website, after making several updates and changes to my architecture. The problem was the reCaptcha was always failing, even after every successful submission. In order to figure out the problem, I put the following code in the submit method of the Drupal7Post class.
Note: This technique also works for other versions, just change the version number. For example, if you want to to install PHP5.6 or PHP7.3. Just change the version number wherever it appears, such as php56-apache2handler or php73-mysql.
Changing the file permissions of only the directories, or only the files, under a directory can be a cumbersome task if you have taken the approach to manually look for only the directories and set file permissions individually. Thankfully, the following commands will find the directories and files respectfully under the sites/default/files/ directory, and change them to the most common file permissions for public files on a web server. To change all the directories to 755 (drwxr-xr-x):
I received this error when I tried to reinstall Drupal. I was creating a feature to include on other sites, and wanted to make sure everything worked on a clean install. The problem was caused by the following line in my settings.php file, which I added for the Domain Access module:
include './sites/all/modules/contrib/domain/settings.inc';
Commenting out that line allowed Drupal to install successfully.