[PHP-INSTALL] Move the binaries from one server to another

2011-03-09 Thread Muslim Abdul Kader
Hi,

I have installed/compiled the php-5.3.5 version on one of my Solaris 10, X86
box and (using ./configure, make and make install). And all seems fine. And
i know what are the files that got installed as a result of this
compilation/configuration.

Can i copy all these files/directories that got installed from this Solaris
10, X86 server to another server and make the php5.3.5 work? I am trying to
avoid another compilation process, instead use the files from my first
compilation.

Thanks


Re: [PHP-INSTALL] Move the binaries from one server to another

2011-03-09 Thread Ferenc Kovacs
On Wed, Mar 9, 2011 at 9:25 AM, Muslim Abdul Kader wrote:

> Hi,
>
> I have installed/compiled the php-5.3.5 version on one of my Solaris 10,
> X86 box and (using ./configure, make and make install). And all seems fine.
> And i know what are the files that got installed as a result of this
> compilation/configuration.
>
> Can i copy all these files/directories that got installed from this Solaris
> 10, X86 server to another server and make the php5.3.5 work? I am trying to
> avoid another compilation process, instead use the files from my first
> compilation.
>
> Thanks
>

hi, I think that it should work.
if you have dynamically linked libraries, then you have to copy those of
course

Tyrael


Fwd: [PHP-INSTALL] Move the binaries from one server to another

2011-03-09 Thread Ferenc Kovacs
sorry, I don't have the time to help you with that, but maybe somebody from
the list can help you out.

-- Forwarded message --
From: Muslim Abdul Kader 
Date: Wed, Mar 9, 2011 at 11:09 AM
Subject: Re: [PHP-INSTALL] Move the binaries from one server to another
To: Ferenc Kovacs 


Hi,

Thank you for that hint. I tried to copy the following files from a Server A
to Server B and after copying all these to Server B, i restarted apache and
when i issued the command "/usr/local/bin/php -v", i get

root@fury440 # /usr/local/bin/php -v
bash: /usr/local/bin/php: Invalid argument

What files am i missing here?

These are the files that i had copied to respective directories:

- libphp5.s0 to /export/php-5.3.5 (this is the base directory)
- Executed the command "/var/apache2/build/instdso.sh
SH_LIBTOOL='/var/apache2/build/libtool' libphp5.la /usr/apache2/libexec"

*1. **Copy the httpd.conf */etc/apache2/httpd.conf**

1. *Copy the following files to */usr/local/bin

root@8792websce # ls -ltr

-rwxr-xr-x   1 root root 17336960 Mar  1 00:59 *php*

-rwxr-xr-x   1 root root4506 Mar  1 01:00 *phpize*

-rwxr-xr-x   1 root root2312 Mar  1 01:00 *php-config*

-rwxr-xr-x   1 root root 799 Mar  1 01:00 *pear*

-rwxr-xr-x   1 root root 820 Mar  1 01:00 *peardev*

-rwxr-xr-x   1 root root 736 Mar  1 01:00 *pecl*

-rwxr-xr-x   1 root root   53460 Mar  1 01:00 *phar.phar*

lrwxrwxrwx   1 root root  24 Mar  1 01:00 *phar ->
/usr/local/bin/phar.phar*

*1. **Copy the following files to */usr/local/man/man1**

-rw-r--r--   1 root root8708 Mar  1 00:59 *php.1*

-rw-r--r--   1 root root1015 Mar  1 01:00 *phpize.1*

-rw-r--r--   1 root root1679 Mar  1 01:00 *php-config.1*

*1. **Copy the following files/directory to */usr/local/lib/php/**

drwxr-xr-x  14 root root 512 Mar  1 01:00 *php*

-rw-r--r--   1 root root   68797 Mar  1 08:38 *php.ini*

*1. **Copy the pear.conf files to */usr/local/etc/**



On Wed, Mar 9, 2011 at 2:52 AM, Ferenc Kovacs  wrote:

>
>
> On Wed, Mar 9, 2011 at 9:25 AM, Muslim Abdul Kader wrote:
>
>> Hi,
>>
>> I have installed/compiled the php-5.3.5 version on one of my Solaris 10,
>> X86 box and (using ./configure, make and make install). And all seems fine.
>> And i know what are the files that got installed as a result of this
>> compilation/configuration.
>>
>> Can i copy all these files/directories that got installed from this
>> Solaris 10, X86 server to another server and make the php5.3.5 work? I am
>> trying to avoid another compilation process, instead use the files from my
>> first compilation.
>>
>> Thanks
>>
>
> hi, I think that it should work.
> if you have dynamically linked libraries, then you have to copy those of
> course
>
> Tyrael
>