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

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.

--
Cansu

On Oct 11, 2013, at 5:42 PM, Lluís Vilanova 
<[email protected]<mailto:[email protected]>> wrote:

Hi,

After running the cloudstone benchmark [1], the run log contains lines like
this:

 UIDriverAgent[0].9.doEventDetail: Invalid uri 
'http://lime01-ib:90/events.php?socialEventID=<?echo $se;?>': Invalid query

Looking at the generated PHP webpage, I saw a lot of calls to php code embedded
on the resulting HTML. Looking at olio's php source, there's plenty of lines
that must be patched like this:

--- a/views/commentsRating.php 2013-10-11 16:57:40.322714000 +0300
+++ b/views/commentsRating.php 2013-10-11 16:45:11.308250000 +0300
@@ -84,7 +84,7 @@
 your comment<br/>
<div id="editing<?php echo $tmp_commentid;?>" style="display: none;">
            <div id="editcomment_form<?php echo $tmp_commentid;?>">
-                  <form id="editcommentsForm<?php echo $tmp_commentid;?>" 
method="post" action="events.php?socialEventID=<?echo $se;?>" >
+                  <form id="editcommentsForm<?php echo $tmp_commentid;?>" 
method="post" action="events.php?socialEventID=<?php echo $se;?>" >
                        <strong>Comment</strong><br/>
                        <textarea cols="40" id="editcomments<?php echo 
$tmp_commentid;?>" name="editcomments" 
rows="20"><?=$tmp_uname_comments?></textarea>
                        <br/>

Is this on purpose, or an error in the sources available in [2]?

Furthermore, after fixing these, new errors appear on the run logs:

 UIDriverAgent[0].18.doLogin: Found login prompt at index 1969, Login as 
jemc1c_1_42, 5319 failed.

Is this the expected behaviour?

[1] http://parsa.epfl.ch/cloudsuite/web.html
[2] http://parsa.epfl.ch/cloudsuite/software/web.tar.gz

Thanks,
 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

Reply via email to