HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Installation/Configuration (http://www.howtoforge.com/forums/forumdisplay.php?f=16)
-   -   php4 and php5 white debian4 (http://www.howtoforge.com/forums/showthread.php?t=12535)

octopus 6th May 2007 18:52

php4 and php5 white debian4
 
hello

In my early post of FC6 white php4 an php5 didnít work

I have decided to use debian 4 white php4 and followed the perfect how to.
Than I followed the suphp white php4 and php5

And i installed Ispconfig at the end

now i have same problems :-(


I Get in the apache error

[Sun May 06 17:25:38 2007] [notice] Graceful restart requested, doing restart
[Sun May 06 17:25:38 2007] [notice] Apache/2.2.3 (Debian) mod_ssl/2.2.3 OpenSSL/0.9.8c mod_perl/2.0.2 Perl/v5.8.8 configured -- resuming normal operations
[Sun May 06 17:25:38 2007] [error] (9)Bad file descriptor: apr_socket_accept: (client socket)
[Sun May 06 17:25:39 2007] [warn] long lost child came home! (pid 2652)

Than searche (9)Bad file descriptor: apr_socket_accept: (client socket) in the forum

The work around to change this to addhandler? But doest work for me ? and I have debian not suse

$go_info["server"]["apache2_php"] = 'addhandler'; // 'filter' = set PHP filters, 'addtype' = Set PHP addtype or 'both' = Set Filter + Addtype, suphp = SuPHP wrapper enabled, 'addhandler' = Set PHP AddHandler (nescessary for SuSE 10.2)


In the suphp.conf file defind this when *php is called than use php5 and when say *php4 use php4


[handlers]
;Handler for php-scripts
x-httpd-php=php4:/usr/bin/php4-cgi
x-httpd-php=php:/usr/bin/php5-cgi

Help Ö

octopus 7th May 2007 09:12

Update
 
Quote:

Originally Posted by octopus
hello

In my early post of FC6 white php4 an php5 didnít work

I have decided to use debian 4 white php4 and followed the perfect how to.
Than I followed the suphp white php4 and php5

And i installed Ispconfig at the end

now i have same problems :-(


I Get in the apache error

[Sun May 06 17:25:38 2007] [notice] Graceful restart requested, doing restart
[Sun May 06 17:25:38 2007] [notice] Apache/2.2.3 (Debian) mod_ssl/2.2.3 OpenSSL/0.9.8c mod_perl/2.0.2 Perl/v5.8.8 configured -- resuming normal operations
[Sun May 06 17:25:38 2007] [error] (9)Bad file descriptor: apr_socket_accept: (client socket)
[Sun May 06 17:25:39 2007] [warn] long lost child came home! (pid 2652)

Than searche (9)Bad file descriptor: apr_socket_accept: (client socket) in the forum

The work around to change this to addhandler? But doest work for me ? and I have debian not suse

$go_info["server"]["apache2_php"] = 'addhandler'; // 'filter' = set PHP filters, 'addtype' = Set PHP addtype or 'both' = Set Filter + Addtype, suphp = SuPHP wrapper enabled, 'addhandler' = Set PHP AddHandler (nescessary for SuSE 10.2)


In the suphp.conf file defind this when *php is called than use php5 and when say *php4 use php4


[handlers]
;Handler for php-scripts
x-httpd-php=php4:/usr/bin/php4-cgi
x-httpd-php=php:/usr/bin/php5-cgi

Help Ö

Iam die hard white reinstalls hahaha

Last night i have reinstall the server again.

but white no ispconfig and no suphp only debian 4 white php5 and the php4

http://www.howtoforge.com/apache2_with_php5_and_php4


That works fine ! i can excute both :-) than i install ispconfig and the first look it works but after 1 or 2 excutes i get again error

[Sun May 06 22:59:34 2007] [error] an unknown filter was not added: PHP

and

[Sun May 06 22:57:49 2007] [error] (9)Bad file descriptor: apr_socket_accept: (client socket)


but white out the suphp i get unknown filter the most

till 7th May 2007 09:17

Quote:

[Sun May 06 22:59:34 2007] [error] an unknown filter was not added: PHP
First, this is not an error, you can ignore this. It has nothing to do with the fact if your setup works or not. If you want to remove this warning, change PHP to addtype in the config.inc.php file in ISPConfig.

Quote:

but white out the suphp i get unknown filter the most
As you did not install suphp, you can not use suphp! You will have to put the apache directives that are nescessary to run the cgi version of php in the apache directives field of the website and make sure that the checkboxes for cgi and php are not enabled for this website.

octopus 7th May 2007 09:31

Quote:

Originally Posted by till
First, this is not an error, you can ignore this. It has nothing to do with the fact if your setup works or not. If you want to remove this warning, change PHP to addtype in the config.inc.php file in ISPConfig.



As you did not install suphp, you can not use suphp! You will have to put the apache directives that are nescessary to run the cgi version of php in the apache directives field of the website and make sure that the checkboxes for cgi and php are not enabled for this website.


http://wireless-webhosting.nl/images/pic1.JPG



i have done that but no succes.

only in the how to i put them in the apache2.conf.

Only strange thing is that the test file for seeing which php version is running .

that the server say that some times the file want to download or canot find the file.

octopus 7th May 2007 09:49

Quote:

Originally Posted by octopus
http://wireless-webhosting.nl/images/pic1.JPG



i have done that but no succes.

only in the how to i put them in the apache2.conf.

Only strange thing is that the test file for seeing which php version is running .

that the server say that some times the file want to download or canot find the file.

When i put the addtype the error for filter is gone


when i do than like the picture i get this


[Mon May 07 08:39:57 2007] [notice] Graceful restart requested, doing restart
[Mon May 07 08:39:58 2007] [notice] Apache/2.2.3 (Debian) PHP/5.2.1-0.dotdeb.2 with Suhosin-Patch mod_ssl/2.2.3 OpenSSL/0.9.8c configured -- resuming normal operations
[Mon May 07 08:39:58 2007] [error] (9)Bad file descriptor: apr_socket_accept: (client socket)
[Mon May 07 08:39:59 2007] [warn] long lost child came home! (pid 3744)

octopus 7th May 2007 22:18

I have reinstall debian again
 
Oke I have done it again the perfect debian setup version 4.
The only thing what is different that is I installed php4-cgi white php5


Everything is working perfect if I do test in


When I execute in the browser the my IP/info.php (/var/www/info.php its php5)
When I execute in the browser the my IP/info.php4 (/var/www/info.php4 its php4)


The only thing I have not change yet is in /etc/mime.types yet

#application/x-httpd-php phtml pht php
#application/x-httpd-php-source phps
#application/x-httpd-php3 php3
#application/x-httpd-php3-preprocessed php3p#application/x-httpd-php4



And the /etc/apache2/mods-enabled/php5.conf is not changed yet

<IfModule mod_php5.c>
AddType application/x-httpd-php .php .phtml .php3
AddType application/x-httpd-php-source .phps
</IfModule>

Only there is /etc/apache/conf.d/php4.conf must a change this to white the # ?

<IfModule mod_php4.c>
AddType application/x-httpd-php .php .phtml .php3
AddType application/x-httpd-php-source .phps
</IfModule>

And in the /etc/apache2.conf I put this but must this stay soo when I install ispconfig?

AddHandler php-script .php4
Action php-script /cgi-bin/php4


but when i install ispconfig its not working

till 8th May 2007 09:38

1) Comment out the addtype lines in the php5.conf file and the php4.conf file.

2)
Quote:

And in the /etc/apache2.conf I put this but must this stay soo when I install ispconfig?
No, please comment this out.

3a) If you want to enable php5 in a website, enable the php checkbox in ISPConfig for this website.

3b) If you want to enable php4 for the website, make sure that the php checkbox and the cgi checkbox are not enabled. Then add the following lines in the aoache directives field:

AddHandler php-script .php
Action php-script /cgi-bin/php4

Now all files ending with .php are executed by php4 and not php5.

octopus 8th May 2007 21:20

I have now same proble again ......


php 5 works fine


only when vink out the

CGI Scripts:
Standard CGIs:
PHP Scripts:

and put by the Apache Directives (Optional): the

AddHandler php-script .php
Action php-script /cgi-bin/php4

it give file not found and error 404

till 8th May 2007 23:16

Please post the exact error message from the http error log of this website.

octopus 8th May 2007 23:20

[Tue May 08 22:14:19 2007] [notice] Graceful restart requested, doing restart
[Tue May 08 22:14:19 2007] [error] (9)Bad file descriptor: apr_socket_accept: (client socket)
[Tue May 08 22:14:19 2007] [notice] Apache/2.2.3 (Debian) PHP/5.2.0-8+etch3 mod_ssl/2.2.3 OpenSSL/0.9.8c configured -- resuming normal operations
[Tue May 08 22:14:20 2007] [warn] long lost child came home! (pid 9277)

Hello till this is the apache error log


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

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