This topic is locked
[SOLVED]

 Linux Apache Doesn't Display Everything

7/9/2013 11:40:48 AM
PHPRunner General questions
B
bellocs author

Hi,
We're running into an odd little problem. We generate the code and run it on the built in PHPRunner webserver and everything seems to run fine. But once we upload the project to our Red Hat Enterprise 5 with kernel 2.6.18-348.1.1.el5 and using Apache/2.2.3 we lose some of the elements of the menu.php page.
Precisely, we are losing the top menu bar and in the dropdown list we only see a single element while there should be at least 6. We also have the following php packages installed on the server:
(root)# yum list| grep php

php.x86_64 5.1.6-39.el5_8 installed

php-cli.x86_64 5.1.6-39.el5_8 installed

php-common.x86_64 5.1.6-39.el5_8 installed

php-dba.x86_64 5.1.6-39.el5_8 installed

php-devel.x86_64 5.1.6-39.el5_8 installed

php-ldap.x86_64 5.1.6-39.el5_8 installed

php-pear.noarch 1:1.4.9-8.el5 installed

php-soap.x86_64 5.1.6-39.el5_8 installed

php-xml.x86_64 5.1.6-39.el5_8 installed
We are using PHPRunner 6.2 and using an Oracle database.
(root)# yum list| grep oracle

oracle-config.noarch 1.1-7.el5sat installed

oracle-instantclient-basic.x86_64 10.2.0.4-1 installed

oracle-instantclient-devel.x86_64 10.2.0.4-1 installed

C
cgphp 7/9/2013

Did you port the database from localhost to the Red Hat server? It could be a issue related to the dynamic permissions. Do you get errors in Firebug or Chrome developer tools?

B
bellocs author 7/9/2013

No, database is remote and accessed via TNS names. I can access and browse the database without issue (with the single element from the drop down menu). I don't see any errors in Firebug, which is what's bugging me the most.

C
cgphp 7/9/2013

Check the PHP log file for errors on the Red Hat server or enable the "displaying error" directive in the php.ini file.

B
bellocs author 7/9/2013

No errors are appearing in PHP or Apache logs.

C
cgphp 7/9/2013

Are you experimenting the same issue using a different PHP version?

B
bellocs author 7/9/2013

Hmm, I could test that. Let me dig around the lab for a server with a different version of PHP. I'll get back to you on that.
Thanks!

B
bellocs author 7/9/2013



Are you experimenting the same issue using a different PHP version?


This was an excellent idea. After messing around with RH Satelite to get the new packages, I upgraded PHP to version 5.3.3

[root]# php -v

PHP 5.3.3 (cli) (built: Jun 25 2012 04:50:05)

Copyright (c) 1997-2010 The PHP Group

Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies
However, I had to recompile the oci8 module and readd the module extension in php.ini

1287 tar xvf oci8-1.4.9.tar

1310 cd oci8-1.4.9/

1313 ./configure --with-oci8=shared,instantclient,/usr/lib/oracle/10.2.0.4/client64/lib

1314 php-config --extension-dir

1315 cp /usr/lib64/php/modules/oci8.so /var/tmp/

1316 ls -l /var/tmp/

1317 make all install

1318 cd /usr/lib64/php/modules/

1319 ls -l

1320 vi /etc/php.ini

1321 /etc/init.d/httpd restart
(Writing all of this down in case anyone has the same problem as I did)