Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Server Operation

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 18th January 2013, 05:58
nenad nenad is offline
Senior Member
 
Join Date: Nov 2005
Location: Novi Sad, Serbia
Posts: 415
Thanks: 13
Thanked 5 Times in 5 Posts
Default HELP PLEASE - Debian Lenny with ISPConfig upgrade to PHP 5.3 went wrong.

Hello to everyone,

I tried to upgrade PHP 5.2 to 5.3 on Debian Lenny - installed according perfect install with ISPConfig3. It worked fine for almost one year when I got the idea (because I need it because of one project) to upgrade PHP to 5.3

I thought it would be easy because of this
http://www.onigoetz.ch/2010/10/03/up...-debian-lenny/

or this

http://www.web2works.co.uk/blog2work...-debian-lenny/

But it didn't happen so.

Now it looks like I am totally without PHP.

Code:
piks:~# php -v
-bash: php: command not found
http://ftniim.org:8080/

gives internal server error.

I don't know what happened but I guess that "upgrade" broke some configuration files made by ISPConfig?

If that's of any help I have (at least) backup of /etc/mysql/my.cnf" , because during dist-upgrade it looks like database is upgraded too.

What should I do to make system work again?

When I try apt-get upgrade I got this:

Code:
piks:~# apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages have been kept back:
  mysql-client mysql-server php5-dev
0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
piks:~#
Sources list is:

Code:
#
# deb cdrom:[Debian GNU/Linux 5.0.9 _Lenny_ - Official i386 NETINST Binary-1 20111002-08:57]/ lenny main

#deb cdrom:[Debian GNU/Linux 5.0.9 _Lenny_ - Official i386 NETINST Binary-1 20111002-08:57]/ lenny main

#deb http://ftp.us.debian.org/debian/ lenny main
#deb-src http://ftp.us.debian.org/debian/ lenny main

#deb http://security.debian.org/ lenny/updates main
#deb-src http://security.debian.org/ lenny/updates main

#deb http://volatile.debian.org/debian-volatile lenny/volatile main
#deb-src http://volatile.debian.org/debian-volatile lenny/volatile main
#deb http://volatile.debian.org/debian-volatile lenny/volatile main contrib non-free

deb http://archive.debian.org/debian/ lenny main contrib
deb-src http://archive.debian.org/debian/ lenny main contrib
#deb http://security.debian.org/ lenny/updates main contrib
#deb-src http://security.debian.org/ lenny/updates main contrib
deb http://archive.debian.org/debian-volatile lenny/volatile main
deb-src http://archive.debian.org/debian-volatile lenny/volatile main contrib non-free
deb http://php53.dotdeb.org stable all
deb-src http://php53.dotdeb.org stable all


P.S. I can't upgrade to Lenny to Squeeze because machine is too old. That's why I am using Lenny in the first place.
__________________
Nenad Bulatovic
---------------
Debian Lenny & ISPConfig 3

Last edited by nenad; 18th January 2013 at 06:23.
Reply With Quote
Sponsored Links
  #2  
Old 18th January 2013, 07:58
nenad nenad is offline
Senior Member
 
Join Date: Nov 2005
Location: Novi Sad, Serbia
Posts: 415
Thanks: 13
Thanked 5 Times in 5 Posts
Default Update

OK, it looks liek that repo was wrong - actually outdated:

This
Code:
deb http://php53.dotdeb.org stable all
deb-src http://php53.dotdeb.org stable al
points no more to Lenny but to Squezze and that make whole mess.

So, I uninstalled removed that repository from sources list and then unisntalled all of the PHP

Code:
apt-get remove php5 libapache2-mod-php5 php5-gd php5-mysql 
apt-get remove php5-curl php5-tidy php5-dev php-pear php5-cli
apt-get remove php5-common php5-suhosin
and then installed it back acording to http://www.howtoforge.com/perfect-se...ispconfig-3-p4

Code:
apt-get install apache2 apache2.2-common apache2-doc apache2-mpm-prefork apache2-utils libexpat1 ssl-cert libapache2-mod-php5 php5 php5-common php5-gd php5-mysql php5-imap phpmyadmin php5-cli php5-cgi libapache2-mod-fcgid apache2-suexec php-pear php-auth php5-mcrypt mcrypt php5-imagick imagemagick libapache2-mod-suphp libopenssl-ruby libapache2-mod-ruby
Now ISPConfing and websites are OK.

However I have strange error in console?
Code:
piks:/tmp/php5# php -v
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php5/20060613+lfs/curl.so' - /usr/lib/php5/20060613+lfs/curl.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php5/20060613+lfs/intl.so' - /usr/lib/php5/20060613+lfs/intl.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php5/20060613+lfs/tidy.so' - /usr/lib/php5/20060613+lfs/tidy.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php5/20060613+lfs/xmlrpc.so' - /usr/lib/php5/20060613+lfs/xmlrpc.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP 5.2.6-1+lenny16 with Suhosin-Patch 0.9.6.2 (cli) (built: Feb  3 2012 13:17:21)
Copyright (c) 1997-2008 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2008 Zend Technologies
piks:/tmp/php5#
Any ideas what it might be?

Moreover, according to comments people were just replacing 'stable' with either 'oldstable' or 'lenny' in
Code:
deb http://php53.dotdeb.org stable all
deb-src http://php53.dotdeb.org stable al
Unfortunatelly I can't make it work. What should I do?

It looks like that lenny is moved to http://archives.dotdeb.org/dists/lenny/

Code:
deb http://archive.dotdeb.org lenny all
But if I try to add that to sources list, it can't find it?

I even tried this solution, but it didn't help either:
http://mtehrani30.blogspot.com/2011/...-52-to-53.html
__________________
Nenad Bulatovic
---------------
Debian Lenny & ISPConfig 3

Last edited by nenad; 18th January 2013 at 08:23.
Reply With Quote
  #3  
Old 18th January 2013, 09:00
nenad nenad is offline
Senior Member
 
Join Date: Nov 2005
Location: Novi Sad, Serbia
Posts: 415
Thanks: 13
Thanked 5 Times in 5 Posts
Default Update

This error
Code:
piks:/tmp/php5# php -v
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php5/20060613+lfs/curl.so' - /usr/lib/php5/20060613+lfs/curl.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php5/20060613+lfs/intl.so' - /usr/lib/php5/20060613+lfs/intl.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php5/20060613+lfs/tidy.so' - /usr/lib/php5/20060613+lfs/tidy.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php5/20060613+lfs/xmlrpc.so' - /usr/lib/php5/20060613+lfs/xmlrpc.so: cannot open shared object file: No such file or directory in Unknown on line 0
I resolved by commenting out loading of libraries in respective ini files such as:

Code:
piks:~# joe /etc/php5/conf.d/xmlrpc.ini
piks:~# joe /etc/php5/conf.d/tidy.ini
piks:~# joe /etc/php5/conf.d/intl.ini
piks:~# joe /etc/php5/conf.d/curl.ini
Is it a right way to deal with that error?
__________________
Nenad Bulatovic
---------------
Debian Lenny & ISPConfig 3
Reply With Quote
  #4  
Old 18th January 2013, 10:36
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,777
Thanks: 821
Thanked 5,332 Times in 4,184 Posts
Default

Quote:
Is it a right way to deal with that error?
Yes, thats ok. But it was not a error anyway,just a wrning which did not harm.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
The Following User Says Thank You to till For This Useful Post:
nenad (18th January 2013)
  #5  
Old 18th January 2013, 10:38
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,777
Thanks: 821
Thanked 5,332 Times in 4,184 Posts
Default

Why did you not upgrade Lenny to squeeze? Lenny is out of date and you wont get any updates for lenny anymore, so your server becomes insecure without security üatches. debian squeeze has php 5.3, so when you update to squeeze, you will get php 5.3 as well.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #6  
Old 18th January 2013, 10:44
nenad nenad is offline
Senior Member
 
Join Date: Nov 2005
Location: Novi Sad, Serbia
Posts: 415
Thanks: 13
Thanked 5 Times in 5 Posts
Default

Quote:
Originally Posted by till View Post
Why did you not upgrade Lenny to squeeze? Lenny is out of date and you wont get any updates for lenny anymore, so your server becomes insecure without security üatches. debian squeeze has php 5.3, so when you update to squeeze, you will get php 5.3 as well.
It's an old P3 server which servers just fine for student projects
For some strange reasons I couldn't install squeeze, I think that install would just freeze or so... That's why I gave up and installed Lenny. We are a small group of students and we use it as a proof of concept for moodle and for gensim/simserver and if the faculty staff approves it, then later they will buy new server... etc.

Right now I would like to install PHP 5.3, but I am a little bit stuck with it.

Can you please help me with this:


Quote:
Moreover, according to comments people were just replacing 'stable' with either 'oldstable' or 'lenny' in
Code:
deb http://php53.dotdeb.org stable all
deb-src http://php53.dotdeb.org stable al
Unfortunatelly I can't make it work. What should I do?

It looks like that lenny is moved to http://archives.dotdeb.org/dists/lenny/

Code:
deb http://archive.dotdeb.org lenny all
But if I try to add that to sources list, it can't find it?

I even tried this solution, but it didn't help either:
How can I add http://archive.dotdeb.org lenny all to repository ?
__________________
Nenad Bulatovic
---------------
Debian Lenny & ISPConfig 3
Reply With Quote
  #7  
Old 21st January 2013, 19:18
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,740 Times in 2,575 Posts
Default

Try http://archives-php53.dotdeb.org/ instead.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #8  
Old 21st January 2013, 19:37
nenad nenad is offline
Senior Member
 
Join Date: Nov 2005
Location: Novi Sad, Serbia
Posts: 415
Thanks: 13
Thanked 5 Times in 5 Posts
Default

Quote:
Originally Posted by falko View Post
Thak you, but if I try to add this:
Code:
deb http://archives-php53.dotdeb.org/ lenny php5/5.3.9
I get this

Code:
Err http://archives-php53.dotdeb.org lenny/php5/5.3.9 Packages
  404 Not Found
Code:
W: Failed to fetch http://archives-php53.dotdeb.org/dists/lenny/php5/5.3.9/binary-i386/Packages  404 Not Found
__________________
Nenad Bulatovic
---------------
Debian Lenny & ISPConfig 3
Reply With Quote
  #9  
Old 21st January 2013, 20:39
nenad nenad is offline
Senior Member
 
Join Date: Nov 2005
Location: Novi Sad, Serbia
Posts: 415
Thanks: 13
Thanked 5 Times in 5 Posts
Default

I resolved it.

1. I made new directory
Code:
mkdir /root/downloads/php5.3
2. I downloaded all of the deb packages
Code:
wget -r -l 1 http://archives-php53.dotdeb.org/dists/lenny/php5/5.3.9/binary-i386/
3. Created Packages.gz
Code:
sudo dpkg-scanpackages . /dev/null | gzip -c9 > Packages.gz
4. added this to sources.list
Code:
deb file:///root/downloads/php5.3 ./
5.
Code:
 sudo apt-get update
6.
Code:
apt-get upgrade
7.
Code:
apt-get dist-upgrade
And that's it

8.
Code:
php -v
PHP 5.3.9-1~dotdeb.2 with Suhosin-Patch (cli) (built: Jan 13 2012 01:21:19)
Copyright (c) 1997-2012 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2012 Zend Technologies
piks:~/downloads/php5.3#

However, there's some error.
What should I do with this? (websites are working just fine)

Code:
piks:~/downloads/php5.3# php -v
PHP Deprecated:  Comments starting with '#' are deprecated in /etc/php5/cli/conf.d/imagick.ini on line 1 in Unknown on line 0
PHP Deprecated:  Comments starting with '#' are deprecated in /etc/php5/cli/conf.d/xmlrpc.ini on line 1 in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php5/20090626+lfs/imagick.so' - /usr/lib/php5/20090626+lfs/imagick.so: cannot open shared object file: No such file or directory in Unknown on line 0
__________________
Nenad Bulatovic
---------------
Debian Lenny & ISPConfig 3
Reply With Quote
The Following User Says Thank You to nenad For This Useful Post:
falko (22nd January 2013)
  #10  
Old 22nd January 2013, 21:03
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,740 Times in 2,575 Posts
 
Default

Quote:
PHP Deprecated: Comments starting with '#' are deprecated in /etc/php5/cli/conf.d/imagick.ini on line 1 in Unknown on line 0
PHP Deprecated: Comments starting with '#' are deprecated in /etc/php5/cli/conf.d/xmlrpc.ini on line 1 in Unknown on line 0
Replace # with ; in these files.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
ISPConfig 3 - MultiServer Setup - With Dedicated Control Panel - How? SuperJC Installation/Configuration 4 16th October 2012 20:03
Control Panel - E-mail Tab is empty domi-nik General 15 14th April 2011 18:17
libWand.so.10 error Taxick Installation/Configuration 8 3rd May 2009 01:27
Freebsd 6.1 support misterm Installation/Configuration 10 9th April 2009 09:29
Loads of mysql connections to dbispconfig StrikerNL General 2 5th March 2009 14:31


All times are GMT +2. The time now is 10:41.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.