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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

phpMyAdmin problem with PHP 4.2.1 !! Pls. Help

Status
Not open for further replies.

hisham

IS-IT--Management
Nov 6, 2000
194
Hi
I had the PHP 4.2.0 installed in my linux box, today I installed the latest version php 4.2.1. All my codes can connect to the mysql databases created in this server, but when I try to run phpMyAdmin to browse my database, I get the following error:

-----------------------------------------------------------------------
Warning: Cannot add header information - headers already sent by (output started at /usr/local/apache/htdocs/phpMyAdmin-2.2.6/libraries/auth/config.auth.lib.php:91) in /usr/local/apache/htdocs/phpMyAdmin-2.2.6/header.inc.php on line 23

Warning: Cannot add header information - headers already sent by (output started at /usr/local/apache/htdocs/phpMyAdmin-2.2.6/libraries/auth/config.auth.lib.php:91) in /usr/local/apache/htdocs/phpMyAdmin-2.2.6/header.inc.php on line 24

Warning: Cannot add header information - headers already sent by (output started at /usr/local/apache/htdocs/phpMyAdmin-2.2.6/libraries/auth/config.auth.lib.php:91) in /usr/local/apache/htdocs/phpMyAdmin-2.2.6/header.inc.php on line 25

Warning: Cannot add header information - headers already sent by (output started at /usr/local/apache/htdocs/phpMyAdmin-2.2.6/libraries/auth/config.auth.lib.php:91) in /usr/local/apache/htdocs/phpMyAdmin-2.2.6/header.inc.php on line 26

Warning: Cannot add header information - headers already sent by (output started at /usr/local/apache/htdocs/phpMyAdmin-2.2.6/libraries/auth/config.auth.lib.php:91) in /usr/local/apache/htdocs/phpMyAdmin-2.2.6/header.inc.php on line 27

Warning: Cannot add header information - headers already sent by (output started at /usr/local/apache/htdocs/phpMyAdmin-2.2.6/libraries/auth/config.auth.lib.php:91) in /usr/local/apache/htdocs/phpMyAdmin-2.2.6/header.inc.php on line 29

Error
MySQL said:
Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
--------------------------------------------
the lines mensioned are:
23: header('Expires: 0'); // rfc2616 - Section 14.21
24: header('Last-Modified: ' . $now);
25: header('Cache-Control: no-store, no-cache, must-revalidate'); // HTTP/1.1
26: header('Cache-Control: pre-check=0, post-check=0, max-age=0'); // HTTP/1.1
27: header('Pragma: no-cache'); // HTTP/1.0
// Define the charset to be used
29: header('Content-Type: text/html; charset=' . $charset);

Please how to fix this error.
Thanks in advance.
 
check here for new versions, as PHP gets changed so does phpMyAdmin

______________________________________________________________________
There's no present like the time, they say. - Henry's Cat.
 
Check if there is a blank space or a new line in the code before all the Header/Session/SetCookie functions.

Anikin
Hugo Alexandre Dias
Web-Programmer
anikin_jedi@hotmail.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top