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
PHP page not displaying on RHEL
Moderator: General Moderators
Re: PHP page not displaying on RHEL
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.
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.
Re: PHP page not displaying on RHEL
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.
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.
Re: PHP page not displaying on RHEL
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?
Re: PHP page not displaying on RHEL
May b something wrong with browser of RHEL, cause its running fine on wondows!!###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.
Re: PHP page not displaying on RHEL
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...amplifire wrote:May b something wrong with browser of RHEL, cause its running fine on wondows!!###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.