Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > Tips/Tricks/Mods

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 28th October 2010, 14:36
AceLine AceLine is offline
Junior Member
 
Join Date: Oct 2010
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Default coexistence of php4 and php5 on ISPC3

Hi Falco, hi Till, hello everyone!

Thnx for your great work at first! I bought a membership last week to download the new manual of ISPC3 and I love it... Very usefull.

There is only one point I´m not able to solve since some time. I already was searching the web by google, searching the howtoforge.com-forums, tried everything (that I know) to find usefull information about: Peacefull coexistence of php4 and php5 in ISPConfig 3

I found some information getting deep into changing default ISPC3-configuration. I´m sure I found enough information to get it to work but I could not find any help, how-to, tutorial on how to realize this coexistence in a perfect running ISPC3-configuration without meshing up default configuration, overwritten any time I go for an version update or upgrade.
In the new manual only one line gave me hope to solve this need: "More than one PHP version can be run as FastCGI".
That sounds like it´s not a big thing... My problem is the need of php4 for some older projects to run but I don´t want to experiment around on a production machine.

Could you give me - and others - possibly a secure step-by-step how-to or tutorial on:

"HOW TO IMPLEMENT PHP4 ON A ISPC3 SERVER TO PEACEFULLY COEXIST WITH PHP5"

If this is asked to much, maybe you just could give me some easy to understand advice to find my way. My main focus is on compatibility with updates of future releases without meshing up the configuration.



Thnx in advace for your help


Best regards from Vienna -

Ingmar

-----------------------------------
Debian Lenny - ISPConfig 3.3
Reply With Quote
Sponsored Links
  #2  
Old 29th October 2010, 14:15
falko falko is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,735 Times in 2,571 Posts
Default

Take a look here:
http://www.howtoforge.com/apache2_with_php5_and_php4
http://www.howtoforge.com/apache2_suphp_php4_php5_p3

if you use the first example, you can enable PHP5 as mod_php or FastCGI from within ISPConfig, and then you add directives for PHP4 in the Apache Directives field in ISPConfig.
__________________
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 3rd November 2010, 11:15
wiss wiss is offline
Member
 
Join Date: Oct 2010
Posts: 67
Thanks: 2
Thanked 4 Times in 4 Posts
Default

I follow both first tutorial and not working for me:

This is my vhost.conf:

Code:
<Directory /var/www/cblasan.com>
    AllowOverride None
    Order Deny,Allow
    Deny from all
</Directory>

<VirtualHost *:80>
      DocumentRoot /var/www/clients/client1/web1/web
  
    ServerName cblasan.com
    ServerAlias *.cblasan.com
    ServerAdmin webmaster@cblasan.com

    ErrorLog /var/log/ispconfig/httpd/cblasan.com/error.log

	
    <Directory /var/www/cblasan.com/web>
        Options FollowSymLinks
        AllowOverride All
        Order allow,deny
        Allow from all
    </Directory>
    <Directory /var/www/clients/client1/web1/web>
        Options FollowSymLinks
        AllowOverride All
        Order allow,deny
        Allow from all
    </Directory>


    # Clear PHP settings of this website
    <FilesMatch "\.ph(p3?|tml)$">
        SetHandler None
    </FilesMatch>
    # php as cgi enabled
    ScriptAlias /php5-cgi /var/www/php-cgi-scripts/web1/php-cgi-starter
    Action php5-cgi /php5-cgi
    AddHandler php5-cgi .php .php3 .php4 .php5
    <Directory /var/www/php-cgi-scripts/web1/>
        Order allow,deny
        Allow from all
    </Directory>

    # add support for apache mpm_itk
    <IfModule mpm_itk_module>
      AssignUserId web1 client1
    </IfModule>

    <IfModule mod_dav_fs.c>
      # DO NOT REMOVE THE COMMENTS!
      # IF YOU REMOVE THEM, WEBDAV WILL NOT WORK ANYMORE!
      # WEBDAV BEGIN
      # WEBDAV END
    </IfModule>
AddHandler php-script .php4
Action php-script /cgi-bin/php4
DirectoryIndex index.html index.htm index.shtml index.cgi index.pl index.php index.php4 index.xhtml
</VirtualHost>
and ispconfig is:



result:


Thank you in advance
__________________
Reparacion ordenadores | Reparacion portatiles
Pd: Sorry for my english...
Reply With Quote
  #4  
Old 4th November 2010, 17:53
falko falko is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,735 Times in 2,571 Posts
Default

Please remove the .php4 extension from the following line:
Code:
AddHandler php5-cgi .php .php3 .php4 .php5
__________________
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
  #5  
Old 4th November 2010, 18:13
wiss wiss is offline
Member
 
Join Date: Oct 2010
Posts: 67
Thanks: 2
Thanked 4 Times in 4 Posts
Default

Hy Falko, this is my vhost.conf now:

Code:
<Directory /var/www/cblasan.com>
    AllowOverride None
    Order Deny,Allow
    Deny from all
</Directory>

<VirtualHost *:80>
      DocumentRoot /var/www/cblasan.com/web
  
    ServerName cblasan.com
    ServerAlias *.cblasan.com
    ServerAdmin webmaster@cblasan.com

    ErrorLog /var/log/ispconfig/httpd/cblasan.com/error.log

	
    <Directory /var/www/cblasan.com/web>
        Options FollowSymLinks
        AllowOverride All
        Order allow,deny
        Allow from all
    </Directory>
    <Directory /var/www/clients/client1/web1/web>
        Options FollowSymLinks
        AllowOverride All
        Order allow,deny
        Allow from all
    </Directory>


    # suexec enabled
    SuexecUserGroup web1 client1
    # Clear PHP settings of this website
    <FilesMatch "\.ph(p3?|tml)$">
        SetHandler None
    </FilesMatch>
    # php as fast-cgi enabled
    <IfModule mod_fcgid.c>
      # SocketPath /tmp/fcgid_sock/
      IdleTimeout 3600
      ProcessLifeTime 7200
      # MaxProcessCount 1000
      DefaultMinClassProcessCount 3
      DefaultMaxClassProcessCount 100
      IPCConnectTimeout 8
      IPCCommTimeout 360
      BusyTimeout 300
    </IfModule>
    <Directory /var/www/cblasan.com/web>
        AddHandler fcgid-script .php .php3 .php5
        FCGIWrapper /var/www/php-fcgi-scripts/web1/.php-fcgi-starter .php
        Options +ExecCGI
        AllowOverride All
        Order allow,deny
        Allow from all
    </Directory>
	<Directory /var/www/clients/client1/web1/web>
        AddHandler fcgid-script .php .php3 .php5
        FCGIWrapper /var/www/php-fcgi-scripts/web1/.php-fcgi-starter .php
        Options +ExecCGI
        AllowOverride All
        Order allow,deny
        Allow from all
    </Directory>

    # add support for apache mpm_itk
    <IfModule mpm_itk_module>
      AssignUserId web1 client1
    </IfModule>

    <IfModule mod_dav_fs.c>
      # DO NOT REMOVE THE COMMENTS!
      # IF YOU REMOVE THEM, WEBDAV WILL NOT WORK ANYMORE!
      # WEBDAV BEGIN
      # WEBDAV END
    </IfModule>
AddHandler php-script .php4
Action php-script /cgi-bin/php4
DirectoryIndex index.html index.htm index.shtml index.cgi index.pl index.php index.php4 index.xhtml

</VirtualHost>
PHP



Uploaded with ImageShack.us





I don't know i do wrong...

error.log vhost:

Code:
cgi/conf.d/mcrypt.ini on line 1 in Unknown on line 0, referer: http://www.cblasan.com/info.php
[Thu Nov 04 18:08:17 2010] [error] [client 82.158.76.244] PHP Deprecated:  Comments starting with '#' are deprecated in /etc/php5/cgi/conf.d/imagick.ini on line 1 in Unknown on line 0, referer: http://www.cblasan.com/info.php
[Thu Nov 04 18:08:17 2010] [error] [client 82.158.76.244] PHP Deprecated:  Comments starting with '#' are deprecated in /etc/php5/cgi/conf.d/imap.ini on line 1 in Unknown on line 0, referer: http://www.cblasan.com/info.php
[Thu Nov 04 18:08:17 2010] [error] [client 82.158.76.244] PHP Deprecated:  Comments starting with '#' are deprecated in /etc/php5/cgi/conf.d/mcrypt.ini on line 1 in Unknown on line 0, referer: http://www.cblasan.com/info.php
[Thu Nov 04 18:08:17 2010] [error] [client 82.158.76.244] PHP Warning:  Directive 'magic_quotes_gpc' is deprecated in PHP 5.3 and greater in Unknown on line 0, referer: http://www.cblasan.com/info.php
[Thu Nov 04 18:08:17 2010] [error] [client 82.158.76.244] PHP Warning:  Directive 'magic_quotes_gpc' is deprecated in PHP 5.3 and greater in Unknown on line 0, referer: http://www.cblasan.com/info.php
[Thu Nov 04 18:08:18 2010] [error] [client 82.158.76.244] PHP Deprecated:  Comments starting with '#' are deprecated in /etc/php5/cgi/conf.d/imagick.ini on line 1 in Unknown on line 0
[Thu Nov 04 18:08:18 2010] [error] [client 82.158.76.244] PHP Deprecated:  Comments starting with '#' are deprecated in /etc/php5/cgi/conf.d/imap.ini on line 1 in Unknown on line 0
[Thu Nov 04 18:08:18 2010] [error] [client 82.158.76.244] PHP Deprecated:  Comments starting with '#' are deprecated in /etc/php5/cgi/conf.d/mcrypt.ini on line 1 in Unknown on line 0
[Thu Nov 04 18:08:18 2010] [error] [client 82.158.76.244] PHP Warning:  Directive 'magic_quotes_gpc' is deprecated in PHP 5.3 and greater in Unknown on line 0
[Thu Nov 04 18:08:18 2010] [error] [client 82.158.76.244] PHP Deprecated:  Comments starting with '#' are deprecated in /etc/php5/cgi/conf.d/imagick.ini on line 1 in Unknown on line 0, referer: http://www.cblasan.com/info.php
[Thu Nov 04 18:08:18 2010] [error] [client 82.158.76.244] PHP Deprecated:  Comments starting with '#' are deprecated in /etc/php5/cgi/conf.d/imap.ini on line 1 in Unknown on line 0, referer: http://www.cblasan.com/info.php
[Thu Nov 04 18:08:18 2010] [error] [client 82.158.76.244] PHP Deprecated:  Comments starting with '#' are deprecated in /etc/php5/cgi/conf.d/mcrypt.ini on line 1 in Unknown on line 0, referer: http://www.cblasan.com/info.php
[Thu Nov 04 18:08:18 2010] [error] [client 82.158.76.244] PHP Deprecated:  Comments starting with '#' are deprecated in /etc/php5/cgi/conf.d/imagick.ini on line 1 in Unknown on line 0, referer: http://www.cblasan.com/info.php
[Thu Nov 04 18:08:18 2010] [error] [client 82.158.76.244] PHP Deprecated:  Comments starting with '#' are deprecated in /etc/php5/cgi/conf.d/imap.ini on line 1 in Unknown on line 0, referer: http://www.cblasan.com/info.php
[Thu Nov 04 18:08:18 2010] [error] [client 82.158.76.244] PHP Deprecated:  Comments starting with '#' are deprecated in /etc/php5/cgi/conf.d/mcrypt.ini on line 1 in Unknown on line 0, referer: http://www.cblasan.com/info.php
[Thu Nov 04 18:08:18 2010] [error] [client 82.158.76.244] PHP Deprecated:  Comments starting with '#' are deprecated in /etc/php5/cgi/conf.d/imagick.ini on line 1 in Unknown on line 0, referer: http://www.cblasan.com/info.php
[Thu Nov 04 18:08:18 2010] [error] [client 82.158.76.244] PHP Deprecated:  Comments starting with '#' are deprecated in /etc/php5/cgi/conf.d/imap.ini on line 1 in Unknown on line 0, referer: http://www.cblasan.com/info.php
[Thu Nov 04 18:08:18 2010] [error] [client 82.158.76.244] PHP Deprecated:  Comments starting with '#' are deprecated in /etc/php5/cgi/conf.d/mcrypt.ini on line 1 in Unknown on line 0, referer: http://www.cblasan.com/info.php
[Thu Nov 04 18:08:18 2010] [error] [client 82.158.76.244] PHP Warning:  Directive 'magic_quotes_gpc' is deprecated in PHP 5.3 and greater in Unknown on line 0, referer: http://www.cblasan.com/info.php
[Thu Nov 04 18:08:18 2010] [error] [client 82.158.76.244] PHP Warning:  Directive 'magic_quotes_gpc' is deprecated in PHP 5.3 and greater in Unknown on line 0, referer: http://www.cblasan.com/info.php
[Thu Nov 04 18:08:18 2010] [error] [client 82.158.76.244] PHP Warning:  Directive 'magic_quotes_gpc' is deprecated in PHP 5.3 and greater in Unknown on line 0, referer: http://www.cblasan.com/info.php
[Thu Nov 04 18:08:22 2010] [error] [client 82.158.76.244] PHP Deprecated:  Comments starting with '#' are deprecated in /etc/php5/cgi/conf.d/imagick.ini on line 1 in Unknown on line 0
[Thu Nov 04 18:08:22 2010] [error] [client 82.158.76.244] PHP Deprecated:  Comments starting with '#' are deprecated in /etc/php5/cgi/conf.d/imap.ini on line 1 in Unknown on line 0
[Thu Nov 04 18:08:22 2010] [error] [client 82.158.76.244] PHP Deprecated:  Comments starting with '#' are deprecated in /etc/php5/cgi/conf.d/mcrypt.ini on line 1 in Unknown on line 0
[Thu Nov 04 18:08:22 2010] [error] [client 82.158.76.244] PHP Warning:  Directive 'magic_quotes_gpc' is deprecated in PHP 5.3 and greater in Unknown on line 0
[Thu Nov 04 18:08:22 2010] [error] [client 82.158.76.244] PHP Deprecated:  Comments starting with '#' are deprecated in /etc/php5/cgi/conf.d/imagick.ini on line 1 in Unknown on line 0, referer: http://www.cblasan.com/info.php4
[Thu Nov 04 18:08:22 2010] [error] [client 82.158.76.244] PHP Deprecated:  Comments starting with '#' are deprecated in /etc/php5/cgi/conf.d/imagick.ini on line 1 in Unknown on line 0, referer: http://www.cblasan.com/info.php4
[Thu Nov 04 18:08:22 2010] [error] [client 82.158.76.244] PHP Deprecated:  Comments starting with '#' are deprecated in /etc/php5/cgi/conf.d/imagick.ini on line 1 in Unknown on line 0, referer: http://www.cblasan.com/info.php4
[Thu Nov 04 18:08:22 2010] [error] [client 82.158.76.244] PHP Deprecated:  Comments starting with '#' are deprecated in /etc/php5/cgi/conf.d/imap.ini on line 1 in Unknown on line 0, referer: http://www.cblasan.com/info.php4
[Thu Nov 04 18:08:22 2010] [error] [client 82.158.76.244] PHP Deprecated:  Comments starting with '#' are deprecated in /etc/php5/cgi/conf.d/imap.ini on line 1 in Unknown on line 0, referer: http://www.cblasan.com/info.php4
[Thu Nov 04 18:08:22 2010] [error] [client 82.158.76.244] PHP Deprecated:  Comments starting with '#' are deprecated in /etc/php5/cgi/conf.d/imap.ini on line 1 in Unknown on line 0, referer: http://www.cblasan.com/info.php4
[Thu Nov 04 18:08:22 2010] [error] [client 82.158.76.244] PHP Deprecated:  Comments starting with '#' are deprecated in /etc/php5/cgi/conf.d/mcrypt.ini on line 1 in Unknown on line 0, referer: http://www.cblasan.com/info.php4
[Thu Nov 04 18:08:22 2010] [error] [client 82.158.76.244] PHP Deprecated:  Comments starting with '#' are deprecated in /etc/php5/cgi/conf.d/mcrypt.ini on line 1 in Unknown on line 0, referer: http://www.cblasan.com/info.php4
[Thu Nov 04 18:08:22 2010] [error] [client 82.158.76.244] PHP Warning:  Directive 'magic_quotes_gpc' is deprecated in PHP 5.3 and greater in Unknown on line 0, referer: http://www.cblasan.com/info.php4
[Thu Nov 04 18:08:22 2010] [error] [client 82.158.76.244] PHP Deprecated:  Comments starting with '#' are deprecated in /etc/php5/cgi/conf.d/mcrypt.ini on line 1 in Unknown on line 0, referer: http://www.cblasan.com/info.php4
[Thu Nov 04 18:08:22 2010] [error] [client 82.158.76.244] PHP Warning:  Directive 'magic_quotes_gpc' is deprecated in PHP 5.3 and greater in Unknown on line 0, referer: http://www.cblasan.com/info.php4
[Thu Nov 04 18:08:22 2010] [error] [client 82.158.76.244] PHP Warning:  Directive 'magic_quotes_gpc' is deprecated in PHP 5.3 and greater in Unknown on line 0, referer: http://www.cblasan.com/info.php4
__________________
Reparacion ordenadores | Reparacion portatiles
Pd: Sorry for my english...
Reply With Quote
  #6  
Old 5th November 2010, 14:56
falko falko is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,735 Times in 2,571 Posts
 
Default

Does /usr/lib/cgi-bin/php4 exist?
__________________
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
ffmpeg Video support for ubuntu 7.10 [suphp-ispconfig] amaurib Installation/Configuration 13 16th February 2010 17:26
php4 to php5 on ispconfig server provell Installation/Configuration 7 1st August 2009 16:26
Any tips for PHP4 + PHP5 on Fedora citronz Installation/Configuration 1 13th December 2007 18:20
php4 and php5 at same time findafriend Installation/Configuration 7 22nd June 2007 16:44
php4 and php5 white debian4 octopus Installation/Configuration 21 18th May 2007 09:58


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


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