PHP

Defaulting PHP safe_mode to off in Plesk

When creating a domain in Plesk, PHP safe_mode is enabled by default. To change the default behavor do the following as the admin:

Adding Custom Fields to Ubercart Checkout

I had to add the SKU to the checkout of Ubercart, to do that, I had to do the following:

Removing Fields from Webform Confirmation Email

Scenario
Client wants to have Webform send out a confirmation email to the user who fills out a form.

Upgrading PHP on Red Hat EL

By default, Red Hat EL has an out dated version of PHP. To get a newer version of PHP on the system issue the following commands:
# wget http://www.atomicorp.com/installers/atomic.sh
# sh atomic.sh
# yum upgrade php

Plesk open_basedir

PHP's open_basedir limits a script's ability to open files to specified directories.  This setting can only be modified within an httpd.conf file or in the php.ini.
When specifying more than one directory to be accessible by php scripts, use a semicolon for Windows, and a colon for all other systems. It's also important to note that directories within the open_basedir are actually prefixes and not a directory name. For example:
 

Modx 0.9.6.3 and PHP 5.3

PHP 5.3 has introduced a new error level that reports deprecated functions. On line 13 of the config file use this line instead:
error_reporting(E_ALL & ~E_NOTICE & ~E_DEPRECATED)
In the file: manager/includes/document.parser.class.php You will need to modify line 2502 from:
if (error_reporting() == 0 || $nr == 0 || ($nr == 8 && $this->stopOnNotice == false)) {
to

Syndicate content