
28th October 2010, 14:36
|
|
Junior Member
|
|
Join Date: Oct 2010
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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
|

3rd November 2010, 11:15
|
|
Member
|
|
Join Date: Oct 2010
Posts: 56
Thanks: 2
Thanked 2 Times in 2 Posts
|
|
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
|

4th November 2010, 17:53
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,685
Thanks: 1,899
Thanked 2,599 Times in 2,448 Posts
|
|
Please remove the .php4 extension from the following line:
Code:
AddHandler php5-cgi .php .php3 .php4 .php5
|

4th November 2010, 18:13
|
|
Member
|
|
Join Date: Oct 2010
Posts: 56
Thanks: 2
Thanked 2 Times in 2 Posts
|
|
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
|

5th November 2010, 14:56
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,685
Thanks: 1,899
Thanked 2,599 Times in 2,448 Posts
|
|
Does /usr/lib/cgi-bin/php4 exist?
|
| Thread Tools |
|
|
| Display Modes |
Hybrid Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT +2. The time now is 23:28.
|
Recent comments
1 day 1 hour ago
1 day 3 hours ago
1 day 15 hours ago
1 day 18 hours ago
1 day 22 hours ago
2 days 4 hours ago
2 days 14 hours ago
2 days 16 hours ago
3 days 12 min ago
3 days 1 hour ago