Drupal PDOException: SQLSTATE[HY000] [1045] Access denied for user

Published on Author JFLeave a comment

You might get this error and you’ve lost your mind trying to understand why you updated the password, logged into MySQL successfully from the command line, but still can’t get Drupal to talk to the db? PDOException: SQLSTATE[HY000] [1045] Access denied for user ‘drupal_user’@’127.0.0.1’ (using password: YES) in lock_may_be_available() (line 167 of /var/www/html/website.com/includes/lock.inc). The clue is probably right here beneath your… Continue reading Drupal PDOException: SQLSTATE[HY000] [1045] Access denied for user

Apache 2.4 Config for Drupal 7

Published on Author JFLeave a comment

Here are some configs to hopefully make your life easier setting up a brand new server. Specs: Ubuntu 16 Xenial LTS Apache 2.4.18 PHP 5.6.3 After default Apache install make sure to add these modules a2enmod rewrite a2enmod headers Host Conf file DocumentRoot “/var/www/sitename/siteroot” ServerName www.yoursitename.com <Directory “/var/www/sitename/siteroot”> allow from all [allows .htaccess to be used]… Continue reading Apache 2.4 Config for Drupal 7

Fatal error: Allowed memory size of +Drupal

Published on Author JFLeave a comment

This post is not about adding memory in php.ini or .htaccess or settings.php in Drupal. You might be getting the Fatal Error because of URL redirects causing infinite loops induced by running database update scripts! But, here’s the skinny on adding more memory accessible by Drupal. This will depend on your hosting provider and how much… Continue reading Fatal error: Allowed memory size of +Drupal