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:
inside customer /public_html I have:
- .htaccess:
- php.ini
- I keep folder /cgi-bin empty
I cannot locate the error inside apache logs:
/etc/httpd/logs/suexec.log:
/etc/httpd/domlogs/ndomain/ndomain.com
this is ndomain.com config inside /etc/httpd/conf/httpd.conf
I need some additional specification inside the <VirtualHost ..> section?
thanks!
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();
?>
- .htaccess:
Code:
AddHandler application/x-httpd-php53 .php
- 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
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)"
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!