View Full Version : PHP + v1.20.5 = X_X
l0rdphi1
12-21-2003, 12:13 AM
I just updated to the new version and -- be it related or not, I don't know, but I haven't touched anything else -- PHP throws "php_network_getaddresses: getaddrinfo failed: Name or service not known" whenever something is included via 'http://' or for that matter 'ftp://'. Should include include(), file(), fopen(), etc. etc..
Any ideas? I have 2 people upset already :\
Phi1.
ProWebUK
12-21-2003, 12:12 PM
tried recompiling? sounds like either you php.ini has been messed around with or its been recompiled with a bad configure line! check your phpinfo to see if that configure line looks normal, if so use a backup php.ini if you have one somewhere on your server :)
Chris
l0rdphi1
12-21-2003, 12:38 PM
but how.. how did this happen? Doesn't make any sense.
ProWebUK
12-21-2003, 12:49 PM
No idea... maybe directadmin overwrites the php.ini....? would need to get John or Mark to confirm why or if directadmin is even the cause! Also, did you get it sorted?
Chris
l0rdphi1
12-21-2003, 12:51 PM
It seems to have magically fixed itself as of this morning. I don't know what to say.
DirectAdmin Support
12-21-2003, 12:57 PM
Hello,
1.20.5 doesn't touch anything at all. All it updated was the DA binaries and the included default skins/templates. Checkout /usr/local/directadmin/scripts/update.sh to confirm.
John
l0rdphi1
12-21-2003, 12:59 PM
Strange enough, I'd say. Thanks for the awesome support though.
Must be an odd fluke in PHP itself.
l0rdphi1
12-25-2003, 08:54 PM
It's doing this again right now! :( I contacted my provider lets see what they say.
loopforever
12-29-2003, 10:58 AM
Check to see if:
allow_url_fopen = On
in your php.ini file, and also, can you post your configure flags for php?
Thanks.
l0rdphi1
12-30-2003, 03:11 AM
[root@server1 root]# cat /usr/local/lib/php.ini|grep allow_url_fopen
allow_url_fopen = On
[root@server1 root]# cat /usr/local/directadmin/customapache/configure.php
#!/bin/sh
./configure \
--with-apxs \
--with-curl \
--with-curl-dir=/usr/local/lib \
--with-gd \
--with-gd-dir=/usr/local/lib \
--with-gettext \
--with-jpeg-dir=/usr/local/lib \
--with-kerberos \
--with-mcrypt \
--with-mysql \
--with-pear \
--with-png-dir=/usr/local/lib \
--with-xml \
--with-zlib \
--with-zlib-dir=/usr/local/lib \
--enable-bcmath \
--enable-calendar \
--enable-ftp \
--enable-magic-quotes \
--enable-sockets \
--enable-track-vars
Thanks :)
Powered by vBulletin™ Version 4.0.4 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.