Welcome to Linux Forums! With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.
Find the answer to your Linux question:
New to Linux Forums? Register here for free!
    Linux Forums > GNU Linux Zone > Linux Applications > How to install a "Made" package on a new Machine

Forgot Password?
 Linux Applications   I cant get "X" app to work... also discussion about linux programs.

Site Navigation
Linux Articles
Linux Forums
Linux Downloads
Linux Hosting
Free Magazines
Job Board
IRC Chat
RSS Feeds


Linux Forum Topics
Linux Forums
Your Distro
Linux Resources
GNU Linux Zone
The Community
Reply
 
Thread Tools Display Modes
Old 10-04-2009   #1 (permalink)
Just Joined!
 
Join Date: Oct 2009
Posts: 2
How to install a "Made" package on a new Machine

Hi friends,

I have created a custom-made php package which includes everything I need and I have spent two days, downloaded all the dependent packages, run ./configure 200 times to finally get the product right on the development machine.

Do I have to go through all the steps that I have gone through on the Production machine? Or there is a shortcut? e.g. make install <remote host> to install just the executables on the remote host....instead of doing the whole thing from scratch....

Your feed back will be greatly appreciated!

kgoose is offline  


Reply With Quote
Old 10-05-2009   #2 (permalink)
Just Joined!
 
Join Date: May 2009
Posts: 99
First of all:
Are you sure you need a custom build php stack?
It is not a one-time effort:
Installing on other machines
and keeping php and its dependancies up-to-date
is a time consuming job.

If possible, one should go with the php included in the package manager
of the linux distribution.


If you need your own php stack,
1) the best way would be to go the extra mile and build a (rpm|deb|whatever) package for it.
To do that, build a dedicated "build machine" before.
ie: a PC or virtual machine, that is very barebone and only used for
package building, so you get repeatable results.

2) Another way is: document the compile process and dependancies.
Write down every step you did to build the php stack and repeat it (or script it)
on the others.

3) It is possible to copy only the binaries and libs to another machine.
But this is the worst option.
You have to do it manually,
it is errorprone,
after a certain time you will have no clue, what you did back then and why.
Also, if the development machine differs from production (in terms of update status for example) php might not even work or not work correctly..
Irithori is offline   Reply With Quote
Old 10-06-2009   #3 (permalink)
Just Joined!
 
Join Date: Oct 2009
Posts: 2
Hi Irithori,

Thank you for your feed back. You are exactly right that it would be best if I can use some standard PHP package. However, the ecommerce package that I am going to port on the server doesn't like the standard PHP distribution.

Among the 3 options that you've mentioned, I like the 1st one better as I really want to do this once and just once and be able to deploy to multiple machines without the going through the grief doing the compilation all over again.

Can you give me some more information how I can do it? Even though I want to build a rpm, I need to find out what should be included in this rpm and where I should cp the files and essentially, I probably need to make sure the environmental variables are set up (e.g. PATH) correctly to point to the files that I need ... I know it is not going to be easy, that's why I am thinking if the Makefile can install the executables and library on one machine, may be it could install the same thing on a different machine. Another reason I am trying to do this is that it is a good practice NOT to install compiler on a production machine ...

Any comment?
kgoose is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Free Magazines
Run Your Own Web Server Using Linux & Apache - Free 191 Page Preview
Learn about everything you'll need to build and maintain your Linux servers, and to deploy Web applications to them.
subscribe
Open Source Security Myths Dispelled
Dispel the five major myths surrounding Open Source Security and gain the tools necessary to make a truly informed decision for your IT organization
subscribe
InformationWeek
InformationWeek is the only newsweekly you'll need to stay on top of the latest developments in information technology.
subscribe



All times are GMT. The time now is 05:31 PM.






© 2000 - 2009 - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.3.0 RC2