Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 11th October 2007, 14:58
cooljai cooljai is offline
Member
 
Join Date: May 2007
Location: /dev/random
Posts: 31
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to cooljai
Question Copy compiled php5 to another machine

Hi,

I'm using both php4 and php5 on CentOS 4.5 machine by loading appropriate module in Apache as needed.
I installed php4 by using "yum install php" and compiled php5 (as installing php5 through yum will
overwrite php4).

here is the configure command for php5:

Code:
./configure --prefix=/usr/share --with-config-file-path=/etc/php5 --datadir=/usr/share/php --bindir=/usr/bin --with-apxs2=/usr/sbin/apxs --libdir=/usr/share --includedir=/usr/include --bindir=/usr/bin --enable-mbstring --with-gd --enable-mbregex --with-mysql --with-zlib-dir=/usr/lib --enable-ftp --enable-memory-limit --enable-safe-mode --enable-bcmath --enable-calendar --enable-ctype --with-ftp --with-bz2 --enable-inline-optimization --with-iconv --with-pear=/usr/share/pear -with-kerberos --with-ldap=shared --with-mysql=shared,/usr --with-pgsql=shared
I want to copy the installed/compiled php5 from my current machine to new machine(s). I will be thankful if anybody suggest whether its possible or not, if yes then which dir(s) /file(s) needs to be copied to new machine.

Thanks

Jai
Reply With Quote
Sponsored Links
  #2  
Old 11th October 2007, 15:10
Ben Ben is offline
Moderator
 
Join Date: Jul 2006
Posts: 1,029
Thanks: 7
Thanked 62 Times in 56 Posts
Default

Why do you want to copy the stuff instead of compiling php5 on the other machines? I mean the time is not that long?
Reply With Quote
  #3  
Old 11th October 2007, 15:16
cooljai cooljai is offline
Member
 
Join Date: May 2007
Location: /dev/random
Posts: 31
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to cooljai
Default

I want to copy because its a part of some package and needs to be installed in other machines (all machines are identical, having CentOS 4.5). Therefore, instead of consuming time to perform compilation every time, its better if we can copy it.
__________________
Jagbir
Registered Linux User #468658.
Reply With Quote
  #4  
Old 11th October 2007, 15:25
ebal ebal is offline
Member
 
Join Date: Aug 2007
Posts: 36
Thanks: 0
Thanked 2 Times in 2 Posts
Default

its not a good idea

but you can rsync the folder that contains the php5 source to the other
machine and run again a simple make install

But you should check that all necessary libs are already installed.
Reply With Quote
  #5  
Old 11th October 2007, 16:15
cooljai cooljai is offline
Member
 
Join Date: May 2007
Location: /dev/random
Posts: 31
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to cooljai
 
Thumbs up

Quote:
Originally Posted by ebal
its not a good idea. you should check that all necessary libs are already installed.
Your suggestions enables me to improve my package. Thanks. I think, I can zip (tgz) the folder, copy it to target machine, extract it and then issue "make install" to implement it.
__________________
Jagbir
Registered Linux User #468658.
Reply With Quote
Reply

Bookmarks

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
php5 and php4 at the same time Hans Installation/Configuration 15 22nd October 2008 13:02
connecting to windows machine sudha General 0 29th January 2007 13:38
I cannot resolve www.example.com on the local machine braakiss Installation/Configuration 5 12th January 2007 15:58
SuSe10.1 & PHP5 modules latcarf Installation/Configuration 3 11th September 2006 14:31
eaccelerator installation - can't find php5-config tom Programming/Scripts 9 15th May 2006 15:36


All times are GMT +2. The time now is 00:42.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.