Tell me more ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I'm getting Fatal error:

Call to undefined function glob() 

when trying to do stuff on my php server. However the output of php -v is

[root@dca-l-p-web9 ~]# php -v

PHP 5.3.16 (cli) (built: Aug 23 2012 12:26:45) 
Copyright (c) 1997-2012 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2012 Zend Technologies
share|improve this question

closed as off topic by Shane Madden, Michael Hampton, rnxrx, Ward, HopelessN00b Oct 7 '12 at 17:37

Questions on Server Fault are expected to relate to professional server, networking, or related infrastructure administration within the scope defined in the FAQ. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about closed questions here.

1 Answer

What OS are you using? Take a look at this: Glob Resolved

For example on CentOS try to yum install these packages:

glibc-common.i386 2.3.4-2.54
glibc.i686 2.3.4-2.54
glibc-headers.i386 2.3.4-2.54
glibc-devel.i386 2.3.4-2.54

Then try recompiling PHP with the same configurations.

share|improve this answer
Welcome to Server Fault! We really do prefer that answers have content, not pointers to content. This may theoretically answer the question however, it would be preferable to include the essential parts of the answer here, and provide the link for reference. – Chris S Sep 7 '12 at 14:43

Not the answer you're looking for? Browse other questions tagged or ask your own question.