blank page with two PHP versions

Mise

Well-Known Member
May 15, 2011
49
3
58
I have a dedicated server with Apache 2.2.24, PHP 5.29 + Mod SuPHP.
I have installed php 5.29 (main) + php 5.3 following this guide: Blog - Running PHP 5.3 along with PHP 5.2.x in cPanel servers

I'm trying to configure one user with php 5.3. However, I'm getting a blank page and I can see php code in source code page:

/home/ndomain/public_html/index.php:
Code:
<?
phpinfo();
?>
inside customer /public_html I have:
- .htaccess:
Code:
AddHandler application/x-httpd-php53 .php
- php.ini
- I keep folder /cgi-bin empty

I cannot locate the error inside apache logs:

/etc/httpd/logs/suexec.log:
Code:
[2013-03-30 14:18:15]: uid: (537/ndomain) gid: (535/ndomain) cmd: php53
/etc/httpd/domlogs/ndomain/ndomain.com
Code:
[30/Mar/2013:14:18:15 +0100] "GET /index.php HTTP/1.0" 200 29 "-" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0)"
this is ndomain.com config inside /etc/httpd/conf/httpd.conf
Code:
<VirtualHost 120.120.120.1:80>                                                                                                                                                                                        
    ServerName ndomain.com                                                                                                                                                                                            
    ServerAlias www.ndomain.com                                                                                                                                                                                       
    DocumentRoot /home/ndomain/public_html                                                                                                                                                                            
    ServerAdmin [email protected]                                                                                                                                                                                 
    UseCanonicalName Off                                                                                                                                                                                               
    CustomLog /usr/local/apache/domlogs/ndomain.com combined                                                                                                                                                          
    CustomLog /usr/local/apache/domlogs/ndomain.com-bytes_log "%{%s}t %I .\n%{%s}t %O ."                                                                                                                              
    ## User ndomain # Needed for Cpanel::ApacheConf                                                                                                                                                                   
    UserDir disabled                                                                                                                                                                                                   
    UserDir enabled ndomain                                                                                                                                                                                           
    <IfModule mod_suphp.c>                                                                                                                                                                                             
        suPHP_UserGroup ndomain ndomain                                                                                                                                                                              
    </IfModule>                                                                                                                                                                                                        
    <IfModule concurrent_php.c>                                                                                                                                                                                        
        php4_admin_value open_basedir "/home/ndomain:/usr/lib/php:/usr/php4/lib/php:/usr/local/lib/php:/usr/local/php4/lib/php:/tmp"                                                                                  
        php5_admin_value open_basedir "/home/ndomain:/usr/lib/php:/usr/local/lib/php:/tmp"                                                                                                                            
    </IfModule>                                                                                                                                                                                                        
    <IfModule !concurrent_php.c>                                                                                                                                                                                       
        <IfModule mod_php4.c>                                                                                                                                                                                          
            php_admin_value open_basedir "/home/ndomain:/usr/lib/php:/usr/php4/lib/php:/usr/local/lib/php:/usr/local/php4/lib/php:/tmp"                                                                               
        </IfModule>                                                                                                                                                                                                    
        <IfModule mod_php5.c>                                                                                                                                                                                          
            php_admin_value open_basedir "/home/ndomain:/usr/lib/php:/usr/local/lib/php:/tmp"                                                                                                                         
        </IfModule>                                                                                                                                                                                                    
        <IfModule sapi_apache2.c>                                                                                                                                                                                      
            php_admin_value open_basedir "/home/ndomain:/usr/lib/php:/usr/php4/lib/php:/usr/local/lib/php:/usr/local/php4/lib/php:/tmp"                                                                               
        </IfModule>                                                                                                                                                                                                    
    </IfModule>                                                                                                                                                                                                        
    <IfModule !mod_disable_suexec.c>                                                                                                                                                                                   
        <IfModule !mod_ruid2.c>                                                                                                                                                                                        
            SuexecUserGroup ndomain ndomain                                                                                                                                                                          
        </IfModule>                                                                                                                                                                                                    
    </IfModule>                                                                                                                                                                                                        
    <IfModule mod_ruid2.c>                                                                                                                                                                                             
        RUidGid ndomain ndomain                                                                                                                                                                                      
    </IfModule>                                                                                                                                                                                                        
    ScriptAlias /cgi-bin/ /home/ndomain/public_html/cgi-bin/                                                                                                                                                          
                                                                                                                                                                                                                       
    # To customize this VirtualHost use an include file at the following location                                                                                                                                      
    # Include "/usr/local/apache/conf/userdata/std/2/ndomain/ndomain.com/*.conf"                                                                                                                                     
                                                                                                                                                                                                                       
</VirtualHost>

I need some additional specification inside the <VirtualHost ..> section?

thanks!
 

Mise

Well-Known Member
May 15, 2011
49
3
58
problem solved. I have compiled again as FCGI following this page:
/http://davejamesmiller.com/blog/how-to-install-php-5-2-fastcgi-on-a-cpanel-server-alongside-php-5-3
How to install PHP 5.2 FastCGI on a cPanel server alongside PHP 5.3+ ? Blog ? Dave James Miller just changing php52 by php53

however the same problem arose After endless investigations the cause was an stupid thing: the option "short_open_tag" inside php.ini was in off.


We humans should be aware of thousand of invisible and stupid things in front computers because our technology is in the Neanderthal age. And so many people are fascinated with all this clumsy engineering.... Amazing. I vote to send all our software to North Korea and to end with that regime with a headache pandemic.