Author |
|
SimbiatX
Joined: 22 Feb 2013 Posts: 35 Location: Moscow
|
Posted: Thu 19 Dec '13 8:09 Post subject: |
|
|
After cleaning up PHP and Apache's directories server ran overnight without crashes. Gonna try the same with fcgid. If it works - then issues was with clutter in directories. |
|
Back to top |
|
SimbiatX
Joined: 22 Feb 2013 Posts: 35 Location: Moscow
|
Posted: Thu 19 Dec '13 15:41 Post subject: |
|
|
Indeed, seems like there were some libraries from older releases, that were messing up with the server. fcgid works fine as well.
BTW, what's the best solution in terms of performance: mod_fcgid or mod_php + APCu? I could not find any comparison in Google. There are general comparisons between fcgid and mod_php, but without the use of APCu (or any other accelerator). AI also can't find how to use APC with mod_fcgid as well, although some articles mentioned, that it's possible. |
|
Back to top |
|
SimbiatX
Joined: 22 Feb 2013 Posts: 35 Location: Moscow
|
Posted: Wed 25 Dec '13 21:45 Post subject: |
|
|
After some time it started again, even though I did not update neither PHP nor Apache and did not change any of their settings... Can this be due to high load on the server? |
|
Back to top |
|
James Blond Moderator

Joined: 19 Jan 2006 Posts: 7398 Location: EU, Germany, Next to Hamburg
|
Posted: Tue 31 Dec '13 11:57 Post subject: |
|
|
I did not see any difference in performance from mod_php vs mod_fcgid with PHP. By the way: There is no more APC. Parts of it have been merged into PHP 5.5 called OPCache. And it works fine with mod_php and mod_fcgid. |
|
Back to top |
|
SimbiatX
Joined: 22 Feb 2013 Posts: 35 Location: Moscow
|
Posted: Tue 31 Dec '13 12:02 Post subject: |
|
|
there is APCu and it does not work with CGI mode. |
|
Back to top |
|
James Blond Moderator

Joined: 19 Jan 2006 Posts: 7398 Location: EU, Germany, Next to Hamburg
|
Posted: Tue 31 Dec '13 12:08 Post subject: |
|
|
Simbiat wrote: | there is APCu and it does not work with CGI mode. |
Indeed! But lucky for you fcgid IS NOT plain cgi. Else OPCache won't work either. So I think the chance that APCu works under fcgid is very very high. |
|
Back to top |
|
SimbiatX
Joined: 22 Feb 2013 Posts: 35 Location: Moscow
|
Posted: Tue 31 Dec '13 14:55 Post subject: |
|
|
it does not. in case of CGI I get error message, that APC is disabled. |
|
Back to top |
|
James Blond Moderator

Joined: 19 Jan 2006 Posts: 7398 Location: EU, Germany, Next to Hamburg
|
Posted: Wed 01 Jan '14 12:13 Post subject: |
|
|
Are you sure you load the correct php.ini ? Or just default settings? |
|
Back to top |
|
SimbiatX
Joined: 22 Feb 2013 Posts: 35 Location: Moscow
|
Posted: Wed 01 Jan '14 12:20 Post subject: |
|
|
of course I'm sure (= I have it enabled, after all... It's just that it's shown as disabled in case of CGI... |
|
Back to top |
|
James Blond Moderator

Joined: 19 Jan 2006 Posts: 7398 Location: EU, Germany, Next to Hamburg
|
Posted: Thu 02 Jan '14 15:53 Post subject: |
|
|
it runs with fcgid here a snip from my config
Code: |
extension=php_xsl.dll
;extension=php_zip.dll
zend_extension=php_opcache.dll
extension=php_apcu.dll
[apc]
apc.enabled=1
apc.shm_size=128M
apc.ttl=7200
apc.enable_cli=1
|
|
|
Back to top |
|
SimbiatX
Joined: 22 Feb 2013 Posts: 35 Location: Moscow
|
Posted: Thu 02 Jan '14 16:01 Post subject: |
|
|
Well, maybe it requires zend_extension=php_opcache.dll then... 'Cause I do not use it. Either way I found script,t hat was causing the error: it was simply called too often, which caused locked. And since I also did not notice any performance increase in case of CGI... It does not matter now  |
|
Back to top |
|