New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
1.1.0 beta1 installation fails on Debian 'jessie' with nginx + php-fpm #2609
Comments
Debian Jessie with nginx + php-fpm is basically my testing configuration >_> Hmm. Apparently CommonCode.php is getting loaded twice in install.php? How is this passing testing? |
Yes, there is indeed a require_once "more" than necessary, but I've never encountered such an issue... 😮 in install.php the CommonCode.php is first require'd and later require_once'd. By chance, do you have APC installed and enabled? |
Thanks for the fast response. I'm happy to try and help to identify the full extent of this issue. The APC module is not loaded, but XCache, Xdebug and the Zend OPcache are. Please find below the output generated by
Please feel free to request any other outputs and configurations as needed. |
Could be the interaction between the built in Zend OPcache and XCache Cacher. You should not run two OPCache engines, and of the two the built in Zend one is the better choice. Its fine to use Xcache for user data but you you should turn off its cacher in the .ini settings. An alternative to using Xcache for user data is to use APCu which is APC without any opcache, this is what I use these days (Zend + APCu). |
You are right, I should not have >1 active opcache. I just made the following changes: As a result, the above array now looks like this:
A phpinfo output confirms that "APC support"="Emulated", so I would think this ensures only APCU is active, not APC Opcode caching. And ... surprise ... I can access the ElkArte installation page just fine. Looks like you could consider this a user bug. If a warning / friendly workaround for this situtation is possible it might still be nice to have. |
Glad that seems to have fixed it ... I'll leave this open since we need to remove the second require_once anyway. Agree it would be nice to warn about double opcache, have to see if there is an easy way to check that (can't depend on just the extension being loaded, since you can turn it off in the extension ini) ... something to check. |
Warning about things like double opcache should really be more of a 'evaluate php installation' script, not a part of Elkarte proper. |
I tend to agree, but then you might actually want to have it both ways (maybe have the check take place in the background when the admin interface is accessed (post admin authentication)), since environments tend to change over time. |
It's not that Elkarte shouldn't do it, it's that evaluating a php installation for all sorts of gotchas is a project in its own right, and if we want to put that together, it should be a separate project that Elkarte includes, not some baked-in script. |
Thanks for your work on ElkArte.
Yesterday, I was trying to install ElkArte 1.1.0 beta1 on Debian GNU/Linux 8.5 (jessie) Nginx 1.6.2-5+deb8u2, PHP-FPM 5.6.22+dfsg-0+deb8u1, Percona (MySQL) Server 5.6.30-76.3-1.jessie.
I dropped all tables in a previously created database, ensures it uses UTF-8 collation and setup a MySQL user to have access to it. I downloaded the release ZIP package and unpacked it into a subdirectory of /data/srv/www/ where a previously existing nginx virtual host pointed to and still does. This virtual host is setup to redirect any HTTP requests to HTTPS.
Once I accessed the root URL path which points to where I unpacked the files with a web browser, I got redirected to /install/install.php. Arriving there, I got to see a blank page. At the same time, the following was written to the Nginx virtual hosts' log file:
Repeat requests just resulted in the same special characters written to the log file (accompanied by the same error message). I'm not sure what exactly is going wrong there but it does seem like a bug in the code - or a lacking feature (maybe some of the setup I have is just not supported, yet - I remember MySQL 5.6 causing some issues for SMF, but forgot the details).
Even if unsupported, the install experience could possibly be improved.
Update: I'd be happy to also respond on FreeNode IRC in #elkarte.
The text was updated successfully, but these errors were encountered: