Results 1 to 10 of 10
  1. #1
    Join Date
    Jan 2002
    Location
    UK
    Posts
    525

    Question Multiple PHP (PHP 5.3.x & 5.4.x & 5.5.x) on VPS - How do I set it up

    Hi,

    I have a cPanel/WHM VPS which currently has PHP 5.3.x installed.
    I would like to add PHP 5.4.x and PHP 5.5.x, that can be enabled via .htacess on a per folder setup.

    Can anyone give me a guide on how to install PHP 5.4.x and PHP 5.5.x along side PHP 5.3.x.

    The default would be PHP 5.3.x

    Can someone give me a guide, as I would like to do it myself, but never done it before and would like to know how to update it etc...


    I have the following installed on PHP at this time:

    Code:
    Configure Command
    './configure' '--disable-fileinfo' '--enable-bcmath' '--enable-calendar' '--enable-ftp' '--enable-gd-native-ttf' '--enable-libxml' '--enable-magic-quotes' '--enable-mbstring' '--enable-pdo=shared' '--enable-soap' '--enable-sockets' '--enable-zip' '--prefix=/usr' '--with-curl=/opt/curlssl/' '--with-freetype-dir=/usr' '--with-gd' '--with-gettext' '--with-imap=/opt/php_with_imap_client/' '--with-imap-ssl=/usr' '--with-jpeg-dir=/usr' '--with-kerberos' '--with-libdir=lib64' '--with-libexpat-dir=/usr' '--with-libxml-dir=/opt/xml2' '--with-libxml-dir=/opt/xml2/' '--with-mcrypt=/opt/libmcrypt/' '--with-mysql=/usr' '--with-mysql-sock=/var/lib/mysql/mysql.sock' '--with-mysqli=/usr/bin/mysql_config' '--with-openssl=/usr' '--with-openssl-dir=/usr' '--with-pcre-regex=/opt/pcre' '--with-pdo-mysql=shared' '--with-pdo-sqlite=shared' '--with-pic' '--with-png-dir=/usr' '--with-pspell' '--with-sqlite=shared' '--with-tidy=/opt/tidy/' '--with-xmlrpc' '--with-xpm-dir=/usr' '--with-zlib' '--with-zlib-dir=/usr'
    The phpinfo has the following Configuration headers:

    bcmath
    calendar
    cgi-fcgi
    Core
    ctype
    curl - With SSL
    date
    dom
    ereg
    filter
    ftp
    gd
    gettext
    hash
    iconv
    imap
    json
    libxml
    mbstring
    mcrypt
    mysql
    mysqli
    openssl
    pcre
    PDO
    pdo_mysql
    pdo_sqlite
    Phar
    posix
    pspell
    Reflection
    session
    SimpleXML
    soap
    sockets
    SourceGuardian
    SPL
    SQLite
    sqlite3
    standard
    suhosin
    tidy
    tokenizer
    xml
    xmlreader
    xmlrpc
    xmlwriter
    Zend Guard Loaders
    zip
    zlib
    ionCube Loader
    Regards,
    Garry

  2. #2
    Join Date
    Feb 2006
    Location
    Kepler 62f
    Posts
    14,877
    Use CloudLinux.
    || Need a good host?
    || See my Suggested Hosts List || Editorial: EIG/Site5/Arvixe/Hostgator Alternatives
    ||

  3. #3
    Join Date
    Jun 2011
    Posts
    2,286
    The main method to have multiple PHP versions on cPanel servers, as kpmedia indicated, is to use CloudLinux which offers this functionality.

    As a free alternative, check out: http://www.webhostingtalk.com/showthread.php?t=1316839

    I'm not sure whether it would meet your requirements, but you can always ask nixtree

  4. #4
    Join Date
    Jan 2002
    Location
    UK
    Posts
    525
    Hi,

    I am aware of CloudLinux, but my VPS provider has said it would not work.
    The VPS is running on: CENTOS 6.5 x86_64 virtuozzo.
    Regards,
    Garry

  5. #5
    Join Date
    Jun 2011
    Posts
    2,286
    Indeed - CloudLinux is not compatible with Virtuozzo.

    The method I suggested above might be the best way forward in your case.

  6. #6
    Join Date
    Jan 2002
    Location
    UK
    Posts
    525
    Thank you.
    I have contacted them for some info before I go ahead.
    Regards,
    Garry

  7. #7
    If you want to get cloudlinux working, you need to migrate your vps to Xen or KVM visualization.

    Cloudlinux is the best software to handle multiple php versions

  8. #8
    Join Date
    Jan 2002
    Location
    UK
    Posts
    525
    I went and install NT PHP Selector by Nixtree, works great and does, what I need.

    I was originally about CloudLinux, but don't want to change providers, as I am quite happy where I am. When I eventually upgrade to a dedi server, I will get CloudLinux.
    Regards,
    Garry

  9. #9
    Quote Originally Posted by Website Hosted View Post
    I went and install NT PHP Selector by Nixtree, works great and does, what I need.
    And how to we can install Extensions as
    MySQLI
    FileInfo
    PgSQL
    Etc...

    NixTree no setup PHP with this libraries PHP.

    How is possible have this in the others versions of PHP ?

  10. #10
    Quote Originally Posted by Website Hosted View Post
    I went and install NT PHP Selector by Nixtree, works great and does, what I need.
    Please: some idea about how I can have MySQLI +PgSQL + FILEINFO, and any other module/library int the versions of PHP installeds by NIXTREE ?

    By default this only install PHP 5.2, 5.3 and 5.5

    But no include extensions, librarys and modules as FILEINFO, PgSQL, MYSQLI and others...

    We have this by default in EasyApache and we recompile PHP 5.4 with all modules requireds, but when we install ntphpselector_manage.sh this no install PHP with modules requireds.

    ┐how we can?

Similar Threads

  1. Need someone to make php 4 & php 5 working together on my vps & server
    By l0ck_up in forum Systems Management Requests
    Replies: 6
    Last Post: 07-03-2007, 10:32 PM
  2. Replies: 4
    Last Post: 10-24-2006, 10:31 AM
  3. PHP MySQL select multiple tables & same field names
    By Onture in forum Programming Discussion
    Replies: 10
    Last Post: 07-05-2005, 05:31 AM
  4. How to run something like "cd php-4.3.10 && ./configure --youroptions &&...&quo
    By ttk_2k in forum Hosting Security and Technology
    Replies: 6
    Last Post: 02-25-2005, 10:04 PM
  5. Select & Use multiple MySQL rows? (PHP)
    By ProdigySim in forum Programming Discussion
    Replies: 5
    Last Post: 04-23-2004, 10:36 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •