How to install PHP 5.6 on CentOS 6.10

Published on Author JFLeave a comment

I just did a fresh install of CentOS 6.10 today and needed to install PHP. It had been a while, so I needed a refresher. Note: PHP 5.6 is pretty much End Of Life, so you should be installing PHP 7.2, or higher at this point in time. That said, sometimes you have to support… Continue reading How to install PHP 5.6 on CentOS 6.10

How to install Apache and PHP 7.2 on Windows Subsystem for Linux

Published on Author JFLeave a comment

There are a few tips and tricks I found for this installation. Here are the details. Check Windows Version First, here’s the entire Microsoft section on WSL. I highly recommend reading through it. There are various differences between the latest Windows 10 updates, so this might not work for your version! I’m on Windows 10… Continue reading How to install Apache and PHP 7.2 on Windows Subsystem for Linux

How to install PHP Manager in IIS 10 or higher

Published on Author JFLeave a comment

PHP Manager is a useful tool for configuring PHP in IIS. It is no longer supported, however, and a Registry trick is required to install it. Overview PHP Manager allows you to configure multiple versions of PHP for multiple VHosts on an IIS server. While it adds some overhead to the configuration, it can be… Continue reading How to install PHP Manager in IIS 10 or higher

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

Accessing MSSQL from Linux using PHP MSSQL_CONNECT

Published on Author JFLeave a comment

MSSQL_CONNECT and MSSQL in PHP on Linux You’ve yum installed php-mssql and you’re still tearing your hair out because you can’t connect to MSSQL from Linux. In this case it’s CentOS 6.7 with PHP 5.6.23 and Apache 2.2.15. You’re using mssql_connect in a basic test script like this one: <?php #################################### # PHP error handling for… Continue reading Accessing MSSQL from Linux using PHP MSSQL_CONNECT

Simple PHP SPAM tracking and logging tip

Published on Author JFLeave a comment

This one’s easy. Place this in your php.ini (don’t forget to restart, if needed). mail.add_x_header = On mail.log = /var/log/phpmail.log You can change the log file location, of course. Note that mail.add_x_header  will add the script file to the email header allowing someone to see which file generated the email. This may be a security… Continue reading Simple PHP SPAM tracking and logging tip

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