[suPHP] Problems running PHP scripts with suPHP

Jeremy Chadwick suphp at jdc.parodius.com
Mon Oct 30 23:01:34 CET 2006


No.  The script can be 700 or 600, doesn't matter.

Premature end of script headers usually means PHP is spitting
out some nastygrams about your PHP configuration/setup (such
as missing libraries, functions, etc.), rather than spitting out
HTTP headers (Content-Type, etc. etc.) beforehand.

My guess is your PHP is either built wrong (are you using the CLI
version of PHP and not the CGi version?) or your reference to an
INI file directly isn't working correctly.

-- 
| Jeremy Chadwick                                 jdc at parodius.com |
| Parodius Networking                        http://www.parodius.com/ |
| UNIX Systems Administrator                   Mountain View, CA, USA |
| Making life hard for others since 1977.               PGP: 4BD6C0CB |

On Mon, Oct 30, 2006 at 04:35:01PM -0500, Tom Ray wrote:
> Yeah, actually. Premature End of Script Headers....do the php files need to
> run as 755 like cgi scripts?
> 
> On 10/30/06, Jeremy Chadwick <suphp at jdc.parodius.com> wrote:
> >
> >Does Apache's ErrorLog show anything?
> >
> >--
> >| Jeremy Chadwick                                 jdc at parodius.com |
> >| Parodius Networking                        http://www.parodius.com/ |
> >| UNIX Systems Administrator                   Mountain View, CA, USA |
> >| Making life hard for others since 1977.               PGP: 4BD6C0CB |
> >
> >On Mon, Oct 30, 2006 at 03:11:51PM -0500, Tom Ray wrote:
> >> I'm rather new to suPHP using it for the first time actually and I'm
> >running
> >> into some issues. I was able to install suphp-0.6.1 and seem to have it
> >> running but when I load a simple test.php page that is just supposed to
> >> print "Hello World" and I just get a blank page. My suphp_log tells me
> >that
> >> I executed the script as the user and the group it's supposed to run
> >under,
> >> but I can't get anything to happen with the php script. I have a second
> >test
> >> script that is supposed to create a new file in a test directory and
> >that
> >> doesn't run right either.
> >>
> >> Now if I remove all the calls to suPHP out of my conf files PHP runs
> >great
> >> but as the webserver user which is not what I want.
> >>
> >> This is what I have in my httpd.conf for Apache 2.0.59 with PHP 4.4.4
> >>
> >> LoadModule suphp_module        modules/mod_suphp.so
> >>
> >> <IfModule mod_suphp.c>
> >>        AddHandler x-httpd-php .php
> >>        AddType application/x-httpd-php .php
> >>        suPHP_Engine on
> >>        suPHP_ConfigPath /usr/local/vps/gdn/php/lib/php.ini
> >>        suPHP_AddHandler x-httpd-php
> >> </IfModule>
> >>
> >>
> >> In my VHost config I just have the one line of:
> >>
> >> suPHP_UserGroup user group
> >>
> >>
> >> Any help would be appreciated.
> >
> >> _______________________________________________
> >> suPHP mailing list
> >> suPHP at lists.marsching.biz
> >> http://lists.marsching.biz/mailman/listinfo/suphp
> >
> >
> >_______________________________________________
> >suPHP mailing list
> >suPHP at lists.marsching.biz
> >http://lists.marsching.biz/mailman/listinfo/suphp
> >

> _______________________________________________
> suPHP mailing list
> suPHP at lists.marsching.biz
> http://lists.marsching.biz/mailman/listinfo/suphp




More information about the suPHP mailing list