Since this is common, it might be best to put a sort of include guard around the "include(config.local.php)" line...<div><br></div><div>Maybe check if the __FILE__ name is config.local.php and don't do it if so...</div>
<div><br></div><div>Enforcing something in code when possible is frequently a better solution than simply documenting on wikis or in comments.</div><div><br></div><div><br></div><div>2 cents,</div><div>David</div><div><br>
<br><div class="gmail_quote">On Tue, Jan 26, 2010 at 6:56 PM, Julien Jomier <span dir="ltr"><<a href="mailto:julien.jomier@kitware.com">julien.jomier@kitware.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Good catch Daniel. I'm going to put a warning on the wiki and in the config.php itself (you are not the first one to do this).<br><font color="#888888">
<br>
Julien</font><div><div></div><div class="h5"><br>
<br>
On 1/26/2010 6:54 PM, Daniel Bentley wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
These lines work when inserted before the first include (<br>
include("cdash/config.php") ), but I start to get the 'What should<br>
Firefox do with this file?' prompt again when inserted after this include.<br>
<br>
Taking the idea a little further, I inserted the 'This is a test' line<br>
at the beginning of config.php, then at the beginning of<br>
config.local.php (because I have one).  Each test, install.php would<br>
display the echoed 'This is a test' line.<br>
<br>
<br>
So, I took a look at my config.local.php file...<br>
<br>
It would appear the culprit was that when I had copied config.php to<br>
config.local.php for editing, I did NOT remove the '/** DO NOT EDIT<br>
AFTER THIS LINE */' portion at the end of the file.  Commented out this<br>
portion, and I'm now looking at the CDash Installation screen.<br>
<br>
Looks like it was basically an include() loop.  Interesting that PHP<br>
wouldn't throw an error notification when coming across a loop like this.<br>
<br>
-Daniel<br>
<br>
<br>
Julien Jomier wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Strange. Could you try to put these two lines:<br>
<br>
   echo "This is a test";<br>
   exit();<br>
<br>
at the beginning of the install.php file, try to access it through your<br>
web browser and see if you get the text displayed. If that works, try to<br>
move the two lines at line 31 and then after each include. If all of<br>
these work, try to move the two lines at line 272 (before generate_XSLT).<br>
<br>
let us know,<br>
Julien<br>
<br>
On 1/26/2010 6:04 PM, Daniel Bentley wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Checked that libapache2-mod-php5 in installed (it is) and working (as<br>
evidenced in my php test pages).<br>
<br>
I installed phpmyadmin (though I'm more a CLI guy), and phpMyAdmin works<br>
as expected.  Trying CDash after installing phpMyAdmin, gives me the<br>
same problems as before.<br>
<br>
<br>
And yes, in the output of phpinfo() there are sections for curl, gd,<br>
mysql, and xsl, all of which show as 'enabled'.<br>
<br>
-Daniel<br>
<br>
<br>
Julien Jomier wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi Daniel,<br>
<br>
Could you check that the following package is correctly installed:<br>
<br>
    libapache2-mod-php5<br>
<br>
Could you also try to install phpmyadmin (or phppgadmin depending on the<br>
database you plan to use) and see if one of these packages work.<br>
<br>
Julien<br>
<br>
On 1/26/2010 4:49 PM, Daniel Bentley wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Trying <a href="http://server/CDash/install.php" target="_blank">http://server/CDash/install.php</a> results in the same as other<br>
.php<br>
files from CDash, I am prompted 'What should Firefox do with this<br>
file?'<br>
as before.  As before, downloading the file when prompted by Firefox<br>
results in a 0 byte file.  Other test PHP code in the CDash<br>
directory (a<br>
phpinfo() test page), with the same file permissions, still works fine.<br>
<br>
<a href="http://server/CDash/images/Alert.gif" target="_blank">http://server/CDash/images/Alert.gif</a> displays an image as expected.<br>
<br>
There are no redirects in my Apache configuration.  Speaking of Apache<br>
configs, are there any particular 'Options' I should explicitly<br>
have/not<br>
have for the<Directory>    statement where CDash is located?<br>
<br>
-Daniel<br>
<br>
<br>
Julien Jomier wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Could you try to go to <a href="http://yourserver/CDash/install.php" target="_blank">http://yourserver/CDash/install.php</a>? CDash<br>
automatically redirects to the install page, maybe something is<br>
going on<br>
in that case.<br>
<br>
Also, could your try to get an image in the image directory to see if<br>
you can access it: <a href="http://yourserver/CDash/images/Alert.gif" target="_blank">http://yourserver/CDash/images/Alert.gif</a><br>
<br>
Finally, do you have any redirect in your apache configuration?<br>
<br>
Julien<br>
<br>
On 1/26/2010 12:11 AM, Daniel Bentley wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
php5-xsl was installed via apt-get at the beginning of the<br>
installation<br>
process (as a pre-req).<br>
<br>
Nothing shows up in the configured Apache error.log files.  The<br>
access.log file shows a simple: "GET /CDash HTTP/1.1" 301<br>
-which would indicate a redirection.  This access.log entry is for a<br>
request for /CDash, which Apache handles the redirection to /CDash/.<br>
<br>
Requests to /CDash/ (showing up as a blank page, but no browser<br>
errors)<br>
don't show up in access.log or error.log, nor do requests for<br>
specific<br>
files (ie. index.php or login.php) show up in the log files (but they<br>
still produce the 'What would you like Firefox to do with this file?'<br>
prompt).  Attempts to save the file when prompted, result in 0 byte<br>
files.<br>
<br>
My PHP test file (with phpinfo() request that works as expected)<br>
resides<br>
in the same directory as CDash, with the same file permissions.<br>
<br>
-Daniel<br>
<br>
<br>
Julien Jomier wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi Daniel,<br>
<br>
Could you check if you have the XSLT package for PHP installed? I<br>
think<br>
it's php5-xsl for ubuntu. The XSLT does the translation of the XSL<br>
template and ultimately generates the HTML pages so that might be<br>
the<br>
issue.<br>
<br>
Also, did you check the apache/php error logs, maybe you can dig up<br>
some<br>
hints from the file? they should be in /var/logs/apache2/error.log.<br>
<br>
Let us know,<br>
Julien<br>
<br>
On 1/25/2010 10:58 PM, Daniel Bentley wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
This one has been bugging the heck out of me, but I haven't found a<br>
solution for it yet.<br>
<br>
This is an install on Ubuntu 9.10.  I have Apache set up so that<br>
http<br>
(port 80) and https (port 443) point to the same document root,<br>
under<br>
which is the directory CDash with the installation.<br>
<br>
I can verify that PHP is working correctly, by creating a test.php<br>
with<br>
phpinfo() is this directory.  It displays the information as<br>
expected.<br>
<br>
However, when I try going to<br>
<a href="http://mymachine.mydomain.tld/CDash/" target="_blank">http://mymachine.mydomain.tld/CDash/</a> (or<br>
https://), my browser thinks about it for a few moments, then<br>
delivers a<br>
blank page (blank even in source).  If I try to access a page<br>
directly<br>
(ie. index.php), I get a 'What should Firefox do with this file?'<br>
dialog<br>
prompt.  Even when saving the file this way, the resulting file is<br>
still<br>
blank.<br>
<br>
Usually the 'What should Firefox do with this file?' response comes<br>
from<br>
an incorrect/missing PHP configuration at the Apache level that<br>
affects<br>
ALL PHP.  But this behavior I'm getting, has PHP working with some<br>
pages<br>
(the phpinfo() test page), but not CDash.  Any ideas on why this<br>
might<br>
be?<br>
<br>
-Daniel<br>
_______________________________________________<br>
Cdash mailing list<br>
<a href="mailto:Cdash@public.kitware.com" target="_blank">Cdash@public.kitware.com</a><br>
<a href="http://public.kitware.com/cgi-bin/mailman/listinfo/cdash" target="_blank">http://public.kitware.com/cgi-bin/mailman/listinfo/cdash</a><br>
<br>
</blockquote></blockquote>
<br>
<br>
</blockquote></blockquote>
<br>
<br>
</blockquote></blockquote>
<br>
<br>
</blockquote></blockquote>
<br>
<br>
</blockquote>
_______________________________________________<br>
Cdash mailing list<br>
<a href="mailto:Cdash@public.kitware.com" target="_blank">Cdash@public.kitware.com</a><br>
<a href="http://public.kitware.com/cgi-bin/mailman/listinfo/cdash" target="_blank">http://public.kitware.com/cgi-bin/mailman/listinfo/cdash</a><br>
</div></div></blockquote></div><br></div>