Tag: WordPress

  • Support for .vcf files in WordPress

    Our developers created a website that had vCard files for each staff member. The problem was that when people clicked on them, rather than downloading them, some web browsers displayed the content of the file. Ended up that apache did not know how to handle “.vcf” files. The change below is now part of my standard…

  • Comparing master and slave MySQL WordPress DBs

    My VPS host – Rackspace contacted me the other day to tell me that my host server became unresponsive. After it came back online I went to my MySQL replicated slave to check the status. The /var/log/mysqld.log said: Error reading packet from server: Client requested master to start replication from impossible position This article siad…

  • WordPress 3.2 requirements and CentOS 5.6

    Current requirements PHP version 4.3 or greater MySQL version 4.1.2 or greater WordPress 3.2 requirements: PHP version 5.2.4 or greater MySQL version 5.0 or greater. Default PHP on Cent0S 5.6 = PHP 5.1.6. CRAP Updated: See this post on how to install an updated PHP on CentOS 5.6

  • WordPress TwentyTen Custom Header setting in the db

    When we move a WordPress site from development to production we update the URL in the following db values: in the GUID value of each post in wp_posts in the wp_options table, the option_name of home in wp_options, the option_name of siteurl In a recent move, we found that the custom header in the TwentyTen theme was not…

  • MySQL replication of WordPress dbs over ssh

    I wanted to setup MySQL replication over ssh for a small WordPress database. I have a VM that lives in my house, I wanted to be able to bring it up, make it current, disconnect, and then hack away. Here is my proceedure. On the master: Setup the replication user (I had to use 127.0.0.1…

  • My “Copy WordPress site to local” script

    I wanted to write a script that would copy a WordPress site to the local machine from a remote server (securely over ssh). This would allow me to set up a test environment or backup. First I need to make sure the site exists on the source server. Then I want to get the current…

  • Check if a file exists on a remote server

    I was working on a copy WordPress site to a local machine script, and I wanted to check if the remote path was a WordPress site. Here is the code I used.

  • Finding diffs between clean and modified versions of WordPress

    We have an issue where our developers try to update the core WordPress files. I wanted to find a way to keep them honest. here is my script:

  • My current WordPress Update Script

    Below is my current WordPress update script. First this script downloads the most recent version and determines which version it is: Next it looks for all wp-config.php files in all the websites to identify which sites have WordPress installed. Then and finds the version from the versions.php script. If the version is not equal to…