Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 2 > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 18th June 2009, 15:13
provell provell is offline
Member
 
Join Date: Apr 2006
Posts: 97
Thanks: 0
Thanked 0 Times in 0 Posts
Default php4 to php5 on ispconfig server

Hi all,

I have setup a ispconfig/debian sarge server at the time with the perfect setup.
Later I have upgraded debian sarge to etch but my php version was still 4.
Currently etch has php5 packages but are not upgradet automaticaly.

Before I upgrade from etch to lenny I would like to upgrade php4 to php5.

Is that a smart thing to do and what would be the best way to do it.
Would a "apt-get install php5" be enough?

Will it affect anything regarding to ispconfig as it uses it's own php5 compilation?

Thanks in advance.

Rgds Edo
Reply With Quote
Sponsored Links
  #2  
Old 19th June 2009, 09:19
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,495
Thanks: 835
Thanked 5,534 Times in 4,352 Posts
Default

Quote:
Would a "apt-get install php5" be enough?
should work.

Quote:
Will it affect anything regarding to ispconfig as it uses it's own php5 compilation?
no.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 25th June 2009, 23:00
provell provell is offline
Member
 
Join Date: Apr 2006
Posts: 97
Thanks: 0
Thanked 0 Times in 0 Posts
Default lost connection to database

On my (vmware/test) ispconfig server I tried to do the upgrade.
Just "apt-get install php5"
It removes the php4 apache mod and then installs the php5 mod for apache and the php5 package.
When I do a "a2dismod", I can see the php4 mod is removed and the php5 loaded.

Then my the joomla sites say:
Database Error: Unable to connect to the database:The MySQL adapter "mysql" is not available.

It looks like php5/apache is unaware of the mysql server or the other way arround.
I checked the php.ini for php5 but can't find much difference with the one of php4 concerning the MySQL server settings.

I even installed the php5-mysql package but still no luck.

Is there some configuration file I should adjust to make the two talk to each other again?

Thanks in advance.

Rgds Edo
Reply With Quote
  #4  
Old 25th June 2009, 23:16
provell provell is offline
Member
 
Join Date: Apr 2006
Posts: 97
Thanks: 0
Thanked 0 Times in 0 Posts
Default found it, I think?

Searching through the forum I found that the problem was that I was still missing some PHP5 modules/packages.

From the lenny perfect setup I did:
apt-get install libapache2-mod-php5 libapache2-mod-ruby libapache2-mod-python php5 php5-common php5-curl php5-dev php5-gd php5-idn php-pear php5-imagick php5-imap php5-mcrypt php5-memcache php5-mhash php5-ming php5-mysql php5-pspell php5-recode php5-snmp php5-sqlite php5-suhosin php5-tidy php5-xcache php5-xmlrpc php5-xsl

Only the php5-xcache package could not be installed.

Is this a bit overkill to get php5 working?
Can one of these packages misconfigure something?

Thanks in advance.

Rgds Edo
Reply With Quote
  #5  
Old 26th June 2009, 15:31
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,745 Times in 2,578 Posts
Default

Quote:
Originally Posted by provell View Post
Can one of these packages misconfigure something?
No, don't worry.
__________________
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
  #6  
Old 30th July 2009, 22:32
provell provell is offline
Member
 
Join Date: Apr 2006
Posts: 97
Thanks: 0
Thanked 0 Times in 0 Posts
Default php -v

Hi,

The upgrade works fine.
Apache is now using the php5 module.

Only when I type "php -v" at the command prompt the debian/etch sytem still say's: version 4.4.4-8+etch 6.

I gues the debian/etch system still uses the 4 version.
Would it not be wise to have it use the just installed 5 version?
If so where do I change that?

Rgds Edo
Reply With Quote
  #7  
Old 31st July 2009, 21:45
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,745 Times in 2,578 Posts
Default

It seems as if the command line PHP is version 4 still. Try this:
Code:
apt-get install php5-cli
__________________
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 1st August 2009, 17:26
id10t id10t is offline
Senior Member
 
Join Date: Nov 2008
Posts: 242
Thanks: 2
Thanked 22 Times in 22 Posts
 
Default

Yup, its a matter of all the modules for php4 vs. php5 - just gotta install 'em all and remove the php4 ones.

dpkg -l | grep -i php4

Will show which php4 packages are still installed. Replace 'em with the php5 versions and remove the php4 versions.

Quote:
Originally Posted by falko View Post
It seems as if the command line PHP is version 4 still. Try this:
Code:
apt-get install php5-cli
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
Virtual Users And Domains With Postfix, Courier, MySQL And SquirrelMail -Ubuntu 8.04 c4rdinal HOWTO-Related Questions 112 23rd August 2011 11:49
Connection dropped by IMAP server gublym Server Operation 5 23rd January 2009 10:47
Can't start apache Musty Server Operation 12 9th March 2008 14:58
Problems with Postfix Mysql Courier PatrickAdrichem Installation/Configuration 3 13th April 2007 16:44
Email - Ueb-Miau mazhar Installation/Configuration 5 21st December 2005 11:01


All times are GMT +2. The time now is 22:20.


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