PHP + v1.20.5 = X_X

l0rdphi1

Verified User
Joined
Jun 22, 2003
Messages
1,471
PHP + v1.20.5 = X_X (or not, it seems)

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.
 
Last edited:
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
 
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
 
It seems to have magically fixed itself as of this morning. I don't know what to say.
 
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
 
Strange enough, I'd say. Thanks for the awesome support though.

Must be an odd fluke in PHP itself.
 
It's doing this again right now! :( I contacted my provider lets see what they say.
 
Last edited:
Check to see if:

allow_url_fopen = On

in your php.ini file, and also, can you post your configure flags for php?

Thanks.
 
Code:
[root@server1 root]# cat /usr/local/lib/php.ini|grep allow_url_fopen
allow_url_fopen = On

Code:
[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 :)
 
Back
Top