PHP page not displaying on RHEL

Whether you are using Linux on the desktop or as a server, it's still good that you're using Linux. Linux related questions go here.

Moderator: General Moderators

Post Reply
amplifire
Forum Newbie
Posts: 23
Joined: Thu Jul 22, 2010 1:09 am
Location: India
Contact:

PHP page not displaying on RHEL

Post by amplifire »

Hi everyone!
I had developed a php code on windows using WAMP server. Now when i shifted my code on to a Linux machine, it is not being displayed.
1) I am using RHEL5. PHP versions are same on both machines.
2) I configured my Apache server and set my DocumentRoot pointing to my application.
3) I named my server as www.myServer.com
4) Registered Globals in php.ini (I am using registered globals in session part, thats why)

Now when i accessed my site, although it is displaying title, it is not displaying the rest of the contents of my page.
When i accessed another page where i wasn't using any registered globals, it opened fine.

I am figuring that there is some problem in registering globals, but what?
Please share any experience regarding the above mentioned problem.

Regards
longvnit
Forum Newbie
Posts: 2
Joined: Thu Sep 23, 2010 7:02 am

Re: PHP page not displaying on RHEL

Post by longvnit »

You can show your site log of this page ?
You can create info.php with content <?php phpinfo(); ?> in web root folder and access its. It is show php configuration if it doesn't not show then Webserver can be some problems.
User avatar
Darhazer
DevNet Resident
Posts: 1011
Joined: Thu May 14, 2009 3:00 pm
Location: HellCity, Bulgaria

Re: PHP page not displaying on RHEL

Post by Darhazer »

Probably there is a Fatal error class (missing extension for example or something other) but you have set display_erros to off :)
Either check your error log or set display_errors to on and error_reporting to E_ALL to see the exact error that causes the blank page.
amplifire
Forum Newbie
Posts: 23
Joined: Thu Jul 22, 2010 1:09 am
Location: India
Contact:

Re: PHP page not displaying on RHEL

Post by amplifire »

thanks for for your reply bros, but I am a RHCE Server is alright, Even PHP is running on WAMP and XAMP. Kya yeh problem Apache ki ho sakti hai. Should i do something with apache?
amplifire
Forum Newbie
Posts: 23
Joined: Thu Jul 22, 2010 1:09 am
Location: India
Contact:

Re: PHP page not displaying on RHEL

Post by amplifire »

Darhazer wrote:Probably there is a Fatal error class (missing extension for example or something other) but you have set display_erros to off :)
Either check your error log or set display_errors to on and error_reporting to E_ALL to see the exact error that causes the blank page.
May b something wrong with browser of RHEL, cause its running fine on wondows!!###
User avatar
Darhazer
DevNet Resident
Posts: 1011
Joined: Thu May 14, 2009 3:00 pm
Location: HellCity, Bulgaria

Re: PHP page not displaying on RHEL

Post by Darhazer »

amplifire wrote:
Darhazer wrote:Probably there is a Fatal error class (missing extension for example or something other) but you have set display_erros to off :)
Either check your error log or set display_errors to on and error_reporting to E_ALL to see the exact error that causes the blank page.
May b something wrong with browser of RHEL, cause its running fine on wondows!!###
Don't try to guess it, try to find it. The fact that PHP versions are the same doesn't mean the server configurations are the same. Maybe you are using some extension that is by default enabled in your WAMP or not in the sevrer. Maybe database credentials you've entered are wrong for the server. Maybe you are using something OS specific or ... it can be everything. So first of all check for fatal errors that are stopping your script from execution. If it doesn't help, you can open your file and put die('message') statement in the beginning. If it is displayed, than the problem is not that PHP is not working on the server...
Post Reply