Unix Technical Forum

php extensions

This is a discussion on php extensions within the Sun Solaris Administration forums, part of the Solaris Operating System category; --> On Solaris 9 I have installed php 4.4.4 from the freesunsoftware site and it works fine. Now I need ...


Go Back   Unix Technical Forum > Unix Operating Systems > Solaris Operating System > Sun Solaris Administration

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-16-2008, 10:00 AM
hopkins
 
Posts: n/a
Default php extensions

On Solaris 9 I have installed php 4.4.4 from the freesunsoftware site
and it works fine. Now I need to install a specific extension to enable
ftp support. I did this in about 5 mins on a suse box last week with
yast, whereby it copies ftp.so to the extension directory then edits
your php.ini accordingly. Unforunately, I have had not such luck on the
sun server. I can find nowhere on the web that seems to supply the .so
extensions, seriously guys Ive been searching for about an hour! And I
dont think compiling it is going to work because compiling php
extensions on solaris sounds a bit hairy and Im not even sure I could
find the source (of ftp.so).

If anyone's had any experience with this I'd like to hear. Cheers.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 01-16-2008, 10:00 AM
Martin Etteldorf
 
Posts: n/a
Default Re: php extensions

hopkins <hopkins81@gmail.com> wrote:
> And I
> dont think compiling it is going to work because compiling php
> extensions on solaris sounds a bit hairy


why?

> and Im not even sure I could
> find the source (of ftp.so).


It's part of the plain php distribution.

> If anyone's had any experience with this I'd like to hear.


Get the source, run configure with the options you need and compile
it. It's a no-brainer. PHP compiles without any problems on Solaris.


Martin

--
"For the Snark's a peculiar creature, that won't
Be caught in a commonplace way.
Do all that you know, and try all that you don't;
Not a chance must be wasted to-day!"
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 01-16-2008, 10:00 AM
hopkins
 
Posts: n/a
Default Re: php extensions

> > And I dont think compiling it is going to work because compiling php
> > extensions on solaris sounds a bit hairy

>
> why?


When I say compiling it, did you know I meant compiling the actual
ftp.so php extension? In order to do that you have to follow these
guidelines http://www.php.net/manual/en/install.pecl.phpize.php
Which I feared would not work.

> It's part of the plain php distribution.
> Get the source, run configure with the options you need and compile
> it. It's a no-brainer. PHP compiles without any problems on Solaris.


Do you mean recompile the whole of PHP and set a compiler type option
--with-ftp?

I certainly dont mind giving that a try but just thought if I could
find the dynix extension ftp.so for solaris that would be all I need as
I have not compiler something as big as PHP before and I fear I would
might not be able to also find/compile all of it's dependencies

Thanks again.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 01-16-2008, 10:00 AM
Martin Etteldorf
 
Posts: n/a
Default Re: php extensions

hopkins <hopkins81@gmail.com> wrote:
>> > And I dont think compiling it is going to work because compiling php
>> > extensions on solaris sounds a bit hairy

>>
>> why?

>
> When I say compiling it, did you know I meant compiling the actual
> ftp.so php extension?


Yes.

> In order to do that you have to follow these
> guidelines http://www.php.net/manual/en/install.pecl.phpize.php
> Which I feared would not work.


Again: Why do you fear it wouldn't work?

>> It's part of the plain php distribution.
>> Get the source, run configure with the options you need and compile
>> it. It's a no-brainer. PHP compiles without any problems on Solaris.

>
> Do you mean recompile the whole of PHP and set a compiler type option
> --with-ftp?


Not a compiler option. Neither gcc nor the Sun Compiler have such
an option. I was talking about passing the option to the configure-
script of PHP.
Just run ./configure --help in the PHP directory to get an idea
of the different options you can set.

> I certainly dont mind giving that a try but just thought if I could
> find the dynix extension ftp.so for solaris


Shared objects for Dynix won't run under Solaris. Dynix is a
completely differnet kind of Unix.

> that would be all I need as
> I have not compiler something as big as PHP before and I fear I would
> might not be able to also find/compile all of it's dependencies


Don't make it more complicated than it is. Grab the Source,
unpack it, run ./configure --whatever-options-you-need and
install it. *If* there are some dependencies, try running configure
with the appropriate option to exclude that software package.


Martin

--
"For the Snark's a peculiar creature, that won't
Be caught in a commonplace way.
Do all that you know, and try all that you don't;
Not a chance must be wasted to-day!"
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 01-16-2008, 10:01 AM
hopkins
 
Posts: n/a
Default Re: php extensions

> > I certainly dont mind giving that a try but just thought if I could
> > find the dynix extension ftp.so for solaris

>
> Shared objects for Dynix won't run under Solaris. Dynix is a
> completely differnet kind of Unix.


Sorry, that was meant to say "find the dynamic extension ftp.so for
solaris"!

> Don't make it more complicated than it is. Grab the Source,
> unpack it, run ./configure --whatever-options-you-need and
> install it. *If* there are some dependencies, try running configure
> with the appropriate option to exclude that software package.


I will download the php source and give it a try, this is going to be
interesting...

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 01-16-2008, 10:01 AM
hopkins
 
Posts: n/a
Default Re: php extensions

Well, well, well! I managed to compile PHP with the ftp module all by
myself, but then found it was not compatible with the pre-compiled
apache2 that I had installed from the freesunsoftware site. So I just
went right ahead and compiled that too! All working now, told you I
could do it!

cheers.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 11:43 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com