Results 1 to 7 of 7
This is first time I have attempted to upgrade Linux debian on remote server by following simple instruction at
http://www.debian.org/doc/FAQ/ch-updated.en.html
apt-get update
apt-get dist-upgrade
Everything went fine uninstalled old packages, ...
- 01-19-2008 #1Just Joined!
- Join Date
- Jan 2008
- Posts
- 4
Debian upgrade gone bad
This is first time I have attempted to upgrade Linux debian on remote server by following simple instruction at
http://www.debian.org/doc/FAQ/ch-updated.en.html
apt-get update
apt-get dist-upgrade
Everything went fine uninstalled old packages, updated some and installed new, no errors.
After rebooting web server is not working, I can only connect with SSH and browse files...
As I'm not experienced I have entered apache2 in shell which produced this error:
If I delete 'php_admin_flag' lines from httpd.include I'm managing to get apache working, it loads first .php page, but avery other click starts download od php script source code :-/Code:Syntax error on line 21 of /etc/apache2/httpd.include: Invalid command 'php_admin_flag', perhaps mis-spelled or defined by a module not included in the server configuration
Please help, I need server running as soon possible.
Thanks!
- 01-19-2008 #2Just Joined!
- Join Date
- Jan 2008
- Posts
- 17
If you have access as root.
Perform: apt-get check
For checking broken packages.
And:
# nano -w /etc/apache2/httpd.include
Go arround line 52.
there should be an line "php_admin_flag safe_mode Off"
Change "Off" to "On"
That should fix it.
If there are errors redo: apt-get dist-upgrade
- 01-19-2008 #3Just Joined!
- Join Date
- Jan 2008
- Posts
- 4
I don't have line "php_admin_flag safe_mode.." anywherevs184239:~# apt-get check
Reading Package Lists... Done
Building Dependency Tree... Done
I have only this type of php_admin_flag lines at few places in /etc/apache2/httpd.include
php_admin_flag engine on
php_admin_flag engine off
no safe_mod flags and I have another /var/www/vhosts/mydomain.com/conf/httpd.include for virtual host which is included in first one, but also no safe_mode flags.
and it appers to be on for web accessible folders
When I "apt-get dist-upgrade" again, this are the results:Code:<Directory /var/www/vhosts/mydomain.com/httpdocs> <IfModule mod_php4.c> php_admin_flag engine on php_admin_value open_basedir "/var/www/vhosts/mydomain.com/httpdocs:/tmp" </IfModule> <IfModule mod_php5.c> php_admin_flag engine on php_admin_value open_basedir "/var/www/vhosts/mydomain.com/httpdocs:/tmp" </IfModule> SSLRequireSSL Options +Includes +ExecCGI </Directory>
and it exits.Code:Reading Package Lists... Done Building Dependency Tree... Done Calculating Upgrade... Done The following packages have been kept back: bsdutils curl dhcp-client dnsutils e2fslibs e2fsprogs fetchmail file libblkid1 libcomerr2 libcurl3 libfreetype6 libisccc0 libkrb53 libmagic1 libpcre3 libperl5.8 libssl-dev libssl0.9.7 libt1-5 libuuid1 libxml2 mount openssl perl perl-base perl-doc perl-modules tar tcpdump util-linux vim vim-common 0 upgraded, 0 newly installed, 0 to remove and 33 not upgraded.
Also:
vs184239:~# mysqldump
-bash: mysqldump: command not found
which worked before :-/
- 01-19-2008 #4Just Joined!
- Join Date
- Jan 2008
- Posts
- 17
Seems like 33 packages are not upgradet. And not responding properly.
//edit:
It seems you did not used "apt-get dist-upgrade" for the 2nd time. Try running that if not works read below.
// End of Edit.
Try under root:
# apt-get update
# apt-get upgrade
If this does not work. I wont have any more advise. Then running X and downgrade and re dist-upgrade.
- 01-19-2008 #5Just Joined!
- Join Date
- Jan 2008
- Posts
- 4
I did used "apt-get dist-upgrade" for the 2nd time and 3rd...
That text above is c/p of it's 3rd output and current "apt-get upgrade" is the same.
There was something different when I run it for 2nd time - it asked me if I want to overwrite /etc/mysql/my.cnf and default answer was "No" which I selected and installation exited.
It's not asking me that again - is there a way to force it to ask me again and continue with installation?
I did not understand how to downgrade?
- 01-19-2008 #6Just Joined!
- Join Date
- Jan 2008
- Posts
- 17
Alright this will overide every thing but we backup the mysql config.
# cp /etc/mysql/my.cnf /etc/mysql/my.cnf-bak
# apt-get -y -u dist-upgrade
After its done it will display the changes. And you can easly reconfigure it. But i would advice to backup the following:
/dir/to/php/binarys/php.ini
/etc/apache2/httpd.include
/etc/mysql/my.cnf
And re attempt the dist-upgrade. with the -y and -u flag
and backup the new version. And replace it with the old one. Should work.
- 01-19-2008 #7Just Joined!
- Join Date
- Jan 2008
- Posts
- 4
I have returned old instalation from backup, I'll try again in few days and let you know how it went

Thanks!!!


Reply With Quote
