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 26th November 2012, 12:33
kurdak kurdak is offline
Junior Member
 
Join Date: Nov 2012
Posts: 19
Thanks: 6
Thanked 0 Times in 0 Posts
Default PHP Multiple versions

Hello !
I installed ISPConfig 3.0.5.
Please help me how to install Debian 6 php version 5.2 and how to configure ISPConfig.

Regards.
Reply With Quote
Sponsored Links
  #2  
Old 27th November 2012, 11:46
falko falko is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,711
Thanks: 1,900
Thanked 2,702 Times in 2,545 Posts
Default

Take a look at chapter 14.3 on http://www.howtoforge.com/perfect-se...ispconfig-3-p4 . This should work for PHP 5.2 as well. Please note that you can only use FastCGI with PHP 5.2, not PHP-FPM because PHP-FPM has a different syntax in 5.2 compared to 5.3 and 5.4.
__________________
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
  #3  
Old 27th November 2012, 11:58
kurdak kurdak is offline
Junior Member
 
Join Date: Nov 2012
Posts: 19
Thanks: 6
Thanked 0 Times in 0 Posts
Default

Okay, so I made so far these commands:
Code:
mkdir /opt/php-5.2.17
mkdir /usr/local/src/php5-build
cd /usr/local/src/php5-build
wget http://de.php.net/get/php-5.2.17.tar.bz2/from/this/mirror -O php-5.2.17.tar.bz2
tar jxf php-5.2.17.tar.bz2
cd php-5.2.17/
Now I need to configure PHP 5.2.17:
Code:
./configure \
--prefix=/opt/php-5.2.17 \
--enable-fastcgi \
--disable-rpath \    - If this setting is turned on I get the same extras as the main PHP?
--with-mysql
I made:
Code:
make
make install
cp /usr/local/src/php5-build/php-5.2.17/php.ini-recommended /opt/php-5.2.17/lib/php.ini
In ISPConfig setting Additional PHP Versions:
Additional PHP Versions: /opt/php-5.2.17/bin/php
Path to the php.ini directory: /opt/php-5.2.17/lib

And now if I go to the my sub.domian.com I get: ERROR 500 - Internal Server Error
Now what I have to do?

Last edited by kurdak; 29th November 2012 at 10:15.
Reply With Quote
  #4  
Old 28th November 2012, 13:31
kurdak kurdak is offline
Junior Member
 
Join Date: Nov 2012
Posts: 19
Thanks: 6
Thanked 0 Times in 0 Posts
Default

I get the following errors:
error.log:
Code:
(104)Connection reset by peer: mod_fcgid: error reading data from FastCGI server
Premature end of script headers: index.php
suexec.log:
Code:
[2012-11-28 13:26:17]: uid: (5008/web12) gid: (5006/client0) cmd: .php-fcgi-starter
When I type this command in shell:
/opt/php-5.2.17/bin/php /var/www/sub.domain.com/web/index.php
Shows me correctly script written in php.
Please help me !

Last edited by kurdak; 28th November 2012 at 13:35.
Reply With Quote
  #5  
Old 28th November 2012, 17:06
falko falko is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,711
Thanks: 1,900
Thanked 2,702 Times in 2,545 Posts
Default

I'm getting the same error. I'm currently investigating this...
__________________
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 28th November 2012, 18:36
falko falko is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,711
Thanks: 1,900
Thanked 2,702 Times in 2,545 Posts
Default

I've found the problem and have updated the instructions on http://www.howtoforge.com/perfect-se...ispconfig-3-p4
__________________
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
The Following User Says Thank You to falko For This Useful Post:
kurdak (28th November 2012)
  #7  
Old 30th November 2012, 15:59
falko falko is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,711
Thanks: 1,900
Thanked 2,702 Times in 2,545 Posts
Default

For PHP 5.2, you need to add

--enable-fastcgi

Configure options have changed between PHP 5.2 and 5.3.
__________________
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 29th May 2013, 10:24
jboud jboud is offline
Member
 
Join Date: Dec 2010
Posts: 45
Thanks: 10
Thanked 8 Times in 3 Posts
Default

Hello, I'm trying for days now to collect bits and bytes from all successful stories and tutorials and I'm stuck.

I have Debian squeeze installed with perfect server setup and ispconfig 3 and I'm trying to install additional vesrion of php 5.2.17(or any 5.2). This thread comes closer to my attempts but I also used the guide you have linked earlier Falko. I'm stuck on ./configure with the error:

configure: error: libjpeg.(a|so) not found.

I tried some generic hints from searching google but I've had no success.
I'm asking for any kind of help regarding this error, or If anyone has any success story with my setup.

Thank you!
Reply With Quote
  #9  
Old 29th May 2013, 11:41
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 34,624
Thanks: 793
Thanked 4,994 Times in 3,909 Posts
Default

The libjpeg library or dev package from debian seems to be missing.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #10  
Old 29th May 2013, 11:47
jboud jboud is offline
Member
 
Join Date: Dec 2010
Posts: 45
Thanks: 10
Thanked 8 Times in 3 Posts
Default

Hey Thanks for the reply.

They do look like they're missing but have a look:

apt-get install libjpeg-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'libjpeg62-dev' instead of 'libjpeg-dev'
libjpeg62-dev is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

apt-get install libjpeg62
Reading package lists... Done
Building dependency tree
Reading state information... Done
libjpeg62 is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

root@somwhere:/usr/lib# ls -l libjp*
-rw-r--r-- 1 root root 221942 Jun 30 2010 libjpeg.a
-rw-r--r-- 1 root root 918 Jun 30 2010 libjpeg.la
lrwxrwxrwx 1 root root 17 May 29 02:07 libjpeg.so -> libjpeg.so.62.0.0
lrwxrwxrwx 1 root root 17 May 17 02:55 libjpeg.so.62 -> libjpeg.so.62.0.0
-rw-r--r-- 1 root root 145048 Jun 30 2010 libjpeg.so.62.0.0

Also have symlinks, I read something about that. I also make symlinks on /opt, read about such solution on another place.
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
Only Problems since Updating from 3.0.3.3 to 3.0.4.1 mbay General 4 17th May 2012 12:56
ubuntu and nginx delgado2061 Installation/Configuration 0 27th November 2011 23:36
Problem with services!! banzaiwebstudio.com Installation/Configuration 7 19th May 2010 21:13
Unable to install ISPConfig bdonecker Installation/Configuration 21 26th May 2009 08:20
Apache2 Freezes celtic Server Operation 31 28th May 2007 17:18


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


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