I have installed Zend Server 6 on Windows 7. Downloaded non thread safe apc dll (php_apc-3.1.10-5.4-vc9-x86.zip) from here. When I add apc extension in php.ini zend server is not starting. There were no problems with previous version of Zend Server. What can cause it?
UPDATE:
There is an error in log file.
PHP Fatal error: Uncaught exception 'ReflectionException' with message 'Class does not exist' in C:\Program Files (x86)\Zend\ZendServer\GUI\vendor\ZF2\library\Zend\Code\Reflection\ClassReflection.php:172
Related
I am attempting to make use of threading within my php application, but for reasons unknown to myself I cannot seem to set php up to use pthreads.
Here are a few details FYI to help diagnose the issue:
My environment is IIS on Windows 10.
My php version is 7.0.7.
Thread Safety is showing as 'enabled' in phpinfo()
My PHP Extension Build is 'API20151012,TS,VC14'
I have tried several pthreads releases of version 'VC14'
php_pthreads.dll has been copied to 'C:\Program Files\PHP\v7.0.7\ext'
pthreadVC2.dll has been copied to 'C:\Program Files\PHP\v7.0.7' and 'C:\Windows\System32'
extension=php_pthreads.dll has been added to php.ini
When I comment out extension=php_pthreads.dll and load the home page I get
Fatal error: Class 'Thread' not found
But when I un-comment the line I get:
HTTP Error 500.0 - Internal Server Error C:\Program
Files\PHP\v7.0.7\php-cgi.exe - The FastCGI process exited unexpectedly
What could be the reasons for those problems?
'The cgi-fcgi SAPI is not supported by pthreads'
After doing some research on the above error I found out that since PHP 7.0.0 pthreads has only been available on the command line, so the answer is to either downgrade the PHP version or disable the threading for the web server, and you can see how to do that HERE
I have been trying to load the datastax cassandra php-driver on ubuntu (apache web server). I am also running php on hhvm. Now the problem is that I have installed the driver and I have the cassandra extension file located in /usr/lib/php5/20131226/cassandra.so. I have also edited /etc/hhvm/php.ini file to contain:
hhvm.dynamic_extension_path = /usr/lib/php5/20131226
hhvm.dynamic_extensions[cassandra] = cassandra.so
And I have edited /etc/hhvm/server.ini to contain:
hhvm.enable_zend_compat = true.
Now when I start hhvm, I get the following error:
Uncaught exception: Could not open extension /usr/lib/php5/20131226/cassandra.so: /usr/lib/php5/20131226/cassandra.so: undefined symbol: zend_new_interned_string\n.
Could I please get help resolving this issue?
I need to connect to a remote Sybase database with PHP 5.4.5 and I therefore enable the driver php_dblib (FreeTDS) for PHP and it shows as is in Wampserver but when I look at the phpinfo() results, there is nothing about dblib.
My application (Zend) returns
Fatal error: Uncaught exception 'PDOException' with message 'could not find driver' in ... PropelPDO->__construct('dblib:host=ans...', 'sa', '', Array)
I am running Wampserver 2.2, Apache 2.2.3 and PHP 5.4.5.
Thank you for your help.
I'm trying to get php_imagick extension to work in windows 8.1 x64.
I have Apache 2.4.12 x86 from Apachelounge, php 5.6.5, ImageMagick-6.9.0-6-Q16-x86, and downloaded the php_imagick-3.2.0b2-5.6-ts-vc11-x86 from pecl server.
Everything seems fine. I have imagick listed in phpinfo() along with 179 supported formats.
But whenever I try to open an image with Imagick I get an error like:
Uncaught exception 'ImagickException' with message 'unable to load
module `D:_Server\ImageMagick\modules\coders\IM_MOD_RL_png_.dll': The
specified procedure could not be found
What should I do to fix this?
It seems like installing an older version of ImageMagick would solve the problem!
Another Solution I found for this was running my IDE as administrator. I'm also using Windows 8.1 x64 and doing this resolved the issue and did not require having to install an older version. My IDE is Visual Studio.
I am trying to setup Codeception (v1.8) on my local development box (Windows 7 running WAMP).
I have PHP 5.3.13 running and both CURL and bzip2 are enabled modules, when I run the following command to install the 'framework' I get the following error:
php codecept.phar bootstrap
PHP Fatal error: Uncaught exception 'PharException' with message 'bz2 extension is required for bzip2 compressed .phar file "C:\wamp\www\codecept\codecept.phar"' in C:\wamp\codecept\codecept.phar:3
Stack Trace:
#0 C:\wamp\www\codecept\codecept.phar(3): Phar::mapPhar()
#1 {main}
thrown in C:\wamp\www\codecept\codecept.phar on line 3
......
I have 5.3 running so haven't installed the latest version of Codecept (v2) as that doesn't work with my version of PHP but cannot be sure why this is happening?
Any ideas
P.S I will be using this Codecept with Yii eventually if that makes any difference
I had the same problem and uncommenting 'extension=bz2.so' in my php.ini file fixed it.
the problem you have is because the v2 of codeception requires at least php5.4, downgrade to some of the 1.x versions than you will have no problem.
Here is the link for the versions