José Valecillos | 13 May 23:39 2011
Picon

Suphp don't work anymore with php-apache >= 5.6.3

First of all, congratulations for your module for Apache; is certainly very useful.

I im writing you because I've used suphp over the past year successfully, until April 18. That day, Archlinux (wich is the Linux distribution I use), upgrade the php-apache package  to the version  5.36. I did a downgrade of the package to version 5.3.5 and suphp works, even if the php y php-cgi packages are in their version 5.3.6.

I have to mention also, that in Archlinux, doesn't exist a binary version of suphp but it is in AUR. (Archlinux User Repository) that works similar to the ports of Gentoo. This means that every time that I install it, will be compiled for my system. In the logs doesn't appear error, is simply that the scripts are executed by the user "http", as would happen if I was not using suphp.

The version I use of apr and apr-utils is the 1.4.4 and the 1.3.11 respectively. Apache version is 2.2.17. The version of GCC is 4.6.0 20110429 (prerelease), but I am convinced that the problem is not related to that, because it compile with earlier versions and is the same. Only works if the version 5.6.2 or lower.

I attached to this e-mail, configuration files of Apache, PHP and Suphp, if in something helps.

I hope you can help me to keep using a module as useful as "suphp" in the current and subsequent versions of php.

Thanks in advance for your help.

httpd.conf: http://pastebin.com/kNaag5as
httpd-userdir.conf: http://pastebin.com/sHzdLu4F
php.ini: http://pastebin.com/ZpEtgaCr
suphp.conf: http://pastebin.com/pivFvHNS

_______________________________________________
suPHP mailing list
suPHP@...
https://lists.marsching.com/mailman/listinfo/suphp
Thodoris | 14 May 18:51 2011
Picon

SuPHP + Lighttpd + FreeBSD

Hello my friends,

I'm trying to install SuPHP on FreeBSD with Lighttpd.
To get it working I much install apache-2.0.64  to my system.
When I uninstall apache I get 500 errors, the suphp binary is installed 
although.

So I assume suphp requires some libraries (or something) by apache
to work. But I don't want to have apache installed.
What files should I keep and then uninstall apache?

Thank you!
Sebastian Marsching | 15 May 14:16 2011

Re: Suphp don't work anymore with php-apache >= 5.6.3

Hi,

Am 13.05.2011 23:39, schrieb José Valecillos:
> I im writing you because I've used suphp over the past year
> successfully, until April 18. That day, Archlinux (wich is the Linux
> distribution I use), upgrade the php-apache package  to the version
> 5.36. I did a downgrade of the package to version 5.3.5 and suphp works,
> even if the php y php-cgi packages are in their version 5.3.6.

Guessing from the package name (php-apache), this is not the PHP package 
used by suPHP, but the PHP Apache module. suPHP uses the PHP CGI module.

In your Apache configuration file, I saw that you are loading mod_php 
and mod_suphp. This kind of setup is not supported. If you load 
mod_suphp, you should not load mod_php. Although sometimes loading both 
modules at the same time might work, it can cause problems.

So you should check two things:

1. Disable mod_php in your apache configuration by removing the lines
LoadModule php5_module modules/libphp5.so
Include conf/extra/php5_module.conf

2. Check which version of PHP CGI is installed. According to your suPHP 
configuration, your PHP CGI is installed in /usr/bin/php-cgi.

-Sebastian

_______________________________________________
suPHP mailing list
suPHP <at> lists.marsching.com
https://lists.marsching.com/mailman/listinfo/suphp
Sebastian Marsching | 15 May 14:19 2011

Re: SuPHP + Lighttpd + FreeBSD

Am 14.05.2011 18:51, schrieb Thodoris:
> So I assume suphp requires some libraries (or something) by apache
> to work. But I don't want to have apache installed.
> What files should I keep and then uninstall apache?

Parts of suPHP are running as an Apache module. Thus suPHP cannot work 
with other webservers.

If you want to run suPHP with lighttpd, you have to port the Apache 
module to lighttpd, which is a non-trivial task.
Thodoris | 15 May 16:01 2011
Picon

Re: SuPHP + Lighttpd + FreeBSD

On Debian I never installed apache, but SuPHP is working.
On FreeBSD apache must by installed, otherwise SuPHP isn't going to work.

On 05/15/2011 03:19 PM, Sebastian Marsching wrote:
> Am 14.05.2011 18:51, schrieb Thodoris:
>> So I assume suphp requires some libraries (or something) by apache
>> to work. But I don't want to have apache installed.
>> What files should I keep and then uninstall apache?
>
> Parts of suPHP are running as an Apache module. Thus suPHP cannot work 
> with other webservers.
>
> If you want to run suPHP with lighttpd, you have to port the Apache 
> module to lighttpd, which is a non-trivial task.
>
> _______________________________________________
> suPHP mailing list
> suPHP@...
> https://lists.marsching.com/mailman/listinfo/suphp
Thodoris | 30 May 16:18 2011
Picon

Re: SuPHP + Lighttpd + FreeBSD

Bump?

On Sun, May 15, 2011 at 05:01:15PM +0300, Thodoris wrote:
> On Debian I never installed apache, but SuPHP is working.
> On FreeBSD apache must by installed, otherwise SuPHP isn't going to work.
> 
> On 05/15/2011 03:19 PM, Sebastian Marsching wrote:
> >Am 14.05.2011 18:51, schrieb Thodoris:
> >>So I assume suphp requires some libraries (or something) by apache
> >>to work. But I don't want to have apache installed.
> >>What files should I keep and then uninstall apache?
> >
> >Parts of suPHP are running as an Apache module. Thus suPHP cannot
> >work with other webservers.
> >
> >If you want to run suPHP with lighttpd, you have to port the
> >Apache module to lighttpd, which is a non-trivial task.
> >
> >_______________________________________________
> >suPHP mailing list
> >suPHP@...
> >https://lists.marsching.com/mailman/listinfo/suphp
> 
> 
> _______________________________________________
> suPHP mailing list
> suPHP@...
> https://lists.marsching.com/mailman/listinfo/suphp
Daniel Llewellyn | 30 May 16:22 2011
Picon

Re: SuPHP + Lighttpd + FreeBSD

2011/5/30 Thodoris <thodoris <at> redlabel.us.to>:
> Bump?
>
> On Sun, May 15, 2011 at 05:01:15PM +0300, Thodoris wrote:
>> On Debian I never installed apache, but SuPHP is working.
>> On FreeBSD apache must by installed, otherwise SuPHP isn't going to work.
>>
>> On 05/15/2011 03:19 PM, Sebastian Marsching wrote:
>> >Am 14.05.2011 18:51, schrieb Thodoris:
>> >>So I assume suphp requires some libraries (or something) by apache
>> >>to work. But I don't want to have apache installed.
>> >>What files should I keep and then uninstall apache?
>> >
>> >Parts of suPHP are running as an Apache module. Thus suPHP cannot
>> >work with other webservers.
>> >
>> >If you want to run suPHP with lighttpd, you have to port the
>> >Apache module to lighttpd, which is a non-trivial task.

see the reply by Sebastian. suPHP is an apache add-on module,
therefore you require apache for it to work.

--

-- 
Regards,
    The Honeymonster aka Daniel Llewellyn

_______________________________________________
suPHP mailing list
suPHP <at> lists.marsching.com
https://lists.marsching.com/mailman/listinfo/suphp
Daniel Llewellyn | 30 May 16:46 2011
Picon

Re: SuPHP + Lighttpd + FreeBSD

didn't make the list, sorry.

On Mon, May 30, 2011 at 15:24, Thodoris <thodoris <at> redlabel.us.to> wrote:
> Thank you, I understand that, but I can't understand how on Debian it works without Apache installed.
>
> On Mon, May 30, 2011 at 03:22:52PM +0100, Daniel Llewellyn wrote:
>> see the reply by Sebastian. suPHP is an apache add-on module,
>> therefore you require apache for it to work.
>>

it doesn't work without apache installed, period. I would guess that
the package for suphp in the debian apt repository depends on the
relevant apache packages to get a working setup and therefore you
didn't _explicitly_ install apache, but it _is still installed_!

there is NO WAY for suPHP to work without apache, AT ALL.

--

-- 
Regards,
    The Honeymonster aka Daniel Llewellyn

_______________________________________________
suPHP mailing list
suPHP <at> lists.marsching.com
https://lists.marsching.com/mailman/listinfo/suphp
Thodoris | 30 May 17:01 2011
Picon

Re: SuPHP + Lighttpd + FreeBSD

Apache's package is NOT installed on my system, but SuPHP still works.

On Mon, May 30, 2011 at 03:46:05PM +0100, Daniel Llewellyn wrote:
> didn't make the list, sorry.
> 
> On Mon, May 30, 2011 at 15:24, Thodoris <thodoris@...> wrote:
> > Thank you, I understand that, but I can't understand how on Debian it works without Apache installed.
> >
> > On Mon, May 30, 2011 at 03:22:52PM +0100, Daniel Llewellyn wrote:
> >> see the reply by Sebastian. suPHP is an apache add-on module,
> >> therefore you require apache for it to work.
> >>
> 
> it doesn't work without apache installed, period. I would guess that
> the package for suphp in the debian apt repository depends on the
> relevant apache packages to get a working setup and therefore you
> didn't _explicitly_ install apache, but it _is still installed_!
> 
> there is NO WAY for suPHP to work without apache, AT ALL.
> 
> -- 
> Regards,
>     The Honeymonster aka Daniel Llewellyn
> 
> _______________________________________________
> suPHP mailing list
> suPHP@...
> https://lists.marsching.com/mailman/listinfo/suphp
Daniel Llewellyn | 30 May 17:06 2011
Picon

Re: SuPHP + Lighttpd + FreeBSD

On Mon, May 30, 2011 at 16:01, Thodoris <thodoris <at> redlabel.us.to> wrote:
> Apache's package is NOT installed on my system, but SuPHP still works.
>

In that case then I would suggest that you're running PHP through
lighttpd's or nginx's CGI implementation (possibly including some form
of suexec for user privileges akin to suphp or apache-suexec).

--

-- 
Regards,
    The Honeymonster aka Daniel Llewellyn

_______________________________________________
suPHP mailing list
suPHP <at> lists.marsching.com
https://lists.marsching.com/mailman/listinfo/suphp

Gmane