Cansu Kaynak writes: > 1) If you see PHP code on the pages, please make sure that you perform these > two > steps explained in the how-to document. If you do these correctly, the pages > shouldn't include any php code.
> cd php-5.3.9 > ./configure --enable-fpm --with-curl --with-pdo-mysql=/path/to/mysql > --with-gd - > -with-jpeg-dir --with-png-dir --with-config-file-path=/path/to/php.ini > Warning: --with-config-file-path argument should only include the path > ($APP_DIR/etc/), not the file name (php.ini) in the end. > Edit the php.ini file (e.g., $APP_DIR/etc/php.ini) and make the following > changes: > Disable error reporting for PHP notices (or all errors). These lines should > already exist in the php.ini and you need to modify them: > error_reporting = E_NONE > display_errors = Off This is supposedly what I did on the configuration. The main difference is that I'm using Debian's pre-compiled package for PHP 5.5.4, with the olio-specific configuration options in "/etc/php5/fpm/conf.d/90-cloudstone.ini" (I've set the timezone and error reporting options there). Unless there is some incompatibilities between these PHP versions, it should all be the same. Just in case, I've tried compiling the PHP you provide, but there is a compilation error regarding libxml. Your instructions say libxml12-dev, which does not exist in Debian nor Ubuntu; I'm instead using the libxml2-dev package (which produces the compilation error). > 2) Regarding "Login failed" errors: > In general, those errors occur in the log when the web server is overloaded > due > to fully utilized processor or insufficient number of nginx or php-fpm > processes/threads. > You need to make sure that the number of nginx processes and php-fpm processes > are sufficient. > You can change the php logs to see if you get any timeouts. Timeouts indicate > that you don't have a sufficient number of nginx or php-fpm processes/threads. > To increase the number of php-fpm processes: > In php-fpm.conf file, set pm to static and edit pm.max_children until you stop > getting timeouts for a given number of clients. > To increase the number of nginx processes/threads: > In nginx.conf, increase worker_processes and worker_connections until you stop > getting timeouts for a given number of clients. I've looked at the logs (after setting "error_reporting=E_ALL" in the PHP configuration), and there is basically two different types of errors reported by PHP into nginx (/var/log/nginx/error.log): 2013/10/16 15:27:20 [error] 17672#0: *21074 FastCGI sent in stderr: "PHP message: PHP Notice: Undefined index: uname in /var/www/olio/views/site.php on line 84 PHP message: PHP Notice: Undefined index: day in /var/www/olio/public_html/calendar.php on line 26 PHP message: PHP Notice: Undefined index: mon in /var/www/olio/public_html/calendar.php on line 29 PHP message: PHP Notice: Undefined variable: fillWithSpaces in /var/www/olio/public_html/calendar.php on line 55 PHP message: PHP Notice: Undefined variable: fillTrailingSpaces in /var/www/olio/views/calendar.php on line 84" while reading upstream, client: 10.0.1.2, server: lime01-ib, request: "GET /taggedEvents.php?tag=h4pjvvlls&count=141 HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "lime01-ib:90" 2013/10/16 15:27:20 [error] 17672#0: *21074 FastCGI sent in stderr: "PHP message: PHP Notice: Undefined index: uname in /var/www/olio/views/site.php on line 98 PHP message: PHP Notice: Undefined index: uname in /var/www/olio/views/site.php on line 106" while reading upstream, client: 10.0.1.2, server: lime01-ib, request: "GET /taggedEvents.php?tag=h4pjvvlls&count=141 HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "lime01-ib:90" I've seen no traces of timeouts in the logs, and over-provisioning the number of PHP-fpm and nginx processes still produces the login errors. Any more ideas? If it has to be of any use, I can send the script I use to automatize the whole setup (on both client and server). Thanks a lot, Lluis -- "And it's much the same thing with knowledge, for whenever you learn something new, the whole world becomes that much richer." -- The Princess of Pure Reason, as told by Norton Juster in The Phantom Tollbooth
