[pmwiki-users] more on fedora 5 / pmwikiserv problems

Lindsay Todd toddr at rpi.edu
Mon Oct 23 09:44:00 CDT 2006


Well, maybe if I post my findings, it will help another novice pmwiki 
user...

As I'm sure was obvious to most real PHP programmers, distributions with 
PHP 5 often have both "php" and "php-cgi" as script interpreters.  Older 
distributions only had "php", but with the functionality of the newer 
"php-cgi".

So the solution to this problem is to change pmwikiserv to use "php-cgi" 
on Linux distributions that have it, and run "php" otherwise.  With that 
done, it works quite well on Fedora Core 5.

Lindsay Todd wrote:
> I reported the other day the problems I have had running pmwikiserv on 
> my Fedora Core 5 system (PHP 5.1.6).  I am still not a PHP hacker, but 
> I've delved a bit further into the problem, and maybe someone can give 
> me a bit of help.
>
> The symptom was when I opened http://localhost/wiki, I saw what looked 
> like the html file with the top several lines chopped out.
>
> Adding some echo statements to ProcessResponse, I discovered that the 
> regexp was splitting the response at a blank line.  This is supposed to 
> be the division between the header and the body -- but there was no header!
>
> If I type:  php pmwiki.php and pipe through more, I see that HTML file, 
> but no header.  If I do the same on a RHEL-4 system, I see the 
> Content-type and X-Powered-By headers, followed by a blank line, 
> followed by the HTML body.
>
> Indeed, if I start up php on my Fedora Core 5 system, Control-d to exit, 
> there is no output.  Do the same on the RHEL-4 system, and headers 
> appear, followed by the blank line.
>
> OK, what is a portable way to make sure PHP displays these headers?
>
> /Lindsay
>
>   


-- 
R. Lindsay Todd                      email: toddr at rpi.edu
Senior Systems Programmer            phone: 518-276-2605
Rensselaer Polytechnic Institute     fax:   518-276-2809
Troy, NY 12180-3590                  WWW:   http://www.rpi.edu/~toddr

The views, opinions, and judgments expressed in this message are
solely those of the author. The message contents have not been
reviewed or approved by Rensselaer.





More information about the pmwiki-users mailing list