Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

mysql, localhost, and myphpadmin

Status
Not open for further replies.

help120

Technical User
Apr 15, 2001
198
US
Hi, I just installed php4, apache, and mysql on my computer.

I got php to work and mysql to work. I howe ever can't get myphpadmin to work. When I open up I get the following error.

----------------------------------------------
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, patrick@finalphase.org and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.



--------------------------------------------------------------------------------

Apache/1.3.19 Server at Port 80
----------------------------------------------

I then opend up my error log and this is what I got. [Sat Feb 22 16:50:24 2003] [error] [client 127.0.0.1] Premature end of script headers: f:/inetpub/scripts/php/php.exe

This is what I've in my config file for myphpadmin.

$cfg['PmaAbsoluteUri'] = '
/**
* Disable the default warning about $cfg['PmaAbsoluteUri'] not being set
* You should use this if and ONLY if the PmaAbsoluteUri auto-detection
* works perfectly.
*/
$cfg['PmaAbsoluteUri_DisableWarning'] = FALSE;
/**
* Disable the default warning that is displayed on the DB Details Structure page if
* any of the required Tables for the relationfeatures could not be found
*/
$cfg['PmaNoRelation_DisableWarning'] = FALSE;

/**
* Server(s) configuration
*/
$i = 0;
// The $cfg['Servers'] array starts with $cfg['Servers'][1]. Do not use $cfg['Servers'][0].
// You can disable a server config entry by setting host to ''.
$i++;
$cfg['Servers'][$i]['host'] = 'localhost'; // MySQL hostname
$cfg['Servers'][$i]['port'] = ''; // MySQL port - leave blank for default port
$cfg['Servers'][$i]['socket'] = ''; // Path to the socket - leave blank for default socket
$cfg['Servers'][$i]['connect_type'] = 'tcp'; // How to connect to MySQL server ('tcp' or 'socket')
$cfg['Servers'][$i]['controluser'] = ''; // MySQL control user settings
// (this user must have read-only
$cfg['Servers'][$i]['controlpass'] = ''; // access to the "mysql/user"
// and "mysql/db" tables)
$cfg['Servers'][$i]['auth_type'] = 'config'; // Authentication method (config, http or cookie based)?
$cfg['Servers'][$i]['user'] = 'root'; // MySQL user
$cfg['Servers'][$i]['password'] = ''; // MySQL password (only needed
// with 'config' auth_type)
$cfg['Servers'][$i]['only_db'] = ''; // If set to a db-name, only
 
Have you tried using the Apache module version of PHP instead? It tends to work faster and lets you use certain functions that can only be used when ran as a module. //Daniel
 
depending on your version of phpmyadmin, the index.php is actually index.php3 , windows returns this error message which can be rather misleading:
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.

This will be the error you receive if you request any non existant URL. worth checking bfore you go any further. ______________________________________________________________________
There's no present like the time, they say. - Henry's Cat.
 
Yea, I know what the error means. The wierd thing is I can get index.php to show up. (2 frames) One where the nav bar is and the home page. I how ever get that Internal Server Error on both of those pages. So I'm thinking some thing in my config is funked up.
 
This is what i have:

Code:
/**
 * Your phpMyAdmin url
 *
 * Complete the variable below with the full url ie
 *    [URL unfurl="true"]http://www.your_web.net/path_to_your_phpMyAdmin_directory/[/URL]
 */
$cfgPmaAbsoluteUri = '';


/**
 * Server(s) configuration
 */
// The $cfgServers array starts with $cfgServers[1].  Do not use $cfgServers[0].
// You can disable a server config entry by setting host to ''.
$cfgServers[1]['host']          = 'localhost'; // MySQL hostname
$cfgServers[1]['port']          = '';          // MySQL port - leave blank for default port
$cfgServers[1]['socket']        = '';          // Path to the socket - leave blank for default socket
$cfgServers[1]['connect_type']  = 'tcp';       // How to connect to MySQL server ('tcp' or 'socket')
$cfgServers[1]['stduser']       = '';          // MySQL standard user settings (this user must have read-only
$cfgServers[1]['stdpass']       = '';          //   access to the "mysql/user" and "mysql/db" tables)
$cfgServers[1]['auth_type']     = 'config';     // Authentication method (config, http or cookie based)?
$cfgServers[1]['user']          = 'root';      // MySQL user
$cfgServers[1]['password']      = '';          // MySQL password (only needed with 'config' auth)
$cfgServers[1]['only_db']       = '';          // If set to a db-name, only this db is displayed at left frame
                                               // It may also be an array of db-names
$cfgServers[1]['verbose']       = '';          // Verbose name for this host - leave blank to show the hostname
$cfgServers[1]['bookmarkdb']    = '';          // Bookmark db - leave blank for no bookmark support
$cfgServers[1]['bookmarktable'] = '';          // Bookmark table - leave blank for no bookmark support


I noticed in yoru version that you have [$i] instead of [1] or [2]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top