Koozali.org: home of the SME Server

Apache error_log is filling up to abnormal sizes ! (10GB / day)

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: Apache error_log is filling up to abnormal sizes ! (10GB / day)
« Reply #15 on: April 02, 2009, 07:59:08 PM »
Could it have something to do with PHP5-CGI module that I have to use for SyncML??
I am just guessing, but I don't know what else could couse this..
Are you saying you are using a PHP5 module in PHP4? They normally are incompatible and might cause PHP/Apache to crash or are you running PHP5 as well?
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline svsleuwen

  • *
  • 29
  • +0/-0
Re: Apache error_log is filling up to abnormal sizes ! (10GB / day)
« Reply #16 on: April 02, 2009, 08:08:07 PM »
Indeed I am using the contrib for using PHP5 as a module as described on this site:
http://sme.firewall-services.com/spip.php?article46
and then following the normal instructions as described on the contribs site about installing Egroupware syncing.
But I am using this exact configuration at two other servers and they don't seem to have those problems.
Strange problem isn't it?


Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: Apache error_log is filling up to abnormal sizes ! (10GB / day)
« Reply #17 on: April 02, 2009, 08:11:12 PM »
Indeed I am using the contrib for using PHP5 as a module as described on this site:
http://sme.firewall-services.com/spip.php?article46
and then following the normal instructions as described on the contribs site about installing Egroupware syncing.
But I am using this exact configuration at two other servers and they don't seem to have those problems.
Strange problem isn't it?
Perhaps, but next time it would be nice if you were to give all relevant details as you have, in this case, posted the wrong pear output as you posted the PHP 4 version.
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline svsleuwen

  • *
  • 29
  • +0/-0
Re: Apache error_log is filling up to abnormal sizes ! (10GB / day)
« Reply #18 on: April 03, 2009, 01:11:25 PM »
How can I give you the output of php5-cgi?

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: Apache error_log is filling up to abnormal sizes ! (10GB / day)
« Reply #19 on: April 03, 2009, 01:35:05 PM »
How can I give you the output of php5-cgi?
Not sure how, as I do not have those packages installed, we need to find the pear executable for your php5 installation first:
Code: [Select]
rpm -qa php5* | xargs rpm -ql | grep pear
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline svsleuwen

  • *
  • 29
  • +0/-0
Re: Apache error_log is filling up to abnormal sizes ! (10GB / day)
« Reply #20 on: April 03, 2009, 03:47:58 PM »
Dear cactus,
The command:rpm -qa php5* | xargs rpm -ql | grep pear

Gives as result:

warning: only V3 signatures can be verified, skipping V4 signature
warning: only V3 signatures can be verified, skipping V4 signature
warning: only V3 signatures can be verified, skipping V4 signature
warning: only V3 signatures can be verified, skipping V4 signature
/usr/bin/php5/pear
/usr/bin/php5/peardev
/usr/share/pear5
/usr/share/pear5/.channels
/usr/share/pear5/.channels/.alias
/usr/share/pear5/.channels/.alias/pear.txt
/usr/share/pear5/.channels/.alias/pecl.txt
/usr/share/pear5/.channels/__uri.reg
/usr/share/pear5/.channels/pear.php.net.reg
/usr/share/pear5/.channels/pecl.php.net.reg
/usr/share/pear5/.depdb
/usr/share/pear5/.depdblock
/usr/share/pear5/.filemap
/usr/share/pear5/.lock
/usr/share/pear5/.registry
/usr/share/pear5/.registry/.channel.__uri
/usr/share/pear5/.registry/.channel.pecl.php.net
/usr/share/pear5/.registry/archive_tar.reg
/usr/share/pear5/.registry/console_getopt.reg
/usr/share/pear5/.registry/pear.reg
/usr/share/pear5/Archive
/usr/share/pear5/Archive/Tar.php
/usr/share/pear5/Console
/usr/share/pear5/Console/Getopt.php
/usr/share/pear5/OS
/usr/share/pear5/OS/Guess.php
/usr/share/pear5/PEAR
/usr/share/pear5/PEAR.php
/usr/share/pear5/PEAR/Autoloader.php
/usr/share/pear5/PEAR/Builder.php
/usr/share/pear5/PEAR/ChannelFile
/usr/share/pear5/PEAR/ChannelFile.php
/usr/share/pear5/PEAR/ChannelFile/Parser.php
/usr/share/pear5/PEAR/Command
/usr/share/pear5/PEAR/Command.php
/usr/share/pear5/PEAR/Command/Auth.php
/usr/share/pear5/PEAR/Command/Auth.xml
/usr/share/pear5/PEAR/Command/Build.php
/usr/share/pear5/PEAR/Command/Build.xml
/usr/share/pear5/PEAR/Command/Channels.php
/usr/share/pear5/PEAR/Command/Channels.xml
/usr/share/pear5/PEAR/Command/Common.php
/usr/share/pear5/PEAR/Command/Config.php
/usr/share/pear5/PEAR/Command/Config.xml
/usr/share/pear5/PEAR/Command/Install.php
/usr/share/pear5/PEAR/Command/Install.xml
/usr/share/pear5/PEAR/Command/Mirror.php
/usr/share/pear5/PEAR/Command/Mirror.xml
/usr/share/pear5/PEAR/Command/Package.php
/usr/share/pear5/PEAR/Command/Package.xml
/usr/share/pear5/PEAR/Command/Pickle.php
/usr/share/pear5/PEAR/Command/Pickle.xml
/usr/share/pear5/PEAR/Command/Registry.php
/usr/share/pear5/PEAR/Command/Registry.xml
/usr/share/pear5/PEAR/Command/Remote.php
/usr/share/pear5/PEAR/Command/Remote.xml
/usr/share/pear5/PEAR/Command/Test.php
/usr/share/pear5/PEAR/Command/Test.xml
/usr/share/pear5/PEAR/Common.php
/usr/share/pear5/PEAR/Config.php
/usr/share/pear5/PEAR/Dependency.php
/usr/share/pear5/PEAR/Dependency2.php
/usr/share/pear5/PEAR/DependencyDB.php
/usr/share/pear5/PEAR/Downloader
/usr/share/pear5/PEAR/Downloader.php
/usr/share/pear5/PEAR/Downloader/Package.php
/usr/share/pear5/PEAR/ErrorStack.php
/usr/share/pear5/PEAR/Exception.php
/usr/share/pear5/PEAR/Frontend
/usr/share/pear5/PEAR/Frontend.php
/usr/share/pear5/PEAR/Frontend/CLI.php
/usr/share/pear5/PEAR/Installer
/usr/share/pear5/PEAR/Installer.php
/usr/share/pear5/PEAR/Installer/Role
/usr/share/pear5/PEAR/Installer/Role.php
/usr/share/pear5/PEAR/Installer/Role/Common.php
/usr/share/pear5/PEAR/Installer/Role/Data.php
/usr/share/pear5/PEAR/Installer/Role/Data.xml
/usr/share/pear5/PEAR/Installer/Role/Doc.php
/usr/share/pear5/PEAR/Installer/Role/Doc.xml
/usr/share/pear5/PEAR/Installer/Role/Ext.php
/usr/share/pear5/PEAR/Installer/Role/Ext.xml
/usr/share/pear5/PEAR/Installer/Role/Php.php
/usr/share/pear5/PEAR/Installer/Role/Php.xml
/usr/share/pear5/PEAR/Installer/Role/Script.php
/usr/share/pear5/PEAR/Installer/Role/Script.xml
/usr/share/pear5/PEAR/Installer/Role/Src.php
/usr/share/pear5/PEAR/Installer/Role/Src.xml
/usr/share/pear5/PEAR/Installer/Role/Test.php
/usr/share/pear5/PEAR/Installer/Role/Test.xml
/usr/share/pear5/PEAR/PackageFile
/usr/share/pear5/PEAR/PackageFile.php
/usr/share/pear5/PEAR/PackageFile/Generator
/usr/share/pear5/PEAR/PackageFile/Generator/v1.php
/usr/share/pear5/PEAR/PackageFile/Generator/v2.php
/usr/share/pear5/PEAR/PackageFile/Parser
/usr/share/pear5/PEAR/PackageFile/Parser/v1.php
/usr/share/pear5/PEAR/PackageFile/Parser/v2.php
/usr/share/pear5/PEAR/PackageFile/v1.php
/usr/share/pear5/PEAR/PackageFile/v2
/usr/share/pear5/PEAR/PackageFile/v2.php
/usr/share/pear5/PEAR/PackageFile/v2/Validator.php
/usr/share/pear5/PEAR/PackageFile/v2/rw.php
/usr/share/pear5/PEAR/Packager.php
/usr/share/pear5/PEAR/REST
/usr/share/pear5/PEAR/REST.php
/usr/share/pear5/PEAR/REST/10.php
/usr/share/pear5/PEAR/REST/11.php
/usr/share/pear5/PEAR/Registry.php
/usr/share/pear5/PEAR/Remote.php
/usr/share/pear5/PEAR/RunTest.php
/usr/share/pear5/PEAR/Task
/usr/share/pear5/PEAR/Task/Common.php
/usr/share/pear5/PEAR/Task/Postinstallscript
/usr/share/pear5/PEAR/Task/Postinstallscript.php
/usr/share/pear5/PEAR/Task/Postinstallscript/rw.php
/usr/share/pear5/PEAR/Task/Replace
/usr/share/pear5/PEAR/Task/Replace.php
/usr/share/pear5/PEAR/Task/Replace/rw.php
/usr/share/pear5/PEAR/Task/Unixeol
/usr/share/pear5/PEAR/Task/Unixeol.php
/usr/share/pear5/PEAR/Task/Unixeol/rw.php
/usr/share/pear5/PEAR/Task/Windowseol
/usr/share/pear5/PEAR/Task/Windowseol.php
/usr/share/pear5/PEAR/Task/Windowseol/rw.php
/usr/share/pear5/PEAR/Validate.php
/usr/share/pear5/PEAR/Validator
/usr/share/pear5/PEAR/Validator/PECL.php
/usr/share/pear5/PEAR/XMLParser.php
/usr/share/pear5/System.php
/usr/share/pear5/data
/usr/share/pear5/data/PEAR
/usr/share/pear5/data/PEAR/package.dtd
/usr/share/pear5/data/PEAR/template.spec
/usr/share/pear5/doc
/usr/share/pear5/doc/Archive_Tar
/usr/share/pear5/doc/Archive_Tar/docs
/usr/share/pear5/doc/Archive_Tar/docs/Archive_Tar.txt
/usr/share/pear5/pearcmd.php
/usr/share/pear5/peclcmd.php
/etc/php5/pear.conf

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: Apache error_log is filling up to abnormal sizes ! (10GB / day)
« Reply #21 on: April 03, 2009, 03:50:51 PM »
Most likely it should be this then:
Code: [Select]
/usr/bin/php5/pear config-show
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline svsleuwen

  • *
  • 29
  • +0/-0
Re: Apache error_log is filling up to abnormal sizes ! (10GB / day)
« Reply #22 on: April 03, 2009, 03:52:55 PM »
Yep you are right..
Output from /usr/bin/php5/pear config-show:

ERROR: either use the CLI php executable, or set register_argc_argv=On in php.ini

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: Apache error_log is filling up to abnormal sizes ! (10GB / day)
« Reply #23 on: April 03, 2009, 04:12:57 PM »
Yep you are right..
Output from /usr/bin/php5/pear config-show:

ERROR: either use the CLI php executable, or set register_argc_argv=On in php.ini
I am not sure that's the cause of your error but you could try setting it to on in the php.ini file for php5.
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline svsleuwen

  • *
  • 29
  • +0/-0
Re: Apache error_log is filling up to abnormal sizes ! (10GB / day)
« Reply #24 on: April 03, 2009, 04:14:49 PM »
I was just doing that as you replied.
Here is the output of /usr/bin/php5/pear config-show:

Configuration (channel pear.php.net):
=====================================
Auto-discover new Channels     auto_discover    <not set>
Default Channel                default_channel  pear.php.net
HTTP Proxy Server Address      http_proxy       <not set>
PEAR server [DEPRECATED]       master_server    pear.php.net
Default Channel Mirror         preferred_mirror pear.php.net
Remote Configuration File      remote_config    <not set>
PEAR executables directory     bin_dir          /usr/bin/php5
PEAR documentation directory   doc_dir          /usr/share/pear5/doc
PHP extension directory        ext_dir          /usr/lib/php5
PEAR directory                 php_dir          /usr/share/pear5
PEAR Installer cache directory cache_dir        /tmp/pear/cache
PEAR data directory            data_dir         /usr/share/pear5/data
PHP CLI/CGI binary             php_bin          /usr/bin/php5/php
PEAR test directory            test_dir         /usr/share/pear5/test
Cache TimeToLive               cache_ttl        3600
Preferred Package State        preferred_state  stable
Unix file mask                 umask            22
Debug Log Level                verbose          1
PEAR password (for             password         <not set>
maintainers)
Signature Handling Program     sig_bin          /usr/bin/gpg
Signature Key Directory        sig_keydir       /etc/php5/pearkeys
Signature Key Id               sig_keyid        <not set>
Package Signature Type         sig_type         gpg
PEAR username (for             username         <not set>
maintainers)
User Configuration File        Filename         /root/.pearrc
System Configuration File      Filename         /etc/php5/pear.conf

Offline svsleuwen

  • *
  • 29
  • +0/-0
Re: Apache error_log is filling up to abnormal sizes ! (10GB / day)
« Reply #25 on: April 04, 2009, 10:18:42 AM »
Dear Cactus!
I have good and Bad news!
I think we have found a bug in Egroupware or PHP5-CGI becourse I am at another customer that has an identical situation / configuration and they have the same problem!
The Httpd Error_log is filling up with the exact same errors....

Hmm shall I inform the mainainer of the Egroupware contrib and the maintainer of the PHP5-CGI contrib?


Offline David Harper

  • *
  • 653
  • +0/-0
  • Watch this space
    • Workgroup Technology Solutions
Re: Apache error_log is filling up to abnormal sizes ! (10GB / day)
« Reply #26 on: April 04, 2009, 11:53:41 AM »
Try updating to the latest version of PHP5-CGI, and then file a bug report if the problem persists.

Offline svsleuwen

  • *
  • 29
  • +0/-0
Re: Apache error_log is filling up to abnormal sizes ! (10GB / day)
« Reply #27 on: April 04, 2009, 02:46:40 PM »
Dear Cactus and David,

I think I've found it!
David suggested to update php5-cgi.
By accident there were Updates from contribs allso for php5-cgi.
Apr 04 10:30:57 Updated: php5-cgi-mysql.i386 5.2.8-1.el4.sme
Apr 04 10:30:57 Updated: php5-cgi-ldap.i386 5.2.8-1.el4.sme
Apr 04 10:30:59 Updated: proftpd.i386 1.3.2-1.el4.rf
Apr 04 10:31:00 Updated: php5-cgi-imap.i386 5.2.8-1.el4.sme
Apr 04 10:31:00 Updated: php5-cgi-xmlrpc.i386 5.2.8-1.el4.sme
Apr 04 10:31:01 Updated: php5-cgi.i386 5.2.8-1.el4.sme
Apr 04 10:31:03 Updated: php5-cgi-pear.i386 5.2.8-1.el4.sme
But then the configuration didn't work anymore.
I started searching on contribs.org for a solution and found the new howto for installing php5-cgi.

http://wiki.contribs.org/PHP5

There I followed the instructions and installed smeserver-php5-cgi.noarch 1.0-2.el4.sme.
I removed the old custom templates and made a new one with the new parameters.

<Directory /opt/egroupware/html/rpc.php>
      AddHandler php5-cgi .php
      Action php5-cgi /php5-cgi/php-cgi
</Directory>

Now I can sync without filling the logs...
I am going to install this allso with my other customer to see if I got it right...
But I have a good feeling...

Have a nice weekend and thanx for your help!

Grtz Simon

Offline David Harper

  • *
  • 653
  • +0/-0
  • Watch this space
    • Workgroup Technology Solutions
Re: Apache error_log is filling up to abnormal sizes ! (10GB / day)
« Reply #28 on: April 04, 2009, 03:09:20 PM »
Nice to hear about the (fingers crossed) happy ending :)

Offline svsleuwen

  • *
  • 29
  • +0/-0
Re: Apache error_log is filling up to abnormal sizes ! (10GB / day)
« Reply #29 on: April 04, 2009, 05:34:28 PM »
Indeed, finger crossed.
It is allways hard to fix something if you don't know allot about the subject.
But I guess there is where the forum comes in handy!

Thanks for thinking allong and giving the right tips!