Tell me more ×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.

Thank you in advance for answering... Have read other Stakeoverflow post but still not able to resolve the issue

Objective: deploy wordpress 3.5.1 following GAE PHP tutorial. Have successfully completed PHP helloworld tutorial.

Error Encountered: loading localhost:8080 display message "Your PHP installation appears to be missing the MySQL extension which is required by WordPress"

Requesting Support On: 1.Was wondering how to resolve this issue? Any recommendations on possible debug path? 2.How does the php.ini file in the APPLICATION_DIRECTORY different from the php.ini file created in the PHP.exe root folder? (BTW from experimentation if not create php.ini in php.exe root folder, then phpinfo() will not show loaded configuration file)

Debug Results: Followed GAE tutorial carefully and created the php.ini ( w/ the one line "google_app_engine.enable_functions = "php_sapi_name, gc_enabled")

3 test have confirmed PHP mysql extension enabled and installed via php.ini residing in php.exe root folder 1)phpinfo() 2)php.exe -m 3) Running the attach script "test connection to mysql local" confirms able to write to the wordpress_db with GAE

Identified the error message "Your PHP installation appears to be missing the MySQL extension which is required by WordPress" is coming from Wordpress wp-load.php file funtion "wp_check_php_mysql_versions();" which originates from wordpress\wp-includes\load.php

function wp_check_php_mysql_versions() {
global $required_php_version, $wp_version;
$php_version = phpversion();
if ( version_compare( $required_php_version, $php_version, '>' ) ) {
    wp_load_translations_early();
    die( sprintf( __( 'Your server is running PHP version %1$s but WordPress     %2$s requires at least %3$s.' ), $php_version, $wp_version, $required_php_version ) );
}

if ( ! extension_loaded( 'mysql' ) && ! file_exists( WP_CONTENT_DIR . '/db.php' ) )     {
    wp_load_translations_early();
    die( __( 'Your PHP installation appears to be missing the MySQL extension     which is required by WordPress.' ) );
    }
}
share|improve this question
are you running apache ? do you have the php modules loading in apache ? LoadModule php5_module "whatever.dll" – rreeves May 23 at 22:39
Issue resolved. Thank you rreeves for the comment... What developers.google.com/appengine/articles/wordpress documentation is missing the following... Copy php.ini file from php.exe into your APPLICATION_DIRECTORY and add in the line google_app_engine.enable_functions = "php_sapi_name, gc_enabled" plus enable mysql extensions in the ini file – user2415495 May 23 at 23:22

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.