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.
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.