Modx 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)) {


Retrieving Plesk FTP Users Names and Passwords for Specific Domain

The following query will retrieve the sub-domain name, ftp username, and ftp password for a specific domain.

SELECT CONCAT(CONCAT(, '.'), AS subdomain, u.login, a.password FROM subdomains AS s
JOIN domains AS d ON
JOIN sys_users AS u ON
JOIN accounts AS a ON

If you want to see all subdomains, then omit the WHERE clause.

Installing Architecture Specific Packages for Red Hat Fedora and EL

When running the yum command to install packages, sometimes you will get a mixture of x86_64 and i386 packages. Depending on what you want to install you may need both architectures and sometimes you don't. If you only need a specific architecture then you can specify it by:

# yum install ImageMagick.x86_64

Recovering Plesk Admin Password

In the highly unlikely event that you ever, for whatever reason forget your password to log into Plesk, one way of recovering the password is by loging into the server via SSH.

In order to view the contents of the file that contains the admin password you will need to be able to acquire root. Once root, you just simplely need to look at the /etc/psa/.psa.shadow file.

# cat /etc/psa/.psa.shadow

Magento Migration

One of the things I do at my job is launch websites. We use three different content management systems. One of them being Magento for the clients that just want a ecommerce site. When I launched a Magento site for the first time I found that it was a little more involved than exporting the database using PHPMyAdmin, copying the files, and re-importing the database.

Red Hat / Fedora Run Levels

Red Hat / Fedora run level configuration differs from Gentoo when it comes to configuring daemons to start on boot. In Gentoo, after installing a daemon such as apache: # rc-update add apache2 default The above we are adding apache to the default run level which is usually run level 5 The run levels are as followed:
Run Level Description
1 Single User
2 Multi-user
3 Multi-user with Networking