PHP Upgrade error (Undefined variable: newHttpdContents)
Posted by: daves_nt_here (---.mckittricks.org)
Date: April 17, 2013 01:17AM

Ive installed Wampserver (64 bits & PHP 5.3) 2.2E with PHP 5.3.13 and am trying to upgrade it to 5.3.24
I've followed and double checked these install notes:
[forum.wampserver.com]

But when I try to switch to the new version of PHP I'm getting this in my php_error.log

[16-Apr-2013 23:08:44 UTC] PHP Notice: Undefined variable: newHttpdContents in C:\wamp\scripts\wampserver.lib.php on line 107
[16-Apr-2013 23:08:44 UTC] PHP Stack trace:
[16-Apr-2013 23:08:44 UTC] PHP 1. {main}() C:\wamp\scripts\switchPhpVersion.php:0
[16-Apr-2013 23:08:44 UTC] PHP 2. switchPhpVersion() C:\wamp\scripts\switchPhpVersion.php:8

Did I miss something?
I used the 5.3.24 VC9 x86 Thread Safe : [windows.php.net]

Options: ReplyQuote
Re: PHP Upgrade error (Undefined variable: newHttpdContents)
Posted by: RiggsFolly (---.as13285.net)
Date: April 17, 2013 10:10AM

At a guess you forgot to create the phpForApache.ini file in the new php folder

just copy the php.ini into a file called phpForApache.ini.

Options: ReplyQuote
Re: PHP Upgrade error (Undefined variable: newHttpdContents)
Posted by: daves_nt_here (---.mckittricks.org)
Date: April 17, 2013 08:00PM

Nope, got that in their.

I've been going over the various config files and think I might have found some missing files????

In the wampserver.conf it shows:

$phpConf['apache']['1.3']['LoadModuleName'] = 'php5_module';
$phpConf['apache']['1.3']['LoadModuleFile'] = 'php5apache.dll';
$phpConf['apache']['1.3']['AddModule'] = 'mod_php5.c';

$phpConf['apache']['2.0']['LoadModuleName'] = 'php5_module';
$phpConf['apache']['2.0']['LoadModuleFile'] = 'php5apache2.dll';
$phpConf['apache']['2.0']['AddModule'] = '';

$phpConf['apache']['2.2']['LoadModuleName'] = 'php5_module';
$phpConf['apache']['2.2']['LoadModuleFile'] = 'php5apache2_2.dll';
$phpConf['apache']['2.2']['AddModule'] = '';

$phpConf['apache']['2.4']['LoadModuleName'] = 'php5_module';
$phpConf['apache']['2.4']['LoadModuleFile'] = 'php5apache2_4.dll';
$phpConf['apache']['2.4']['AddModule'] = '';

But in the new PHP directory "php5.3.24" I only have these php5 dll's:

php5apache2_2.dll
php5apache2_2_filter.dll
php5apache2_4.dll
php5embed.lib
php5nsapi.dll
php5ts.dll

From the conf list, I seem to be missing:

php5apache.dll
php5apache2_2.dll



Edited 1 time(s). Last edit at 04/18/2013 04:01AM by daves_nt_here.

Options: ReplyQuote
Re: PHP Upgrade error (Undefined variable: newHttpdContents)
Posted by: daves_nt_here (---.mckittricks.org)
Date: April 18, 2013 04:04AM

Humm, that can't be it. Just checked my old php5.3.13 directory and it doesn't have those files either.
Back to scratching my head.

Options: ReplyQuote
Re: PHP Upgrade error (Undefined variable: newHttpdContents)
Posted by: RiggsFolly (---.as13285.net)
Date: April 18, 2013 11:42AM

That section of code that throws the error is processing the httpd.conf file in order to change the
LoadModule php5_module "d:/wamp/bin/php/php5.3.22/php5apache2_2.dll"

so that its loading the correct php interpreter for the version of php you are trying to switch to.

Does your new php install have the wampserver.conf file in it? If not copy one from another php version folder

Options: ReplyQuote


Sorry, only registered users may post in this forum.