Ik heb Apache 2, PHP 5, Mysql 4.1.7 en Phpmyadmin 2.6.0 op WindowsXP draaien.
Apache en php draaien goed. Ik vermoed dat Mysql ook werkt, allezinds dit werkt toch.
Maar als ik dan Phpmyadmin wil inloggen, krijg ik op de index.php volgende error:
Warning: Cannot modify header information - headers already sent by (output started at C:\Program Files\Apache Group\Apache2\htdocs\db\config.inc.php:828) in C:\Program Files\Apache Group\Apache2\htdocs\db\libraries\select_theme.lib.php on line 92
Warning: Cannot modify header information - headers already sent by (output started at C:\Program Files\Apache Group\Apache2\htdocs\db\config.inc.php:828) in C:\Program Files\Apache Group\Apache2\htdocs\db\index.php on line 26
Warning: Cannot modify header information - headers already sent by (output started at C:\Program Files\Apache Group\Apache2\htdocs\db\config.inc.php:828) in C:\Program Files\Apache Group\Apache2\htdocs\db\index.php on line 55
Weet iemand wat dit moet voorstellen, of nog beter, hoe dit kan opgelost worden?
Wat ik heb aangepast in config.inc.php van phpmyadmin:
$cfg['PmaAbsoluteUri'] = 'http://localhost/db/';
$cfg['Servers'][$i]['host'] = 'localhost'; // MySQL hostname or IP address
$cfg['Servers'][$i]['controluser'] = 'root'; // MySQL control user settings
// (this user must have read-only
$cfg['Servers'][$i]['controlpass'] = '123456'; // access to the "mysql/user"
// and "mysql/db" tables).
// The controluser is also
// used for all relational
// features (pmadb)
$cfg['Servers'][$i]['auth_type'] = 'config'; // Authentication method (config, http or cookie based)?
$cfg['Servers'][$i]['user'] = 'root'; // MySQL user
$cfg['Servers'][$i]['password'] = '123456'; // MySQL password (only needed
// with 'config' auth_type)
Als er meer info nodig is, vraag maar. Bedankt.
Apache en php draaien goed. Ik vermoed dat Mysql ook werkt, allezinds dit werkt toch.
code:
1
2
3
4
5
6
| <?php
error_reporting(E_ALL);
$db = mysql_connect("localhost", "root", "123456") or die ("verbinding mislukt");
mysql_select_db("test", $db);
echo 'Houston, mission completed';
?> |
Maar als ik dan Phpmyadmin wil inloggen, krijg ik op de index.php volgende error:
Warning: Cannot modify header information - headers already sent by (output started at C:\Program Files\Apache Group\Apache2\htdocs\db\config.inc.php:828) in C:\Program Files\Apache Group\Apache2\htdocs\db\libraries\select_theme.lib.php on line 92
Warning: Cannot modify header information - headers already sent by (output started at C:\Program Files\Apache Group\Apache2\htdocs\db\config.inc.php:828) in C:\Program Files\Apache Group\Apache2\htdocs\db\index.php on line 26
Warning: Cannot modify header information - headers already sent by (output started at C:\Program Files\Apache Group\Apache2\htdocs\db\config.inc.php:828) in C:\Program Files\Apache Group\Apache2\htdocs\db\index.php on line 55
Weet iemand wat dit moet voorstellen, of nog beter, hoe dit kan opgelost worden?
Wat ik heb aangepast in config.inc.php van phpmyadmin:
$cfg['PmaAbsoluteUri'] = 'http://localhost/db/';
$cfg['Servers'][$i]['host'] = 'localhost'; // MySQL hostname or IP address
$cfg['Servers'][$i]['controluser'] = 'root'; // MySQL control user settings
// (this user must have read-only
$cfg['Servers'][$i]['controlpass'] = '123456'; // access to the "mysql/user"
// and "mysql/db" tables).
// The controluser is also
// used for all relational
// features (pmadb)
$cfg['Servers'][$i]['auth_type'] = 'config'; // Authentication method (config, http or cookie based)?
$cfg['Servers'][$i]['user'] = 'root'; // MySQL user
$cfg['Servers'][$i]['password'] = '123456'; // MySQL password (only needed
// with 'config' auth_type)
Als er meer info nodig is, vraag maar. Bedankt.