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

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 16th March 2011, 19:36
vaio1 vaio1 is offline
Senior Member
 
Join Date: Jul 2007
Location: Italy
Posts: 664
Thanks: 77
Thanked 12 Times in 7 Posts
Question Installing an old PHP5 application within the new ISPConfig server web site plan

Hi guys,

I have a little problem during the migration of the old customers from the old server with ISPConfig 2.2.37 to the ISPConfig 3.0.3.2.

The software is a Magento version 1.3.2.3 that requires the PHP 5.2.10.

Now in the new servers we have installed the latest version of ISPConfig 3 and the php version installed in it is the PHP 5.3.3-7.

The software doesn't work at all. Now the question:

Is there a way to execute an old PHP software only within a website plan?

thanks
Reply With Quote
Sponsored Links
  #2  
Old 17th March 2011, 11:05
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 37,015
Thanks: 840
Thanked 5,652 Times in 4,461 Posts
Default

You can e.g. install a php 5.2 cgi binary beside the normal php 5.3 of the server. Then reconfigure the suphp.conf file so that suphp uses this php binary instead of the php 5.3 one. So when you select suphp in the website settings then, the scripts will be executed with php 5.2 while all other scripts get executed with php 5.3.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 17th March 2011, 11:36
vaio1 vaio1 is offline
Senior Member
 
Join Date: Jul 2007
Location: Italy
Posts: 664
Thanks: 77
Thanked 12 Times in 7 Posts
Default

I have downloaded this file from http://www.magentocommerce.com/support/php5cgi/php5-cgi

I have upload this file in the /usr/bin folder and set the right permissions and then I have changed the suphp.conf in this way:

Code:
[handlers]
;Handler for php-scripts
application/x-httpd-suphp="php:/usr/bin/php52"

;Handler for CGI-scripts
x-suphp-cgi="execute:!self"
x-httpd-suphp="php:/usr/bin/php52-cgi"
After those editings I have restart the Apache deamon and set the website with the suPHP mode.

now I get these errors:

Browser:
Code:
Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, webmaster@mysite.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.
Apache/2.2.16 (Debian) Server at www.mysite.com Port 80
Log file
Code:
[Thu Mar 17 17:03:24 2011] [error] [client 95.218.234.100] php52-cgi: relocation error: /lib/i686/cmov/libresolv.so.2: symbol strlen, version GLIBC_2.0 not defined in file libc.so.6 with link time reference
[Thu Mar 17 17:03:24 2011] [error] [client 95.218.234.100] Premature end of script headers: index.php
Why I get these errors?

regards

Last edited by vaio1; 17th March 2011 at 18:06.
Reply With Quote
  #4  
Old 23rd March 2011, 09:03
vaio1 vaio1 is offline
Senior Member
 
Join Date: Jul 2007
Location: Italy
Posts: 664
Thanks: 77
Thanked 12 Times in 7 Posts
Default

good morning guys, any suggestion?
Reply With Quote
  #5  
Old 23rd March 2011, 10:43
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 37,015
Thanks: 840
Thanked 5,652 Times in 4,461 Posts
Default

You use two different paths in the suphp.conf file for the php binary. Check which of them is correct and change the incorrect one. Then restart apache.

Additionally, the php binary that you downloaded is not compatible with your system. You should find another one that is compiled agaoinst the correct libc version or compile your own copy of php.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #6  
Old 23rd March 2011, 10:50
vaio1 vaio1 is offline
Senior Member
 
Join Date: Jul 2007
Location: Italy
Posts: 664
Thanks: 77
Thanked 12 Times in 7 Posts
Default

Hi Till,

thanks for your answer.
two paths? Where?

Where I can download the right version for my debian server. I have followed the Debian Multiserver Tutorial. So, I suppose that you know which is the right php binary that I have to download.

Thanks for your support
Reply With Quote
  #7  
Old 23rd March 2011, 10:52
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 37,015
Thanks: 840
Thanked 5,652 Times in 4,461 Posts
Default

Quote:
where I can download the right version for my debian server. I have followed the Debian Multiserver Tutorial. So, I suppose that you know which is the right php binary that I have to download.
I dont use php 5.2 on my servers, and the multiserver tutorial does not use it too, so I can not tell you where to find such a binary. It might be that you have to compile one yourself as I mentioned above.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #8  
Old 23rd March 2011, 10:54
vaio1 vaio1 is offline
Senior Member
 
Join Date: Jul 2007
Location: Italy
Posts: 664
Thanks: 77
Thanked 12 Times in 7 Posts
Default

No, I mean that you know the Software Infrastructure that the tutorial has created. Anyway how have I to compile one for my server?
Reply With Quote
  #9  
Old 29th March 2011, 17:18
vaio1 vaio1 is offline
Senior Member
 
Join Date: Jul 2007
Location: Italy
Posts: 664
Thanks: 77
Thanked 12 Times in 7 Posts
Default

Where can I download the right version of the php 5.2 for a debian server?
Reply With Quote
  #10  
Old 1st April 2011, 18:31
byte internet byte internet is offline
Junior Member
 
Join Date: Apr 2011
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
 
Default

Quote:
Originally Posted by vaio1 View Post
Hi guys,

The software is a Magento version 1.3.2.3 that requires the PHP 5.2.10.

Now in the new servers we have installed the latest version of ISPConfig 3 and the php version installed in it is the PHP 5.3.3-7.

thanks
You don't need to install php 5.2, you can easily tweak magento 1.3 to work with php 5.3. We blogged about this on http://www.byte.nl/blog/2010/09/28/h...-with-php-5-3/. We only tested this with Magento 1.3.3, but 1.3.2.3 is not that different.
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
ISPconfig 3, CentOS, squirrelMail, dovecot. LordNecro General 8 13th March 2011 01:48
Email problem 'Cannot set my user or group id.' (using ISPConfig 3 + OpenSuSE 11.2) urosm Installation/Configuration 5 19th June 2010 23:41
Sending mail ISPConfig 3 but not receivind catza Installation/Configuration 20 19th May 2010 13:47
Problems with Postfix Mysql Courier PatrickAdrichem Installation/Configuration 3 13th April 2007 16:44


All times are GMT +2. The time now is 07:39.


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