[PHP] Various errors being generated from an apache/php combo

2006-09-27 Thread Steve Walker
Hi there,

I have a number of errors coming from our dedicated box and was hoping
someone could shed some light on what might be happening. These errors could
be independent or inter-related.

We see the errors when running content management systems on the server, I
posted to their forum
http://ez.no/community/forum/install_configuration/method_not_implemented_er
ror_php_fatal_error but have got no joy.

A summary of 3 of the errors are:

The first is:

Method Not Implemented
iefing.co.uk to /index.html not supported.

This happened when saving an item in the cms - hitting refresh then took it
to the page it should have landed on rather than giving this error.

The second is deleting an product item from another cms site on the same
box. It gives a Fatal Error Ez message and the logs show:

[client 80.58.205.38] PHP Fatal error: Call to undefined function:
cleanupbynode() in
/var/www/vhosts/demos.oneworldmarket.co.uk/httpdocs/gems/kernel/classes/ezco
ntentobjecttreenode.php on line 2684

Again, hitting refresh the page then loads fine, with the item deleted

The third - on mambo site we have a problem when saving a page, it error
400's and the logs say:

[client 80.58.205.38] PHP Warning:  fopen(../configuration.php): failed to
open stream: Permission denied in
/var/www/vhosts/oneworldmarket.co.uk/httpdocs/demo_business/administrator/co
mponents/com_config/admin.config.php on line 463

I realise these could just be independent problems - but the box is very
new, it was an out the box 1and1 dedicated server - we have added config
tweaks to httpd.conf, eaccelerator, zend optimiser (for running encoded
script only), mod_security (disabling this doesn't seem to solve the
issues). We downgraded php from 5 to 4.3, I wondered if this might have
something to do with it..?

What seems very odd is that with all these problems hitting refresh on the
browser then takes you to the point the script would have ended up at if it
hadn't errored...

If an one could give some instruction on nailing this down I would be very
grateful. I have pasted our phpinfo below, let me know if you require
httpd.conf

Kind regards, Steve

-

PHP Version 4.3.11

System  Linux s15223417.onlinehome-server.info 2.6.16-rc6-060427a #1 SMP Thu
Apr 27 10:38:19 CEST 2006 i686
Build Date  Nov 8 2005 06:25:44
Configure Command   './configure' '--build=i386-redhat-linux'
'--host=i386-redhat-linux' '--target=i386-redhat-linux-gnu'
'--program-prefix=' '--prefix=/usr' '--exec-prefix=/usr' '--bindir=/usr/bin'
'--sbindir=/usr/sbin' '--sysconfdir=/etc' '--datadir=/usr/share'
'--includedir=/usr/include' '--libdir=/usr/lib' '--libexecdir=/usr/libexec'
'--localstatedir=/var' '--sharedstatedir=/usr/com' '--mandir=/usr/share/man'
'--infodir=/usr/share/info' '--cache-file=../config.cache'
'--with-config-file-path=/etc' '--with-config-file-scan-dir=/etc/php.d'
'--enable-force-cgi-redirect' '--disable-debug' '--enable-pic'
'--disable-rpath' '--enable-inline-optimization' '--with-bz2'
'--with-db4=/usr' '--with-curl' '--with-exec-dir=/usr/bin'
'--with-freetype-dir=/usr' '--with-png-dir=/usr' '--with-gd=shared'
'--enable-gd-native-ttf' '--without-gdbm' '--with-gettext'
'--with-ncurses=shared' '--with-gmp' '--with-iconv' '--with-jpeg-dir=/usr'
'--with-openssl' '--with-png' '--with-pspell' '--with-xml'
'--with-expat-dir=/usr' '--with-dom=shared,/usr' '--with-dom-xslt=/usr'
'--with-dom-exslt=/usr' '--with-xmlrpc=shared' '--with-pcre-regex=/usr'
'--with-zlib' '--with-layout=GNU' '--enable-bcmath' '--enable-exif'
'--enable-ftp' '--enable-magic-quotes' '--enable-sockets' '--enable-sysvsem'
'--enable-sysvshm' '--enable-track-vars' '--enable-trans-sid' '--enable-yp'
'--enable-wddx' '--with-pear=/usr/share/pear' '--with-imap=shared'
'--with-imap-ssl' '--with-kerberos' '--with-ldap=shared'
'--with-mysql=shared,/usr' '--with-pgsql=shared' '--with-snmp=shared,/usr'
'--with-snmp=shared' '--enable-ucd-snmp-hack' '--with-unixODBC=shared,/usr'
'--enable-memory-limit' '--enable-shmop' '--enable-calendar' '--enable-dbx'
'--enable-dio' '--enable-mbstring=shared' '--enable-mbstr-enc-trans'
'--enable-mbregex' '--with-mime-magic=/usr/share/file/magic.mime'
'--with-pic' '--with-apxs2=/usr/sbin/apxs'
Server API  Apache 2.0 Handler
Virtual Directory Support   disabled
Configuration File (php.ini) Path   /etc/php.ini
Scan this dir for additional .ini files /etc/php.d
additional .ini files parsed/etc/php.d/dom.ini,
/etc/php.d/eaccelerator.ini, /etc/php.d/gd.ini, /etc/php.d/imap.ini,
/etc/php.d/mbstring.ini, /etc/php.d/mysql.ini, /etc/php.d/mysqli.ini,
/etc/php.d/sitebuilder.ini, /etc/php.d/xmlrpc.ini, /etc/php.d/xsl.ini,
/etc/php.d/zip.ini
PHP API 20020918
PHP Extension   20020429
Zend Extension  20021010
Debug Build no
Thread Safety   disabled
Registered PHP Streams  php, http, ftp, https, ftps, compress.bzip2,
compress.zlib

Zend logo This program makes use of the Zend Scripti

RE: [PHP] Re: Various errors being generated from an apache/php combo

2006-09-27 Thread Steve Walker
Thanks Kae and Rick for your replies.

One of things I should have mentioned is that all these sites have been
migrated from another box on which they were working fine, which is why I've
been questioning the box itself rather than the cms's. 

Kind regards, Steve.

> -Original Message-
> From: Kae Verens [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, September 27, 2006 13:58
> To: Steve Walker
> Cc: php-general@lists.php.net
> Subject: [PHP] Re: Various errors being generated from an 
> apache/php combo
> 
> Steve Walker wrote:
> > [client 80.58.205.38] PHP Fatal error: Call to undefined function:
> > cleanupbynode() in
> > 
> /var/www/vhosts/demos.oneworldmarket.co.uk/httpdocs/gems/kernel/classe
> > s/ezco
> > ntentobjecttreenode.php on line 2684
> 
> could be that the function cleanupbynode() is defined in the 
> wrong place (ie; after it is actually needed)
> 
> > [client 80.58.205.38] PHP Warning:  fopen(../configuration.php): 
> > failed to open stream: Permission denied in 
> > 
> /var/www/vhosts/oneworldmarket.co.uk/httpdocs/demo_business/administra
> > tor/co mponents/com_config/admin.config.php on line 463
> 
> could be that configuration.php is saved using your 
> oneworldmarket username instead of the httpd's username.
> 
> > What seems very odd is that with all these problems hitting 
> refresh on 
> > the browser then takes you to the point the script would 
> have ended up 
> > at if it hadn't errored...
> 
> it might be that there is a redirect happening, so refreshing 
> the page doesn't send data to the same location as before.
> 
> 
> just a few thoughts,
> 
> Kae
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
> 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] Re: Various errors being generated from an apache/php combo

2006-09-27 Thread Steve Walker
Cheers Rick.

Well, I tested with a fresh install of a tried and tested cms. We can
recreate the errors on that as well, so it may not be the migrated systems
fault.

Just to add more confusion, the errors are intermittent - sometimes it works
fine, other times we get these errors which makes it even more difficult to
pinpoint.

Steve. 

> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, September 27, 2006 15:28
> To: Steve Walker
> Subject: RE: [PHP] Re: Various errors being generated from an 
> apache/php combo
> 
> it sounds like when things were migrated not everything got 
> set down quite the way it was in the original environment.
> 
> ideally you still have the "old" environment available to 
> check against. if you do, compare the permissions of the 
> "configuration.php"
> file (and directory) between old and new. you'll also likely 
> want to check what user/group your apache server is running 
> as now, as compared to the previous environment.
> 
> on the missing function, do a search through the 
> (application/cms) libraries/classes on the old machine to see 
> where the missing one is.
> then check things on the new machine. this may be a pathing 
> issue, or it could be that something didn't get installed.
> 
> if you don't have the old machine available, then this is 
> will require more work and digging. 
> 
> [rule -- never give up the old environment until you're 
> *certain* that things work on the new - and even then, tar up 
> everything (in reasonable pieces) so that you can compare at 
> a later date if necessary.]
> 
>   - Rick
> 
> 
>  Original Message 
> > Date: Wednesday, September 27, 2006 02:58:46 PM +0200
> > From: Steve Walker <[EMAIL PROTECTED]>
> > To: php-general@lists.php.net
> > Subject: RE: [PHP] Re: Various errors being generated from an
> apache/php combo
> > 
> > Thanks Kae and Rick for your replies.
> > 
> > One of things I should have mentioned is that all these sites have 
> > been migrated from another box on which they were working 
> fine, which 
> > is why I've been questioning the box itself rather than the cms's.
> > 
> > Kind regards, Steve.
> > 
> >> -Original Message-
> >> From: Kae Verens [mailto:[EMAIL PROTECTED]
> >> Sent: Wednesday, September 27, 2006 13:58
> >> To: Steve Walker
> >> Cc: php-general@lists.php.net
> >> Subject: [PHP] Re: Various errors being generated from an 
> apache/php 
> >> combo
> >> 
> >> Steve Walker wrote:
> >> > [client 80.58.205.38] PHP Fatal error: Call to undefined 
> function:
> >> > cleanupbynode() in
> >> > 
> >> 
> /var/www/vhosts/demos.oneworldmarket.co.uk/httpdocs/gems/kernel/clas
> >> se
> >> > s/ezco
> >> > ntentobjecttreenode.php on line 2684
> >> 
> >> could be that the function cleanupbynode() is defined in the wrong 
> >> place (ie; after it is actually needed)
> >> 
> >> > [client 80.58.205.38] PHP Warning:  fopen(../configuration.php): 
> >> > failed to open stream: Permission denied in
> >> > 
> >> 
> /var/www/vhosts/oneworldmarket.co.uk/httpdocs/demo_business/administ
> >> ra
> >> > tor/co mponents/com_config/admin.config.php on line 463
> >> 
> >> could be that configuration.php is saved using your oneworldmarket 
> >> username instead of the httpd's username.
> >> 
> >> > What seems very odd is that with all these problems hitting
> >> refresh on
> >> > the browser then takes you to the point the script would
> >> have ended up
> >> > at if it hadn't errored...
> >> 
> >> it might be that there is a redirect happening, so refreshing the 
> >> page doesn't send data to the same location as before.
> >> 
> >> 
> >> just a few thoughts,
> >> 
> >> Kae
> >> 
> 
> 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] Re: Various errors being generated from an apache/php combo

2006-09-27 Thread Steve Walker
> are you using an opcode cache?

Yes, we have eaccelerator running.
 
> > 
> > Steve. 
> > 
> >> -Original Message-
> >> From: [EMAIL PROTECTED]
> >> [mailto:[EMAIL PROTECTED]
> >> Sent: Wednesday, September 27, 2006 15:28
> >> To: Steve Walker
> >> Subject: RE: [PHP] Re: Various errors being generated from an 
> >> apache/php combo
> >>
> >> it sounds like when things were migrated not everything 
> got set down 
> >> quite the way it was in the original environment.
> >>
> >> ideally you still have the "old" environment available to check 
> >> against. if you do, compare the permissions of the 
> >> "configuration.php"
> >> file (and directory) between old and new. you'll also 
> likely want to 
> >> check what user/group your apache server is running as now, as 
> >> compared to the previous environment.
> >>
> >> on the missing function, do a search through the
> >> (application/cms) libraries/classes on the old machine to 
> see where 
> >> the missing one is.
> >> then check things on the new machine. this may be a 
> pathing issue, or 
> >> it could be that something didn't get installed.
> >>
> >> if you don't have the old machine available, then this is will 
> >> require more work and digging.
> >>
> >> [rule -- never give up the old environment until you're
> >> *certain* that things work on the new - and even then, tar up 
> >> everything (in reasonable pieces) so that you can compare 
> at a later 
> >> date if necessary.]
> >>
> >>   - Rick
> >>
> >>
> >>  Original Message 
> >>> Date: Wednesday, September 27, 2006 02:58:46 PM +0200
> >>> From: Steve Walker <[EMAIL PROTECTED]>
> >>> To: php-general@lists.php.net
> >>> Subject: RE: [PHP] Re: Various errors being generated from an
> >> apache/php combo
> >>> Thanks Kae and Rick for your replies.
> >>>
> >>> One of things I should have mentioned is that all these 
> sites have 
> >>> been migrated from another box on which they were working
> >> fine, which
> >>> is why I've been questioning the box itself rather than the cms's.
> >>>
> >>> Kind regards, Steve.
> >>>
> >>>> -Original Message-
> >>>> From: Kae Verens [mailto:[EMAIL PROTECTED]
> >>>> Sent: Wednesday, September 27, 2006 13:58
> >>>> To: Steve Walker
> >>>> Cc: php-general@lists.php.net
> >>>> Subject: [PHP] Re: Various errors being generated from an
> >> apache/php
> >>>> combo
> >>>>
> >>>> Steve Walker wrote:
> >>>>> [client 80.58.205.38] PHP Fatal error: Call to undefined
> >> function:
> >>>>> cleanupbynode() in
> >>>>>
> >> 
> /var/www/vhosts/demos.oneworldmarket.co.uk/httpdocs/gems/kernel/clas
> >>>> se
> >>>>> s/ezco
> >>>>> ntentobjecttreenode.php on line 2684
> >>>> could be that the function cleanupbynode() is defined in 
> the wrong 
> >>>> place (ie; after it is actually needed)
> >>>>
> >>>>> [client 80.58.205.38] PHP Warning:  
> fopen(../configuration.php): 
> >>>>> failed to open stream: Permission denied in
> >>>>>
> >> 
> /var/www/vhosts/oneworldmarket.co.uk/httpdocs/demo_business/administ
> >>>> ra
> >>>>> tor/co mponents/com_config/admin.config.php on line 463
> >>>> could be that configuration.php is saved using your 
> oneworldmarket 
> >>>> username instead of the httpd's username.
> >>>>
> >>>>> What seems very odd is that with all these problems hitting
> >>>> refresh on
> >>>>> the browser then takes you to the point the script would
> >>>> have ended up
> >>>>> at if it hadn't errored...
> >>>> it might be that there is a redirect happening, so 
> refreshing the 
> >>>> page doesn't send data to the same location as before.
> >>>>
> >>>>
> >>>> just a few thoughts,
> >>>>
> >>>> Kae
> >>>>
> >>
> > 
> 
> 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] Re: Various errors being generated from an apache/php combo

2006-09-27 Thread Steve Walker
Thanks Jochem.

We tested with both modules switched off and it made no difference. I was
suspicious about mod_security, but again it doesn't seem to causing the
problem.

Steve. 

> -Original Message-
> From: Jochem Maas [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, September 27, 2006 17:31
> To: Steve Walker
> Subject: Re: [PHP] Re: Various errors being generated from an 
> apache/php combo
> 
> Steve Walker wrote:
> >> are you using an opcode cache?
> > 
> > Yes, we have eaccelerator running.
> 
> turn it off and see if your errors go away. if they do then 
> it's possibly time to find another accelerator.
> 
> APC is a good one to try: php.net/apc
> 
> otherwise you may have to look at commercial solutions ... 
> (read: 'Zend')
> 
> >  
> >>> Steve. 
> >>>
> >>>> -Original Message-
> >>>> From: [EMAIL PROTECTED]
> >>>> [mailto:[EMAIL PROTECTED]
> >>>> Sent: Wednesday, September 27, 2006 15:28
> >>>> To: Steve Walker
> >>>> Subject: RE: [PHP] Re: Various errors being generated from an 
> >>>> apache/php combo
> >>>>
> >>>> it sounds like when things were migrated not everything
> >> got set down
> >>>> quite the way it was in the original environment.
> >>>>
> >>>> ideally you still have the "old" environment available to check 
> >>>> against. if you do, compare the permissions of the 
> >>>> "configuration.php"
> >>>> file (and directory) between old and new. you'll also
> >> likely want to
> >>>> check what user/group your apache server is running as now, as 
> >>>> compared to the previous environment.
> >>>>
> >>>> on the missing function, do a search through the
> >>>> (application/cms) libraries/classes on the old machine to
> >> see where
> >>>> the missing one is.
> >>>> then check things on the new machine. this may be a
> >> pathing issue, or
> >>>> it could be that something didn't get installed.
> >>>>
> >>>> if you don't have the old machine available, then this is will 
> >>>> require more work and digging.
> >>>>
> >>>> [rule -- never give up the old environment until you're
> >>>> *certain* that things work on the new - and even then, tar up 
> >>>> everything (in reasonable pieces) so that you can compare
> >> at a later
> >>>> date if necessary.]
> >>>>
> >>>>   - Rick
> >>>>
> >>>>
> >>>>  Original Message ----
> >>>>> Date: Wednesday, September 27, 2006 02:58:46 PM +0200
> >>>>> From: Steve Walker <[EMAIL PROTECTED]>
> >>>>> To: php-general@lists.php.net
> >>>>> Subject: RE: [PHP] Re: Various errors being generated from an
> >>>> apache/php combo
> >>>>> Thanks Kae and Rick for your replies.
> >>>>>
> >>>>> One of things I should have mentioned is that all these
> >> sites have
> >>>>> been migrated from another box on which they were working
> >>>> fine, which
> >>>>> is why I've been questioning the box itself rather than 
> the cms's.
> >>>>>
> >>>>> Kind regards, Steve.
> >>>>>
> >>>>>> -Original Message-
> >>>>>> From: Kae Verens [mailto:[EMAIL PROTECTED]
> >>>>>> Sent: Wednesday, September 27, 2006 13:58
> >>>>>> To: Steve Walker
> >>>>>> Cc: php-general@lists.php.net
> >>>>>> Subject: [PHP] Re: Various errors being generated from an
> >>>> apache/php
> >>>>>> combo
> >>>>>>
> >>>>>> Steve Walker wrote:
> >>>>>>> [client 80.58.205.38] PHP Fatal error: Call to undefined
> >>>> function:
> >>>>>>> cleanupbynode() in
> >>>>>>>
> >> 
> /var/www/vhosts/demos.oneworldmarket.co.uk/httpdocs/gems/kernel/clas
> >>>>>> se
> >>>>>>> s/ezco
> >>>>>>> ntentobjecttreenode.php on line 2684
> >>>>>> could be that the function cleanupbynode() is defined in
> >> the wrong
> >>>>>> place (ie; after it is actually needed)
> >>>>>>
> >>>>>>> [client 80.58.205.38] PHP Warning:  
> >> fopen(../configuration.php): 
> >>>>>>> failed to open stream: Permission denied in
> >>>>>>>
> >> 
> /var/www/vhosts/oneworldmarket.co.uk/httpdocs/demo_business/administ
> >>>>>> ra
> >>>>>>> tor/co mponents/com_config/admin.config.php on line 463
> >>>>>> could be that configuration.php is saved using your
> >> oneworldmarket
> >>>>>> username instead of the httpd's username.
> >>>>>>
> >>>>>>> What seems very odd is that with all these problems hitting
> >>>>>> refresh on
> >>>>>>> the browser then takes you to the point the script would
> >>>>>> have ended up
> >>>>>>> at if it hadn't errored...
> >>>>>> it might be that there is a redirect happening, so
> >> refreshing the
> >>>>>> page doesn't send data to the same location as before.
> >>>>>>
> >>>>>>
> >>>>>> just a few thoughts,
> >>>>>>
> >>>>>> Kae
> >>>>>>
> >>
> > 
> 
> 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php