Exception: Zend Extension ./filename.php does not exist

Posted by safarov on Server Fault See other posts from Server Fault or by safarov
Published on 2012-11-13T10:23:52Z Indexed on 2012/11/13 11:05 UTC
Read the original article Hit count: 7657

Filed under:
|

When i try to execute php file though CLI this message appear:

Exception: Zend Extension ./filename.php does not exist

But while run like this /usr/local/bin/php -q -r "echo 'test';" works as expected

I tried to figure out what causing this, no success yet. Here some information about enviroment may be usefull:

I have eaccelerator installed (working ok). In php.ini:

zend_extension="/usr/local/lib/php/extensions/no-debug-non-zts-20100525/eaccelerator.so"
eaccelerator.shm_size="16"
eaccelerator.cache_dir="/var/cache/eaccelerator"
eaccelerator.enable="1"
eaccelerator.optimizer="1"
eaccelerator.check_mtime="1"
eaccelerator.debug="0"
eaccelerator.filter=""
eaccelerator.shm_ttl="0"
eaccelerator.shm_prune_period="0"
eaccelerator.shm_only="0"

Apache and all sites are working Content of filename.php

#!/usr/local/bin/php -q
<?php
echo 'test';
?>

What is the problem ?

© Server Fault or respective owner

Related posts about php

Related posts about php5