How to install Custom PHP Version for suphp handler domains.

Posted: 0p in Php

How to install Custom PHP Version for suphp handler domains.

# cd /usr/src
# wget http://us.php.net/get/php-5.4.17.tar.gz
# 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
#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.
-bash-4.1#

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
-bash-4.1#

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

[IONLoader]
zend_extension=/usr/local/php-5.4.17/lib/php/extensions/no-debug-non-zts-20100525/ioncube_loader_lin_5.4.so

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

[handlers]
application/x-httpd-php5.4=”php:/usr/local/php-5.4.17/bin/php-cgi”

# /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

———————————>

Advertisements
Comments
  1. Hi there, always i used to check website posts here early in the
    break of day, for the reason that i love to find out more and more.

  2. Vanessa says:

    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?

  3. For the reason that the admin of this site is working, no doubt very soon it will be famous, due to its quality contents.

  4. social media says:

    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!

  5. 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.

  6. Jodi says:

    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!

  7. Great article. I’m dealing with some of these issues as well..

  8. Twitter says:

    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.

  9. Sito De Web says:

    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,
    cheers

  10. ostermann says:

    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.

  11. 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.

  12. 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!

  13. 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!

  14. 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. . . . . .

  15. site Web says:

    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!

  16. bonus says:

    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.

  17. 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 =)

  18. 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.

  19. Greetings! Really beneficial guidance on this informative article!

  20. Thankfulness to my father who shared with me concerning
    this weblog, this webpage is genuinely remarkable.

  21. Prochaska says:

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

  22. Valentina says:

    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.

  23. 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.

  24. What’s up colleagues, its great piece of writing regarding educationand fully defined,
    keep it up all the time.

  25. 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!

  26. Wow, awesome weblog format! How lengthy have you ever been blogging for?
    you made blogging look easy. The whole glance of your web site is fantastic, as well as the content material!

  27. Wow, this post is fastidious, my sister is analyzing such things, therefore I am
    going to inform her.

  28. 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!!

  29. I like it when people come together and share opinions. Great blog, stick with it!

  30. Thanks in favor of sharing such a fastidious idea, paragraph is good, thats why i have read it fully

  31. 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.

  32. zaborilenta says:

    I am constantly searching online for tips that can help me. Thanks!

Leave a Reply

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

WordPress.com Logo

You are commenting using your WordPress.com 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 )

Google+ photo

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

Connecting to %s