[BlueOnyx:07009] Re: Blueonyx Digest, Vol 28, Issue 30

Rashid Mustapha RashidM at cts-europe.com
Tue Apr 12 12:03:53 -05 2011


Hello Michael,

Thank you for your prompt advice! My BlueOnyx machines were installed
from the .iso
on the blueonyx.it site. They are all vanilla. i.e - No added repos, no
other apps
, no tweaks or plugins installed (aside from Midnight Commander, but
that is hardly
going to break anything!) 

As you suggested I restarted cced and it shut down ok and restarted with
: 

Running CCE constructors:

It sat there for about half a minute and returned no error when I got
the shell back.

running '/etc/init.d/cced.init status' told me the process is indeed
alive, but still 
no joy - I still get the error :(

On to the php. I did suspect this to begin, and I interrogated it:

'php --version'

This reported that I am apparently running:

PHP 5.1.6 (cli) (buit: Nov 29 2010 16:47:37)
Copyright (c) 1997-2006 The PHP Group
Zend Engine v2.1.0, Copyright (c) 1998-2006 Zend Technologies
with the ionCube PHP Loader v3.1.31, Copyright (c) 2002-2007, by ionCube
Ltd

This is the identical output I get on the healthy BlueOnyx machines. 

As you can imagine I am pretty baffled by this.

Best regards,

Rash.
 

Message: 1
Date: Tue, 12 Apr 2011 17:11:04 +0200
From: Michael Stauber <mstauber at blueonyx.it>
Subject: [BlueOnyx:07005] Re: Apache error problem
To: BlueOnyx General Mailing List <blueonyx at blueonyx.it>
Message-ID: <201104121711.04827.mstauber at blueonyx.it>
Content-Type: text/plain; charset="utf-8"

Hi Rashid,

> I wonder if anyone is able to suggest what is wrong with one of my
Blueonyx
> boxes. I has three but a few days ago one of them started returning
and
> error ? the other two are fine! The error is : 
>  
> Fatal error: Call to undefined function printPage() in
> /usr/sausalito/ui/web/login.php on line 31 

This error happens if the GUI pages for the BlueOnyx interface can not 
communicated with the the CCE engine which is the backend behind the
GUI. The 
problem can happen if the service CCEd is down really hard.

In that case restart it with "/etc/init.d/cced.init restart" as "root".

The other cause could be that you are running a PHP different than the
"stock" 
php-5.1.6 that's usually present on BlueOnyx.

The GUI interface of BlueOnyx requires that you run the PHP-5.1.6 that
comes 
with CentOS-5. There are PHP-5.3 and PHP-5.3 PHP PKGs available from
different 
third party software vendors, which will work with BlueOnyx, but
anything else 
not specifically designed for BlueOnyx will typically cause problems.

Did you by chance compile PHP on your own, or did you install a custom 
compiled PHP from someone else? That's probably the problem.
  
> I did the obvious yum clean all and updated, no fix. I had a poke
around
> and discovered that in /etc/httpd/conf.d/php.conf the following lines
were
> commented out : 
> #AddHandler php5-script .php
> #AddType text/html .php
>  
> I rectified this, decided a reboot was in order after the update, but
it is
> still returning the same error. Furthermore, I note that these lines
seem
> to be commented out again (however I did run the fix php conf script).

Yes, that is normal and expected. Typically PHP is disabled globally in
Apache 
on BlueOnyx. But when a site has PHP usage enabled, then the respective 
AddHandler and AddType are added into the config of just the sites that
have 
PHP support enabled.

-- 
With best regards

Michael Stauber
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://www.blueonyx.it/pipermail/blueonyx/attachments/20110412/b615c9dd/
attachment-0001.html 

------------------------------

_______________________________________________
Blueonyx mailing list
Blueonyx at blueonyx.it
http://www.blueonyx.it/mailman/listinfo/blueonyx


End of Blueonyx Digest, Vol 28, Issue 30
****************************************




More information about the Blueonyx mailing list