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 ...
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| 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. |
| |||
| 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!" |
| |||
| > > 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. |
| |||
| 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!" |
| |||
| > > 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... |
| ||||
| 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. |