Other version php

wireboot

Verified User
Joined
Dec 15, 2014
Messages
11
hi
I directamin version 1.46.3
I compiled the latest PHP 5.6.3
PHP course is working properly:
root@bajt:/usr/local/php/php56/bin# /usr/local/php/php56/bin/php -v
PHP 5.6.3 (cli) (built: Dec 15 2014 19:45:03)
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2014 Zend Technologies


Unfortunately, I do not know how to run a particular version of PHP on the domain. I suspect that you need to change the entry in /usr/local/directadmin/data/users/XXXUSERXXX/httpd.conf, but do not know how to add an entry there.
Could someone help me?
Currently, I have added the entry /usr/local/directadmin/data/users/XXXUSERXXX/httpd.conf :
Code:
<VirtualHost IP_SERVER:80 >
        ServerName DOMAIN
        ServerAlias DOMAIN
        ServerAdmin webmaster@DOMAIN
        DocumentRoot /home/wireboot/domains/DOMAINl/public_html
        ScriptAlias /cgi-bin/ /home/wireboot/domains/DOMAIN/public_html/cgi-bin/
        UseCanonicalName OFF
        <IfModule !mod_ruid2.c>
                SuexecUserGroup wireboot wireboot
        </IfModule>
        CustomLog /var/log/httpd/domains/DOMAIN bytes
        CustomLog /var/log/httpd/domains/DOMAIN combined
        ErrorLog /var/log/httpd/domains/DOMAIN.error.log
        <Directory /home/wireboot/domains/DOMAIN/public_html>

                suPHP_Engine ON
                suPHP_UserGroup wireboot wireboot
        </Directory>
</VirtualHost>

Could someone help me?
 
Hello,

With CustomBuild 2.x you can set by default 2 versions of PHP with a customization you can have even more.
So try to switch to CB 2x and install 2 versions.
 
ok, but what in case you would like to have multiple versions of PHP on the same server?
 
CustomBuild2 from a box allows to have multiple versions of PHP on the same server, for now they are limited to 2.
With a slight customization one might have even all available PHP versions: 5.1, 5.2, 5.3, 5.4, 5.5, etc... on the same server with CustomBuild2.

As alternative you can use Directadmin and CloudLinux with CloudLinux's PHP selector, which also allows multiple versions of PHP on the same server.
 
Back
Top