PHP 5.3 as mod_suphp + PHP 5.5 as mod_php

BestBoard

Verified User
Joined
Sep 8, 2006
Messages
180
Hi,
I use Custombuild 2.0 with Apache 2.4 + mod_ruid2.
I installed PHP 5.3 as mod_suphp and PHP 5.5 as mod_php.
When I change the PHP version in the control panel it's don't take any affect at all.
PHP version remain 5.5 even if I set it to 5.3.

Code:
[root@server extra]# whereis php
php: /bin/php /usr/local/bin/php /usr/local/lib/php.ini /usr/local/lib/php /usr/local/php

[root@server extra]# whereis php53
php53: /usr/local/php53

[root@server extra]# php -v
PHP 5.5.4 (cli) (built: Oct 15 2013 01:56:11)
Copyright (c) 1997-2013 The PHP Group
Zend Engine v2.5.0, Copyright (c) 1998-2013 Zend Technologies

[root@server extra]# /usr/local/php53/bin/php -v
PHP 5.3.27 (cli) (built: Oct 15 2013 01:57:52)
Copyright (c) 1997-2013 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2013 Zend Technologies

I'm sure that I'm just missing something simple...but I can't find what.
Any help will be appreciate!
 
Code:
# Auto generated apache config file by DirectAdmin version 1.44.0
# Modifying this file is not recommended as any changes you make will be
# overwritten when the user makes any changes to his/her website

# For global config changes that affect all Users, see this guide:
# [URL]http://help.directadmin.com/item.php?id=2[/URL]
# For local config changes that only affect one User, see this guide:
# [URL]http://help.directadmin.com/item.php?id=3[/URL]


<Directory "/home/test/public_html">
        <IfModule mod_suphp.c>
                suPHP_Engine ON
                suPHP_UserGroup test test
                SetEnv PHP_INI_SCAN_DIR /usr/local/directadmin/data/users/test/php/
        </IfModule>
        <IfModule mod_ruid2.c>
                RMode config
                RUidGid test test
                RGroups apache access
        </IfModule>
</Directory>

<VirtualHost My_Server_IP:80 >
        ServerName [URL="http://www.domain.com"]www.domain.com[/URL]
        ServerAlias [URL="http://www.domain.com"]www.domain.com[/URL] domain.com
        ServerAdmin [EMAIL="[email protected]"][email protected][/EMAIL]
        DocumentRoot /home/test/domains/domain.com/public_html
        UseCanonicalName OFF
        <IfModule !mod_ruid2.c>
                SuexecUserGroup test test
        </IfModule>
        <IfModule mod_ruid2.c>
                RMode config
                RUidGid test test
                RGroups apache access
        </IfModule>
        CustomLog /var/log/httpd/domains/domain.com.bytes bytes
        CustomLog /var/log/httpd/domains/domain.com.log combined
        ErrorLog /var/log/httpd/domains/domain.com.error.log
        <Directory /home/test/domains/domain.com/public_html>
                AllowOverride AuthConfig FileInfo Indexes Limit Options=Indexes,Includes,IncludesNOEXEC,MultiViews,SymLinksIfOwnerMatch,FollowSymLinks,None
                Options -ExecCGI
                php_admin_flag engine ON
                php_admin_value sendmail_path '/usr/sbin/sendmail -t -i -f [EMAIL="[email protected]"][email protected][/EMAIL]'
                php_admin_value mail.log /home/test/.php/php-mail.log
                php_admin_value open_basedir /home/test/:/tmp:/var/tmp:/usr/local/lib/php/
                suPHP_Engine ON
                suPHP_UserGroup test test
        </Directory>
</VirtualHost>

<VirtualHost My_Server_IP:80 >
        ServerName [URL="http://www.domain.com"]www.domain.com[/URL]
        ServerAlias [URL="http://www.domain.com"]www.domain.com[/URL] domain.com
        ServerAdmin [EMAIL="[email protected]"][email protected][/EMAIL]
        DocumentRoot /home/test/domains/domain.com/public_html
        UseCanonicalName OFF
        <IfModule !mod_ruid2.c>
                SuexecUserGroup test test
        </IfModule>
        <IfModule mod_ruid2.c>
                RMode config
                RUidGid test test
                RGroups apache access
        </IfModule>
        CustomLog /var/log/httpd/domains/domain.com.bytes bytes
        CustomLog /var/log/httpd/domains/domain.com.log combined
        ErrorLog /var/log/httpd/domains/domain.com.error.log
        <Directory /home/test/domains/domain.com/public_html>
                AllowOverride AuthConfig FileInfo Indexes Limit Options=Indexes,Includes,IncludesNOEXEC,MultiViews,SymLinksIfOwnerMatch,FollowSymLinks,None
                Options -ExecCGI
                php_admin_flag engine ON
                php_admin_value sendmail_path '/usr/sbin/sendmail -t -i -f [EMAIL="[email protected]"][email protected][/EMAIL]'
                php_admin_value mail.log /home/test/.php/php-mail.log
                suPHP_Engine ON
                suPHP_UserGroup test test
        </Directory>
</VirtualHost>

I can't see any changes in this file when I switch PHP version from 5.5 to 5.3 or opposite.
 
Last edited by a moderator:
Make sure you've got no httpd (virtual host) templates in /usr/local/directadmin/data/templates/custom/ or they are of the latest released version.
 
Back
Top