php-install Digest 29 May 2003 04:42:11 -0000 Issue 1398
Topics (messages 10972 through 10976):
ftp extension
10972 by: Matthias Redl
Antwort: [PHP-INST] ftp extension
10973 by: thomas.sinka.it-choice.de
Apache Authentication: htpasswd failed to create a password file on Solaris
10974 by: Atif Jakupovic
php-4.3.1 & apache_1.3.27 on Mac OS X Server
10975 by: Gregory Tomas Concepcion
10976 by: Jie Lu
Administrivia:
To subscribe to the digest, e-mail:
[EMAIL PROTECTED]
To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]
To post to the list, e-mail:
[EMAIL PROTECTED]
----------------------------------------------------------------------
--- Begin Message ---
Hi,
I just tried to use PHP's FTP functions, however I received the following
error.
> Call to undefined function: ftp_connect()
So I thought that PHP was not built with ftp, but I checked phpinfo() and it
says:
>'--enable-ftp=shared'
Then I verified if the extension is loaded in php.ini, where it is not. So I
added the following code:
if (!extension_loaded('ftp')) {
if (!dl('ftp.so')) {
exit;
}
}
to load it dynamically, but I get the following error:
> Unable to load dynamic library /usr/lib/php4/ftp.so: cannot
>open shared object file: No such file or directory
I verified the directory, "ftp.so" is not there.
Since I'm a linux newbie, my question is simple: Where do I get "ftp.so"
from and why is it not there, when PHP was built with "enable-ftp"
Thanks,
Matthias
--- End Message ---
--- Begin Message ---
> Hi,
>
> I just tried to use PHP's FTP functions, however I received the
following
> error.
>
> > Call to undefined function: ftp_connect()
>
> So I thought that PHP was not built with ftp, but I checked phpinfo()
and it
> says:
>
> >'--enable-ftp=shared'
>
> Then I verified if the extension is loaded in php.ini, where it is not.
So I
> added the following code:
>
> if (!extension_loaded('ftp')) {
> if (!dl('ftp.so')) {
> exit;
> }
> }
>
> to load it dynamically, but I get the following error:
>
> > Unable to load dynamic library /usr/lib/php4/ftp.so: cannot
> >open shared object file: No such file or directory
>
> I verified the directory, "ftp.so" is not there.
>
> Since I'm a linux newbie, my question is simple: Where do I get
"ftp.so"
> from and why is it not there, when PHP was built with "enable-ftp"
>
> Thanks,
> Matthias
>
>
>
>
> --
> PHP Install Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
Hi,
the easiest way would be to enable the ftp extension in the php.ini by
uncommenting or inserting the following line:
extension=ftp.so
Regards,
Thomas
===============================================
Thomas Sinka
mobil: +49 163 3 23 12 72
mailto: [EMAIL PROTECTED]
IT-Choice Software AG
Kaiserstraße 160-162, 76133 Karlsruhe, Germany
Tel.: +49(0)721-85 006-0, Fax: +49(0)721-85 006-77
www.it-choice.de, [EMAIL PROTECTED]
Amtsgericht Karlsruhe, HRB 9060
USt-Id Nr.: DE 812 950 635
Vorstand: Mirko Ketterer (Vorsitzender),
Stephanie Lehmann, Dirk Ludwig
Aufsichtsratsvorsitzender: Horst Gann
--- End Message ---
--- Begin Message ---
Hi,
I have installed apache 1.3.26 on Solaris 8 UNIX servers.
Now I want to start using basic authentication features.
I have tried to create a password file on my server using the htpasswd
command, but it's failed.
./htpasswd -c ./auth/tsepasswd.file myuser
htpasswd: Cannot find ELF
Killed
Please could somebody help!
Thak you,
Atif
--- End Message ---
--- Begin Message ---
I've followed the directions on php.net to install apache with php support
on mac OS X server and have had success, but with a few warnings that i
am concerned about.
These are the warning messages i am receiving:
gcc -DDARWIN -DTARGET=\"apache\" -DUSE_EXPAT -I./lib/expat-lite `./apaci`
\
-o apache buildmark.o modules.o modules/php4/libphp4.a
modules/standard/libstandard.a main/libmain.a ./os/unix/libos.a ap/libap.a
lib/expat-lite/libexpat.a -Lmodules/php4 -L../modules/php4
-L../../modules/php4 -lmodphp4 -lm
ld: warning -L: directory name (../modules/php4) does not exist
ld: warning -L: directory name (../../modules/php4) does not exist
Normally i wouldn't be too concerned with these warnings since php and
apache seemed to install fine after doing a make install, but when i try
to load a php page, all i get is raw php code mixed in with the html that
displays properly. Is there an additional step to the ones listed at
http://www.php.net/manual/en/install.macosx.php that i am overlooking?
Can anyone point me in the direction of where i should be looking to solve
my problem? I've successfully installed apache and php on a mac OS X
client machine with no problems, but we are migrating over to a server
machine and i have little experience with OS X server (10.2.6)
thanks
-Greg
--- End Message ---
--- Begin Message ---
Hi,
I guess your problem may be caused by apache.
Since the apache on Mac OS X Server is "optimized", they are separated
into parts and put in several locations, so it is very hard to upgrade
apache(Actually I don't know how to). You can use the update from Mac OS X
Server, it will update your apache to 1.3.26. Is that enough for you?
To install php-4.3.1, you can igore the orginal php of Mac OS X Server.
What I did is download php-4.3.1 source from php.net, and put it in the
/usr/local/php, then compile,
./configure --prefix=/usr/local --with-apxs
--with-pdflib=/usr/local/pdflib/bind/c --with-zlib
--with-tiff-dir=/usr/local/PHP --with-jpeg-dir=/usr/local/PHP
--with-png-dir=/usr/local/PHP --with-mysql
If you don't need pdflib, just delete the pdf,jpeg,png.
Then make, make install.
Be sure to install gcc by using the Develop tool disc which should come
with your package.(If not, it should come with Mac OS X)
By using the Server Setting to restart your webserver, the php should run
normally.
Since php-4.3.1 turns off the register_globals, you can turn it on by
following the instructions in php.net.
Hope it would be helpful.
Jie Lu
--
Department of Physics
Reseach Laboratory for Electronics
MIT
> I've followed the directions on php.net to install apache with php
> support
> on mac OS X server and have had success, but with a few warnings that i
> am concerned about.
>
> These are the warning messages i am receiving:
>
> gcc -DDARWIN -DTARGET=\"apache\" -DUSE_EXPAT -I./lib/expat-lite
> `./apaci` \
> -o apache buildmark.o modules.o modules/php4/libphp4.a
> modules/standard/libstandard.a main/libmain.a ./os/unix/libos.a
> ap/libap.a lib/expat-lite/libexpat.a -Lmodules/php4 -L../modules/php4
> -L../../modules/php4 -lmodphp4 -lm
> ld: warning -L: directory name (../modules/php4) does not exist
> ld: warning -L: directory name (../../modules/php4) does not exist
>
> Normally i wouldn't be too concerned with these warnings since php and
> apache seemed to install fine after doing a make install, but when i try
> to load a php page, all i get is raw php code mixed in with the html
> that displays properly. Is there an additional step to the ones listed
> at http://www.php.net/manual/en/install.macosx.php that i am
> overlooking? Can anyone point me in the direction of where i should be
> looking to solve my problem? I've successfully installed apache and php
> on a mac OS X client machine with no problems, but we are migrating over
> to a server machine and i have little experience with OS X server
> (10.2.6)
> thanks
> -Greg
>
>
> --
> PHP Install Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---