How to install Custom PHP Version for suphp handler domains.

How to install Custom PHP Version for suphp handler domains.

# cd /usr/src
# wget
# tar -zvxf php-5.4.17.tar.gz
# cd php-5.4.17

To check the current PHP configuration option

# php -i | grep configure

Here I am using prefix as /usr/local/php-5.4.17

[ #./configure –prefix=/usr/local/php-5.4.17 –enable-cli –enable-cgi –with-curl –as per your requirements.

#make install

Check the PHP Version

-bash-4.1# /usr/local/php-5.4.17/bin/php -v
PHP 5.4.17 (cli) (built: Jul 19 2013 00:45:34)
Copyright (c) 1997-2013 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2013 Zend Technologies
with the ionCube PHP Loader v4.4.1, Copyright (c) 2002-2013, by ionCube Ltd.

Copy the main php.ini on the Custom php location, here it is /usr/local/php-5.4.17/lib

Check the current configuration file for Custom php.ini

-bash-4.1# /usr/local/php-5.4.17/bin/php -i | grep php.ini
Configuration File (php.ini) Path => /usr/local/php-5.4.17/lib
Loaded Configuration File => /usr/local/php-5.4.17/lib/php.ini

Add the required PHP modules on extension directory. Here I have downloaded the ionCube and copy the .so module on ***20100525 directory


# vim /opt/suphp/etc/suphp.conf


# /usr/local/apache/conf/includes/pre_main_2.conf

Allow from All

### check the domain document root and set info page.
suPHP_AddHandler application/x-httpd-php5.4
AddType application/x-httpd-php5.4 .php

Also add the handler in the domain .htacess file.

/etc/rc.d/init.d/httpd configtest
/etc/rc.d/init.d/httpd restart



33 thoughts on “How to install Custom PHP Version for suphp handler domains.

  1. Thanks for the auspicious writeup. It in reality was
    a enjoyment account it. Glance complicated to more added agreeable
    from you! However, how can we keep up a correspondence?

  2. Thanks for your marvelous posting! I really enjoyed reading it, you
    happen to be a great author.I will be sure to bookmark your blog and will
    often come back later on. I want to encourage one to continue your great posts, have a nice morning!

  3. Excellent post. Keep writing such kind of information on your page.
    Im really impressed by it.
    Hello there, You have performed an excellent job.
    I’ll certainly digg it and personally suggest to my friends. I’m confident
    they will be benefited from this web site.

  4. Hello there! I could have sworn I’ve been to this blog before but after checking through some of the post I realized it’s new to me.
    Anyways, I’m definitely delighted I found it and I’ll be book-marking and checking back frequently!

  5. I was more than happy to uncover this great site. I wanted to thank you for ones time for
    this particularly wonderful read!! I definitely appreciated every bit of it and i also
    have you bookmarked to look at new things on your website.

  6. I think this is one of the most important information for me.
    And i’m glad reading your article. But should remark on few general things, The web site style is wonderful,
    the articles is really excellent : D. Good job,

  7. Just want to say your article is as surprising. The clearness in your
    publish is just great and i could think you’re knowledgeable in this subject.
    Well with your permission let me to seize your RSS feed to stay
    updated with impending post. Thank you 1,000,000 and please continue the gratifying work.

  8. Hi, I do think this is an excellent blog. I stumbledupon it đŸ˜‰
    I may come back yet again since i have saved as a favorite it.
    Money and freedom is the best way to change, may you be rich and continue
    to guide other people.

  9. Hey! I’m at work browsing your blog from my new apple iphone!

    Just wanted to say I love reading your blog and look forward to all your posts!

    Carry on the outstanding work!

  10. Thanks for one’s marvelous posting! I actually enjoyed reading it, you
    can be a great author. I will always bookmark your blog and definitely will come back later in life.
    I want to encourage yourself to continue your great writing,
    have a nice morning!

  11. Whats up very cool web site!! Man .. Beautiful
    .. Amazing .. I’ll bookmark your website and take the feeds also?
    I am satisfied to seek out so many helpful
    information right here within the put up, we need work out more techniques on this regard, thank you for
    sharing. . . . . .

  12. I just like the helpful info you supply in your articles.
    I’ll bookmark your weblog and test again here frequently.
    I’m relatively sure I will be told lots of new stuff right right here!

    Best of luck for the following!

  13. Hi there it’s me, I am also visiting this site daily, this site is truly good and the viewers are
    genuinely sharing nice thoughts.

  14. Great article! This is the type of info that should be shared around the net.
    Shame on the search engines for now not
    positioning this post higher! Come on over and
    seek advice from my web site . Thanks =)

  15. What’s Happening i am new to this, I stumbled upon this I have discovered It absolutely helpful and it has helped me out loads.
    I am hoping to contribute & aid other customers
    like its aided me. Good job.

  16. Asking questions are really nice thing if you are not understanding something
    completely, but this article offers nice understanding even.

  17. I blog frequently and I truly appreciate your information. This great article has truly peaked my interest.
    I will book mark your site and keep checking for new information about
    once per week. I opted in for your Feed too.

  18. Excellent post. Keep posting such kind of info on your site.
    Im really impressed by your site.
    Hi there, You’ve performed a great job. I’ll definitely digg
    it and individually suggest to my friends. I am confident they will be benefited from this site.

  19. Magnificent web site. Lots of useful information here.

    I’m sending it to a few pals ans additionally sharing in delicious.
    And of course, thanks on your sweat!

  20. A motivating discussion is worth comment. I believe that you ought to publish more
    on this issue, it might not be a taboo matter but generally people don’t speak about these subjects.
    To the next! Best wishes!!

  21. Hey visitors! My wife and i acknowledge. Awesome blog post in addition to additionally categorically plenty associated with terrific resources on this page! You really literally obtained it and I feel joyful My spouse and i have come across your own impressive research. We am just about doing work with regards to an important research paper for the course as well as the tips you have received brought in right up may most certainly be really handy.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s