|
Debug ChartDirector - Apache crash |
Posted by Dijkstra on Jan-23-2013 20:13 |
|
Dear,
In August I have made a post on the Forum: [Aug-20-2012 07:07] Problem Chart, apache blocks the chart (Dijkstra). Please read first the topic of Aug-20.
There problem is that Apache crashes. I solved that to use CentOS 5.9 (x86_64) and not centOS 6.2 (x86_64). Now I want to update teh OS but the problem still remains.
The only error I can find is in de Apache erro log (exit signal Illegal instruction (4)).
Is there a way to debug to see what goes wrong? If Yes, please tell me what to do? |
Re: Debug ChartDirector - Apache crash |
Posted by Peter Kwan on Jan-24-2013 00:54 |
|
Hi Dijkstra,
From my understanding from your previous message, the system you are using is a virtual machine provided by your hosting company. The virtual matchine identify itself as running CentOS 6.2, and the Apache version is 2.2.24 and the PHP is 5.2.17.
Because CentOS 6.2 does not include Apache 2.2.24 (the Apache version is 2.2.15), and does not include PHP 5.2.17 (the PHP version is 5.3.3), I think the Apache/PHP in your system does not come from CentOS. It may be custom compiled by the hosting company that supplies the virtual machine.
As mentioned in my previous message, I have tested ChartDirector with CentOS 6.3 (installed as a VMWare Virtual Machine), with the Apache/PHP included in CentOS (which is the same as the ones in the official CentOS 6.2 distirbution), and it works normally.
So I suspect the issue in the case is the compatibility with the custom compiled Apache/PHP. If you have compiled programs in Linux before, you probably know that the first step is to run the "./configure" script. The "./configure" script will customize the code for the machine, so that the code can compile and work on the machine. However, if done incorrectly, it can easily produce an executable that can only run on that machine, but not compatible with other binaries not compiled on the same machine (as the executable is "too customized" for the machine).
I am not sure if you can uninstall and reinstall software. One method you can try is to uninstall the Apache/PHP, then reinstall the ones that come with CentOS 6. (Please backup your virtual machine first, so that you can rollback to the original virtual machine if necessary.) In CentOS, there is a utility called "yum" for software management. You can use it to install httpd and php. See:
Yum usage
========
http://www.centos.org/docs/5/html/5.1/Deployment_Guide/s1-yum-useful-commands.html
After installing httpd and php, you may want to use "yum update" to update all your other packages and the OS as well.
Regards
Peter Kwan |
Re: Debug ChartDirector - Apache crash |
Posted by Dijkstra on Jan-24-2013 17:19 |
|
Dear Peter,
the versions my new system are: Centos 6.2 -Apache 2.2.22 - Php 5.3.10
I run Yum update and I've seen files/types like:
centos-release-6-3.el6.centos.9.x86_64.rpm
el6.centos.x86_64
centos-realease.x86_64
So I think it is certain that it is Centos.
But.....after the update Yum the phpdemo graph WORKS!!! YooHooo!!
Ik think that the provider has give me a centos 6.2 where not every module was installed.
The problem now is that I not know what the problem was. Is there a way to diff before yum update and after yum update? So we can see the diffrents?
Greets |
Re: Debug ChartDirector - Apache crash |
Posted by Peter Kwan on Jan-25-2013 01:09 |
|
Hi Dijkstra,
I suppose you can create a script to read the full path names and sizes and dates of all files in the hard disk, sort them, and save them to a text file. (May be "ls" can already do this.) If you prepare two such files, one obtained before the update, and one after the update, it should be possible to "diff" them using standard diff tools.
Regards
Peter Kwan |
Re: Debug ChartDirector - Apache crash |
Posted by Dijkstra on Jan-25-2013 16:55 |
|
Dear Peter,
thanks! I'll try that.
Greets |
|