#32542 [Opn]: PHP5.0.4 can't work fine as a cgi binary
ID: 32542 User updated by: cpthk at hotmail dot com Reported By: cpthk at hotmail dot com Status: Open Bug Type: MySQLi related Operating System: Windows XP PHP Version: 5.0.4 New Comment: My software versions are: Apache 2.0.53 php 5.0.4 mysql 5.0.3 phpmyadmin 2.6.2 beat1 All of them are the newest. Previous Comments: [2005-04-03 11:06:02] cpthk at hotmail dot com I install apache first then unzip php to c:\php. And I unzip mysql to c:\mysql and start the mysqladmin.exe up. And than I change the setting of apache's config file(httpd.conf), I add three more lines: ScriptAlias /php/ "c:/php/" AddType application/x-httpd-php .php Action application/x-httpd-php "/php/php-cgi.exe" Then I edit php.ini file: extension=php_mysqli.dll extension_dir = "C:/php/ext" Then I restart apache. And I unzip phpmyadmin to the apache htdocs folder. I changed the phpmyadmin config file(config.inc.php): $cfg['Servers'][$i]['extension'] = 'mysqli'; $cfg['Servers'][$i]['auth_type'] = 'http'; Then I open the browser to login the phpmyadmin. Type the user name and password, and it keep saying the username or password is wrong. I'm sure the username and password is right. If I change the apache config file(httpd.conf): LoadModule php5_module "c:/php/php5apache2.dll" Add Type application/x-httpd-php .php PHPIniDie "c:/php" Then restart apache, everything works fine. I can login phpmyadmin normally. I think there are some bugs in the php-cgi.exe file. It can't get the right username and password information from me. I can only login with phmyadmin setting: $cfg['Servers'][$i]['auth_type'] = 'config'; But not the http mode. But if I load php as a apache module, I can login both config and http modes. [2005-04-02 23:49:11] [EMAIL PROTECTED] Not enough information was provided for us to be able to handle this bug. Please re-read the instructions at http://bugs.php.net/how-to-report.php If you can provide more information, feel free to add it to this bug and change the status back to "Open". Thank you for your interest in PHP. [2005-04-02 12:04:55] cpthk at hotmail dot com Description: When I set php as a apache module like this: LoadModule php5_module "c:/php/php5apache2.dll" Add Type application/x-httpd-php .php PHPIniDie "c:/php" It works fine with phpmyadmin both "config" and "http" login mode. But when I set php as a CGI binary like this: ScriptAlias /php/ "c:/php/" AddType application/x-httpd-php .php Action application/x-httpd-php "/php/php-cgi.exe" It still works fine with phpmyadmin in "config" login mode, but not in "http" mode. Login mode can be set in phpmyadmin config file(config.inc.php). My php of mysql extension is using the mysqli.dll. I'm sure every setting of php is fine. -- Edit this bug report at http://bugs.php.net/?id=32542&edit=1
#32542 [Fbk->Opn]: PHP5.0.4 can't work fine as a cgi binary
ID: 32542 User updated by: cpthk at hotmail dot com Reported By: cpthk at hotmail dot com -Status: Feedback +Status: Open Bug Type: MySQLi related Operating System: Windows XP PHP Version: 5.0.4 New Comment: I install apache first then unzip php to c:\php. And I unzip mysql to c:\mysql and start the mysqladmin.exe up. And than I change the setting of apache's config file(httpd.conf), I add three more lines: ScriptAlias /php/ "c:/php/" AddType application/x-httpd-php .php Action application/x-httpd-php "/php/php-cgi.exe" Then I edit php.ini file: extension=php_mysqli.dll extension_dir = "C:/php/ext" Then I restart apache. And I unzip phpmyadmin to the apache htdocs folder. I changed the phpmyadmin config file(config.inc.php): $cfg['Servers'][$i]['extension'] = 'mysqli'; $cfg['Servers'][$i]['auth_type'] = 'http'; Then I open the browser to login the phpmyadmin. Type the user name and password, and it keep saying the username or password is wrong. I'm sure the username and password is right. If I change the apache config file(httpd.conf): LoadModule php5_module "c:/php/php5apache2.dll" Add Type application/x-httpd-php .php PHPIniDie "c:/php" Then restart apache, everything works fine. I can login phpmyadmin normally. I think there are some bugs in the php-cgi.exe file. It can't get the right username and password information from me. I can only login with phmyadmin setting: $cfg['Servers'][$i]['auth_type'] = 'config'; But not the http mode. But if I load php as a apache module, I can login both config and http modes. Previous Comments: [2005-04-02 23:49:11] [EMAIL PROTECTED] Not enough information was provided for us to be able to handle this bug. Please re-read the instructions at http://bugs.php.net/how-to-report.php If you can provide more information, feel free to add it to this bug and change the status back to "Open". Thank you for your interest in PHP. [2005-04-02 12:04:55] cpthk at hotmail dot com Description: When I set php as a apache module like this: LoadModule php5_module "c:/php/php5apache2.dll" Add Type application/x-httpd-php .php PHPIniDie "c:/php" It works fine with phpmyadmin both "config" and "http" login mode. But when I set php as a CGI binary like this: ScriptAlias /php/ "c:/php/" AddType application/x-httpd-php .php Action application/x-httpd-php "/php/php-cgi.exe" It still works fine with phpmyadmin in "config" login mode, but not in "http" mode. Login mode can be set in phpmyadmin config file(config.inc.php). My php of mysql extension is using the mysqli.dll. I'm sure every setting of php is fine. -- Edit this bug report at http://bugs.php.net/?id=32542&edit=1
#32542 [NEW]: PHP5.0.4 can't work fine as a cgi binary
From: cpthk at hotmail dot com Operating system: Windows XP PHP version: 5.0.4 PHP Bug Type: MySQLi related Bug description: PHP5.0.4 can't work fine as a cgi binary Description: When I set php as a apache module like this: LoadModule php5_module "c:/php/php5apache2.dll" Add Type application/x-httpd-php .php PHPIniDie "c:/php" It works fine with phpmyadmin both "config" and "http" login mode. But when I set php as a CGI binary like this: ScriptAlias /php/ "c:/php/" AddType application/x-httpd-php .php Action application/x-httpd-php "/php/php-cgi.exe" It still works fine with phpmyadmin in "config" login mode, but not in "http" mode. Login mode can be set in phpmyadmin config file(config.inc.php). My php of mysql extension is using the mysqli.dll. I'm sure every setting of php is fine. -- Edit bug report at http://bugs.php.net/?id=32542&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=32542&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=32542&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=32542&r=trysnapshot51 Fixed in CVS:http://bugs.php.net/fix.php?id=32542&r=fixedcvs Fixed in release:http://bugs.php.net/fix.php?id=32542&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=32542&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=32542&r=needscript Try newer version: http://bugs.php.net/fix.php?id=32542&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=32542&r=support Expected behavior: http://bugs.php.net/fix.php?id=32542&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=32542&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=32542&r=submittedtwice register_globals:http://bugs.php.net/fix.php?id=32542&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=32542&r=php3 Daylight Savings:http://bugs.php.net/fix.php?id=32542&r=dst IIS Stability: http://bugs.php.net/fix.php?id=32542&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=32542&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=32542&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=32542&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=32542&r=mysqlcfg