phpmyadmin error, Cannot modify header information

nadlerz

Verified User
Joined
Apr 29, 2012
Messages
140
This is what i see when accesing xxx.xxx.xx.xx/phpmyadmin/

PHP:
Deprecated: Function eregi() is deprecated in /var/www/html/phpMyAdmin-2.11.11.3-all-languages/libraries/select_lang.lib.php on line 146

Deprecated: Function eregi() is deprecated in /var/www/html/phpMyAdmin-2.11.11.3-all-languages/libraries/select_lang.lib.php on line 146

Deprecated: Function eregi() is deprecated in /var/www/html/phpMyAdmin-2.11.11.3-all-languages/libraries/select_lang.lib.php on line 146

Deprecated: Function eregi() is deprecated in /var/www/html/phpMyAdmin-2.11.11.3-all-languages/libraries/select_lang.lib.php on line 146

Deprecated: Function eregi() is deprecated in /var/www/html/phpMyAdmin-2.11.11.3-all-languages/libraries/select_lang.lib.php on line 146

Deprecated: Function eregi() is deprecated in /var/www/html/phpMyAdmin-2.11.11.3-all-languages/libraries/select_lang.lib.php on line 146

Deprecated: Function eregi() is deprecated in /var/www/html/phpMyAdmin-2.11.11.3-all-languages/libraries/select_lang.lib.php on line 146

Deprecated: Function eregi() is deprecated in /var/www/html/phpMyAdmin-2.11.11.3-all-languages/libraries/select_lang.lib.php on line 146

Deprecated: Function eregi() is deprecated in /var/www/html/phpMyAdmin-2.11.11.3-all-languages/libraries/select_lang.lib.php on line 146

Deprecated: Function eregi() is deprecated in /var/www/html/phpMyAdmin-2.11.11.3-all-languages/libraries/select_lang.lib.php on line 146

Deprecated: Function eregi() is deprecated in /var/www/html/phpMyAdmin-2.11.11.3-all-languages/libraries/select_lang.lib.php on line 146

Deprecated: Function eregi() is deprecated in /var/www/html/phpMyAdmin-2.11.11.3-all-languages/libraries/select_lang.lib.php on line 146

Deprecated: Function eregi() is deprecated in /var/www/html/phpMyAdmin-2.11.11.3-all-languages/libraries/select_lang.lib.php on line 146

Deprecated: Function eregi() is deprecated in /var/www/html/phpMyAdmin-2.11.11.3-all-languages/libraries/select_lang.lib.php on line 146

Deprecated: Function eregi() is deprecated in /var/www/html/phpMyAdmin-2.11.11.3-all-languages/libraries/select_lang.lib.php on line 146

Deprecated: Function eregi() is deprecated in /var/www/html/phpMyAdmin-2.11.11.3-all-languages/libraries/select_lang.lib.php on line 146

Deprecated: Function eregi() is deprecated in /var/www/html/phpMyAdmin-2.11.11.3-all-languages/libraries/select_lang.lib.php on line 146

Deprecated: Function eregi() is deprecated in /var/www/html/phpMyAdmin-2.11.11.3-all-languages/libraries/select_lang.lib.php on line 146

Deprecated: Function eregi() is deprecated in /var/www/html/phpMyAdmin-2.11.11.3-all-languages/libraries/select_lang.lib.php on line 146

Deprecated: Function eregi() is deprecated in /var/www/html/phpMyAdmin-2.11.11.3-all-languages/libraries/select_lang.lib.php on line 146

Deprecated: Function eregi() is deprecated in /var/www/html/phpMyAdmin-2.11.11.3-all-languages/libraries/select_lang.lib.php on line 146

Deprecated: Function eregi() is deprecated in /var/www/html/phpMyAdmin-2.11.11.3-all-languages/libraries/select_lang.lib.php on line 146

Deprecated: Function eregi() is deprecated in /var/www/html/phpMyAdmin-2.11.11.3-all-languages/libraries/select_lang.lib.php on line 146

Deprecated: Function eregi() is deprecated in /var/www/html/phpMyAdmin-2.11.11.3-all-languages/libraries/select_lang.lib.php on line 146

Deprecated: Function eregi() is deprecated in /var/www/html/phpMyAdmin-2.11.11.3-all-languages/libraries/select_lang.lib.php on line 146

Deprecated: Function eregi() is deprecated in /var/www/html/phpMyAdmin-2.11.11.3-all-languages/libraries/select_lang.lib.php on line 146

Deprecated: Function eregi() is deprecated in /var/www/html/phpMyAdmin-2.11.11.3-all-languages/libraries/select_lang.lib.php on line 146

Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/phpMyAdmin-2.11.11.3-all-languages/libraries/select_lang.lib.php:146) in /var/www/html/phpMyAdmin-2.11.11.3-all-languages/libraries/core.lib.php on line 249

How to fix this ?
 
Turn off error display in php.ini

You also should upgrade that phpmyadmin its extremely outdated and very insecure.

Code:
rm -rf /var/www/html/phpMyAdmin*
cd /usr/local/directadmin/custombuild
./build set phpmyadmin yes
./build update
./build clean
./build phpmyadmin d
 
Turn off error display in php.ini

You also should upgrade that phpmyadmin its extremely outdated and very insecure.

Code:
rm -rf /var/www/html/phpMyAdmin*
cd /usr/local/directadmin/custombuild
./build set phpmyadmin yes
./build update
./build clean
./build phpmyadmin d

Done, here is my log:


[root@server ~]# rm -rf /var/www/html/phpMyAdmin*
[root@server ~]# cd /usr/local/directadmin/custombuild
[root@server custombuild]# ./build set phpmyadmin yes
Changed phpmyadmin option from yes to yes
[root@server custombuild]# ./build update
--2012-07-06 19:22:59-- http://files5.directadmin.com/services/custombuild/1.1/custombuild.tar.gz
Resolving files5.directadmin.com... 79.171.16.108
Connecting to files5.directadmin.com|79.171.16.108|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 110555 (108K) [application/x-gzip]
Saving to: `./custombuild.tar.gz'

100%[==========================================================================>] 110,555 --.-K/s in 0.04s

2012-07-06 19:23:00 (2.85 MB/s) - `./custombuild.tar.gz' saved [110555/110555]

extracting custombuild.tar.gz for 1.1 ...
custombuild/
custombuild/build
custombuild/configure/
custombuild/configure/dovecot/
custombuild/configure/dovecot/dovecot.conf
custombuild/configure/pureftpd/
custombuild/configure/pureftpd/configure.pureftpd
custombuild/configure/suphp/
custombuild/configure/suphp/configure.php5
custombuild/configure/suphp/configure.suphp
custombuild/configure/suphp/configure.php4
custombuild/configure/proftpd/
custombuild/configure/proftpd/configure.proftpd
custombuild/configure/ap1/
custombuild/configure/ap1/configure.apache_ssl
custombuild/configure/ap1/conf/
custombuild/configure/ap1/conf/extra/
custombuild/configure/ap1/conf/extra/httpd-userdir.conf
custombuild/configure/ap1/conf/extra/httpd-vhosts.conf
custombuild/configure/ap1/conf/extra/httpd-languages.conf
custombuild/configure/ap1/conf/extra/httpd-autoindex.conf
custombuild/configure/ap1/conf/extra/httpd-ssl.conf
custombuild/configure/ap1/conf/extra/httpd-default.conf
custombuild/configure/ap1/conf/extra/httpd-alias.conf
custombuild/configure/ap1/conf/extra/httpd-multilang-errordoc.conf
custombuild/configure/ap1/conf/extra/httpd-deflate.conf
custombuild/configure/ap1/conf/extra/httpd-info.conf
custombuild/configure/ap1/conf/extra/directadmin-vhosts.conf
custombuild/configure/ap1/conf/mime.types
custombuild/configure/ap1/conf/magic
custombuild/configure/ap1/conf/httpd.conf
custombuild/configure/ap1/configure.php5
custombuild/configure/ap1/configure.php4
custombuild/configure/ap2/
custombuild/configure/ap2/cert_config
custombuild/configure/ap2/conf/
custombuild/configure/ap2/conf/extra/
custombuild/configure/ap2/conf/extra/httpd-userdir.conf
custombuild/configure/ap2/conf/extra/httpd-vhosts.conf
custombuild/configure/ap2/conf/extra/httpd-languages.conf
custombuild/configure/ap2/conf/extra/httpd-autoindex.conf
custombuild/configure/ap2/conf/extra/httpd-ssl.conf
custombuild/configure/ap2/conf/extra/httpd-default.conf
custombuild/configure/ap2/conf/extra/httpd-alias.conf
custombuild/configure/ap2/conf/extra/httpd-dav.conf
custombuild/configure/ap2/conf/extra/httpd-directories-old.conf
custombuild/configure/ap2/conf/extra/httpd-mpm.conf
custombuild/configure/ap2/conf/extra/httpd-directories-new.conf
custombuild/configure/ap2/conf/extra/httpd-multilang-errordoc.conf
custombuild/configure/ap2/conf/extra/httpd-deflate.conf
custombuild/configure/ap2/conf/extra/httpd-mpm.conf_2.0
custombuild/configure/ap2/conf/extra/httpd-info.conf
custombuild/configure/ap2/conf/extra/directadmin-vhosts.conf
custombuild/configure/ap2/conf/extra/httpd-manual.conf
custombuild/configure/ap2/conf/mime.types
custombuild/configure/ap2/conf/magic
custombuild/configure/ap2/conf/httpd.conf
custombuild/configure/ap2/conf/httpd.conf_2.0
custombuild/configure/ap2/configure.php5
custombuild/configure/ap2/configure.apache
custombuild/configure/ap2/configure.php4
--2012-07-06 19:23:00-- http://files5.directadmin.com/services/custombuild/versions.txt
Resolving files5.directadmin.com... 79.171.16.108
Connecting to files5.directadmin.com|79.171.16.108|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 5551 (5.4K) [text/plain]
Saving to: `./versions.txt'

100%[==========================================================================>] 5,551 --.-K/s in 0s

2012-07-06 19:23:00 (306 MB/s) - `./versions.txt' saved [5551/5551]

File already exists: servers.txt
MD5 Checksum on servers.txt passed.
File already exists: httpd-2.4.2.tar.gz
MD5 Checksum on httpd-2.4.2.tar.gz passed.
File already exists: apr-1.4.6.tar.gz
MD5 Checksum on apr-1.4.6.tar.gz passed.
File already exists: apr-util-1.4.1.tar.gz
MD5 Checksum on apr-util-1.4.1.tar.gz passed.
File already exists: httpd_2
File already exists: httpd_2_freebsd
File already exists: httpd_2_debian
File already exists: mime.types
File already exists: mod_perl-2.0.4.tar.gz
MD5 Checksum on mod_perl-2.0.4.tar.gz passed.
File already exists: curl-7.26.0.tar.gz
MD5 Checksum on curl-7.26.0.tar.gz passed.
File already exists: pcre-8.20.tar.gz
MD5 Checksum on pcre-8.20.tar.gz passed.
File already exists: libmcrypt-2.5.8.tar.gz
MD5 Checksum on libmcrypt-2.5.8.tar.gz passed.
File already exists: mhash-0.9.9.9.tar.gz
MD5 Checksum on mhash-0.9.9.9.tar.gz passed.
File already exists: freetype-2.4.10.tar.gz
MD5 Checksum on freetype-2.4.10.tar.gz passed.
File already exists: libiconv-1.14.tar.gz
MD5 Checksum on libiconv-1.14.tar.gz passed.
File already exists: libxml2-2.7.6.tar.gz
MD5 Checksum on libxml2-2.7.6.tar.gz passed.
File already exists: libxslt-1.1.26.tar.gz
MD5 Checksum on libxslt-1.1.26.tar.gz passed.
File already exists: icu4c-4_8_1_1-src.tgz
MD5 Checksum on icu4c-4_8_1_1-src.tgz passed.
File already exists: php-5.3.14.tar.gz
MD5 Checksum on php-5.3.14.tar.gz passed.
File already exists: webalizer-2.23-05-src.tgz
File already exists: suphp-0.7.1.tar.gz
MD5 Checksum on suphp-0.7.1.tar.gz passed.
Downloading dovecot-2.1.8.tar.gz...
--2012-07-06 19:23:03-- http://files5.directadmin.com/services/custombuild/dovecot-2.1.8.tar.gz
Resolving files5.directadmin.com... 79.171.16.108
Connecting to files5.directadmin.com|79.171.16.108|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 3807008 (3.6M) [application/x-gzip]
Saving to: `/usr/local/directadmin/custombuild/dovecot-2.1.8.tar.gz'

100%[==========================================================================>] 3,807,008 --.-K/s in 0.1s

2012-07-06 19:23:03 (24.8 MB/s) - `/usr/local/directadmin/custombuild/dovecot-2.1.8.tar.gz' saved [3807008/3807008]

MD5 Checksum on dovecot-2.1.8.tar.gz passed.
File already exists: dovecot.boot
File already exists: dovecot.boot.freebsd
File already exists: dovecot.boot.debian
File already exists: dovecot.conf
File already exists: exim.conf.dovecot.patch
MD5 Checksum on exim.conf.dovecot.patch passed.
File already exists: autoconf-2.68.tar.gz
MD5 Checksum on autoconf-2.68.tar.gz passed.
File already exists: m4-1.4.16.tar.gz
MD5 Checksum on m4-1.4.16.tar.gz passed.
File already exists: automake-1.11.1.tar.gz
MD5 Checksum on automake-1.11.1.tar.gz passed.
File already exists: libtool-2.4.tar.gz
MD5 Checksum on libtool-2.4.tar.gz passed.
[root@server custombuild]# ./build clean
[root@server custombuild]# ./build phpmyadmin d
--2012-07-06 19:23:16-- http://files5.directadmin.com/services/all/phpMyAdmin/phpMyAdmin-3.5.1-all-languages.tar.gz
Resolving files5.directadmin.com... 79.171.16.108
Connecting to files5.directadmin.com|79.171.16.108|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 5944741 (5.7M) [application/x-gzip]
Saving to: `/usr/local/directadmin/custombuild/phpMyAdmin-3.5.1-all-languages.tar.gz'

100%[==========================================================================>] 5,944,741 32.8M/s in 0.2s

2012-07-06 19:23:16 (32.8 MB/s) - `/usr/local/directadmin/custombuild/phpMyAdmin-3.5.1-all-languages.tar.gz' saved [5944741/5944741]

phpMyAdmin 3.5.1-all-languages installation is done.
[root@server custombuild]# ./build phpmyadmin d
phpMyAdmin 3.5.1-all-languages installation is done.
[root@server custombuild]# service httpd restart
Stopping httpd: [ OK ]
Starting httpd:
[root@server custombuild]# service mysqld restart
Shutting down MySQL.. SUCCESS!
Starting MySQL. SUCCESS!
[root@server custombuild]#

But accesing phpmyadmin, still gives me an error:

phpMyAdmin - Error
Cannot start session without errors, please check errors given in your PHP and/or webserver log file and configure your PHP installation properly.
 
Look for this line in php.ini

session.save_path

It should be set to /tmp and /tmp should be chmod 0777

You should also try clearing your browser cache... you might have an old session cookie or something.
 
I'm using memcached, and I have this one their:

session.save_handler=memcached
session.save_path="127.0.0.1:11211"

This might give me a problem ?
 
Back
Top