Exception: Zend Extension ./filename.php does not exist
- by safarov
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 ?