GoDaddy vs. WordPress: The Windows Hosting Fiasco
Edit:
So I received a rather nice communication from Mario G. of GotMVC.Com who has apparently gotten WordPress v2.5.1 to work on his Windows Deluxe hosting account. After viewing his PHPInfo results he is running PHP version 5.2.5 on Windows IIS7. As far as I know, no existing account has the IIS7 option, so only new accounts have this option, but this is a pretty good sign that GoDaddy is finally moving in the right direction with their servers and software support.
Additionally, the GoDaddy Hosting blog posted this on the 16th of June further proving their support of PHP5 and IIS 7 but only on newly opened accounts. Sounds like all of us PHP 4, IIS 6 users need to get on the phone with GoDaddy. I know I will.
Original Post:
So time and time again I see people wanting to adapt the famous WordPress blogging system to their GoDaddy hosting account, with no success. Now, if you happen to have the Linux hosting package, then you are probably thinking, ‘what are you talking about?’. Well for those of you who do happen to have their sites cozied up with the Linux package, then aside from a lack of support for certain features such as post-by-email you don’t have much to worry about. There are however hundreds, if not thousands, of people who have Windows hosting packages for various reasons such as the utilization of the .Net framework. For those of us who do rely on the Windows hosting, there is no support for PHP anymore, yet as you will find PHP pages will still run to a limited extent.
What I have come to find through my extensive research is that there is still some form of PHP support available on most every Windows server in GoDaddy’s extensive nature from what appears to be left behind from previous offerings and attempts. There are however many restrictions in place that restrict WordPress from running correctly without extreme modification to the source files. I was able to run a PHP page which output the of so wonderful ‘phpinfo()’ function. Just to give you an idea of what we are working with here is a list of the disabled functions. Bear with me, it is pretty long:
getmyinode, getopt, getrusage, extension_loaded, dl, mysql_pconnect, crack_check, crack_closedict, crack_getlastmessage, crack_opendict, fsockopen, pfsockopen, mysql_list_dbs, mysql_stat, ini_get, ini_get_all, ini_alter, ini_set, get_current_user, get_defined_constants, get_include_path, php_ini_scanned_files, php_uname, phpcredits, restore_include_path, set_include_path, set_time_limit, version_compare, zend_version, getmypid, getmyuid, getmygid, assert_options, assert, fopen, fwrite, fread, file, fpassthru, file, mail, opendir, readdir, closedir
Now, what you will find here is that a majority of the functions required to go through the WordPress installation routine, or even access your WordPress blog are disabled. Without ‘fopen()’ or ‘fwrite()’ WordPress is unable to create your custom ‘wp-config.php’ file. Without ‘ini_get()’ or ‘ini_set()’ WordPress is again unable to continue on past many of the functions. The biggest problem however that I am sure many of you are more than familiar with is the error that results when you try to connect to your MySQL database.
The problem here is that the version of PHP in place on these servers (in most cases 4.3.11) requires an updated connector to interface with MySQL 4.0 and especially MySQL 5.0 databases. The work-around here would be to convert the entire WordPress system to use the ODBC connector version 3.5.1. I have had success getting WordPress to connect to the database after modifying it to use the ODBC connector however you will find that WordPress will never populate your database with the schema it needs. This is because the ’schema.php’ file which stores the SQL to create the database cannot execute properly without all of the variables and environment information discovered in the other files that handle the WordPress installation process.
Because of this problem, unless the entire system is converted to work around all of the disabled functions and MySQL connector reliance you would have an easier time converting your entire site to PHP and using a Linux server than converting the entire WordPress installation to a GoDaddy Windows server friendly software set. Hopefully this post will serve to save some other the frustration and anger that can easily come about when you see a PHP page work on your Windows server but can’t ever seem to get WordPress actually running.
Thank you,
Geoff Kauten
www.KautenEffects.com