[suPHP] Problems running PHP scripts with suPHP
Tom Ray
detroitonline at gmail.com
Wed Nov 1 18:58:43 CET 2006
But am I configuring PHP correctly? Disabling cli and enabling cgi? I've
never really dealt with PHP as cgi always as CLI so I'm a bit lost on this.
Because of recent actions on the box I really need to have suPHP running so
I can follow users actions with their php scripts.
On 11/1/06, Jeremy Chadwick <suphp at jdc.parodius.com> wrote:
>
> find /usr/local/vps -name "php*" -type f -ls
>
> --
> | 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 Wed, Nov 01, 2006 at 11:12:49AM -0500, Tom Ray wrote:
> > Alright, I'm having a hell of a time with this. I've tried to reinstall
> PHP
> > without CLI support and I can't find my path to PHP. It was
> > /usr/local/vps/gdn/php/bin/php with the CLI install but now I can't find
> it
> > with the new install I did. PHP is running but when I try to use suPHP
> it
> > gives me 500 Internal Server Errors and the error log kicks out that it
> > can't find /usr/local/vps/gdn/php/bin/php which is that path I used in
> > configuring suPHP.
> >
> > I'm guessing I have to reconfigure and install suPHP with the new
> > information but I can't seem to find the new path to the PHP executable.
> Can
> > someone give me a hand with how I should install PHP so I can use suPHP.
> I'm
> > running SuSE 9.x with Apache 2.0.59 and PHP 4.4.4 my config line looks
> like
> > this:
> >
> > ./configure --prefix=/usr/local/vps/gdn/php --disable-cli --enable-cgi
> > --with-apxs2=/usr/local/vps/gdn/apache/bin/apxs
> >
> > Can anyone help?
> >
> > On 10/30/06, Jeremy Chadwick <suphp at jdc.parodius.com> wrote:
> > >
> > >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
> > >
> > >
> > >_______________________________________________
> > >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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.marsching.biz/pipermail/suphp/attachments/20061101/4bef589b/attachment-0001.htm
More information about the suPHP
mailing list