Fontenay Ronan | 13 Jul 13:28 2009
Picon

SuPHP on OpenBSD

Hello,

I'm trying to install SuPHP on an OpenBSD server, so I've downloaded 
suphp-0.7.1.tar.gz.

I ran configure script like : ./configure --prefix=/usr 
--with-apxs=/usr/sbin/apxs --with-apache-user=www  
--with-logfile=/var/www/logs/suphp_log and then I ran make (I also tried 
gmake).

Evrything's fine, but when I ran "make install" (also tried gmake 
install) I've got this error :

/usr/bin/install -c -m 0755 .libs/mod_suphp.so 
'/usr/lib/apache/modules'/mod_suphp.so
install: .libs/mod_suphp.so: No such file or directory

So i tried with the last snapshot, and I've got the same problem :

configure result : http://pastebin.com/m1c79a540

make result : http://pastebin.com/m6a4556dc

and make install result : http://pastebin.com/m3a72f129

Thanks for help

Ron
suphp | 13 Jul 18:06 2009
Picon

Re: SuPHP on OpenBSD

Fontenay Ronan a écrit :
> Hello,
> 
> 
> I'm trying to install SuPHP on an OpenBSD server, so I've downloaded 
> suphp-0.7.1.tar.gz.
> 
> I ran configure script like : ./configure --prefix=/usr 
> --with-apxs=/usr/sbin/apxs --with-apache-user=www  
> --with-logfile=/var/www/logs/suphp_log and then I ran make (I also tried 
> gmake).
> 
> Evrything's fine, but when I ran "make install" (also tried gmake 
> install) I've got this error :
> 
> /usr/bin/install -c -m 0755 .libs/mod_suphp.so 
> '/usr/lib/apache/modules'/mod_suphp.so
> install: .libs/mod_suphp.so: No such file or directory
> 
> So i tried with the last snapshot, and I've got the same problem :
> 
> configure result : http://pastebin.com/m1c79a540
> 
> make result : http://pastebin.com/m6a4556dc
> 
> and make install result : http://pastebin.com/m3a72f129
> 
> Thanks for help
> 
> Ron
(Continue reading)

Fontenay Ronan | 13 Jul 19:07 2009
Picon

Re: SuPHP on OpenBSD

suphp wrote:
> Fontenay Ronan a écrit :
>   
>> Hello,
>>
>>
>> I'm trying to install SuPHP on an OpenBSD server, so I've downloaded 
>> suphp-0.7.1.tar.gz.
>>
>> I ran configure script like : ./configure --prefix=/usr 
>> --with-apxs=/usr/sbin/apxs --with-apache-user=www  
>> --with-logfile=/var/www/logs/suphp_log and then I ran make (I also tried 
>> gmake).
>>
>> Evrything's fine, but when I ran "make install" (also tried gmake 
>> install) I've got this error :
>>
>> /usr/bin/install -c -m 0755 .libs/mod_suphp.so 
>> '/usr/lib/apache/modules'/mod_suphp.so
>> install: .libs/mod_suphp.so: No such file or directory
>>
>> So i tried with the last snapshot, and I've got the same problem :
>>
>> configure result : http://pastebin.com/m1c79a540
>>
>> make result : http://pastebin.com/m6a4556dc
>>
>> and make install result : http://pastebin.com/m3a72f129
>>
>> Thanks for help
(Continue reading)

Fontenay Ronan | 13 Jul 20:20 2009
Picon

Re: SuPHP on OpenBSD

suphp wrote:
> Fontenay Ronan a écrit :
>   
>> Hello,
>>
>>
>> I'm trying to install SuPHP on an OpenBSD server, so I've downloaded 
>> suphp-0.7.1.tar.gz.
>>
>> I ran configure script like : ./configure --prefix=/usr 
>> --with-apxs=/usr/sbin/apxs --with-apache-user=www  
>> --with-logfile=/var/www/logs/suphp_log and then I ran make (I also tried 
>> gmake).
>>
>> Evrything's fine, but when I ran "make install" (also tried gmake 
>> install) I've got this error :
>>
>> /usr/bin/install -c -m 0755 .libs/mod_suphp.so 
>> '/usr/lib/apache/modules'/mod_suphp.so
>> install: .libs/mod_suphp.so: No such file or directory
>>
>> So i tried with the last snapshot, and I've got the same problem :
>>
>> configure result : http://pastebin.com/m1c79a540
>>
>> make result : http://pastebin.com/m6a4556dc
>>
>> and make install result : http://pastebin.com/m3a72f129
>>
>> Thanks for help
(Continue reading)

Robin Gould | 15 Jul 13:30 2009
Picon

SuPHP chroot & Variables

Hello,
 
I have a small question concerning suphp.
We run a small Linux webserver CentOS setup with CPanel on it.
Recently cpanel added suphp 0.7.1 to their update packages.
I updated this recently and it seems to work decently.
 
The one drawback for us at the moment with Suphp is that any directory/file outside of the users home directory is accessible.
We are aware a lot of this can be fixxed by properly chowning certain folders, however this has lead to other right related errors. (mostly log file related).
 
With this new update to 0.7.1 I was hoping I could resolve this properly by setting up a chroot with the newly implemented variables.
In my suphp.conf the line looks like this:
 
<begin code>
;Path to chroot() to before executing script
chroot=${HOME}
<end code>
 
Now in the manual it specifically mentions that the chroot command supports variables.
However this does not seem to be the case, upon attempting to open any page i get confronted with an "internal server error".
The log file shows the following:
[Wed Jul 15 12:50:59 2009] [error] [client 89.184.167.146] SystemException in API_Linux.cpp:477: chroot() failed: No such file or directory
[Wed Jul 15 12:50:59 2009] [error] [client 89.184.167.146] Premature end of script headers: test.php
Now my questions is:
 
Am I forgetting something or does chroot simply not support variables?
 
 
Kind regards,
 
Robin
_______________________________________________
suPHP mailing list
suPHP@...
https://lists.marsching.com/mailman/listinfo/suphp
Jesse Santana | 16 Jul 13:01 2009

Jesse Santana/AdminFinance/CSULB is out of the office.

I will be out of the office starting 07/16/2009 and will not return until 07/20/2009.

I will respond to your message when I return. If you require immediate assistance, please contact our support line at net-help-v410frQmkZPdyZFCUbrdog@public.gmane.org

_______________________________________________
suPHP mailing list
suPHP@...
https://lists.marsching.com/mailman/listinfo/suphp
Henry Robertson | 17 Jul 19:11 2009

Directory / is not owned by <user>


Hello All,

I've run into an issue setting up suphp 0.7.1 with my RHEL5.3 server.

Background info:

I've used the 0.6.3 rpms from RH as well as compiled (currently using 0.7.1)  from source with options : ./configure --with-setid-mode=owner --with-apache-user=apache --disable-checkpath

My suphp.conf file:
----------------------------------------------------------------------
[global]
logfile=/var/log/httpd/suphp_log
loglevel=info
webserver_user=apache
docroot=/var/www
env_path=/bin:/usr/bin
umask=0077
min_uid=0
min_gid=0 (yes i tested as root, still didn't work)

; Security options
allow_file_group_writeable=true
allow_file_others_writeable=true
allow_directory_group_writeable=true
allow_directory_others_writeable=true

;Check wheter script is within DOCUMENT_ROOT
check_vhost_docroot=false

;Send minor error messages to browser
errors_to_browser=true

[handlers]
;Handler for php-scripts
x-httpd-php=php:/usr/bin/php

;Handler for CGI-scripts
x-suphp-cgi=execute:!self
-------------------------------------------------------------------------------------
My apache module conf:
-------------------------------------------------------------------------------------
LoadModule suphp_module modules/mod_suphp.so
suPHP_Engine on
AddHandler x-httpd-php .php .php5 .php4 .php3 .phtml
suPHP_ConfigPath /etc
suPHP_AddHandler x-httpd-php
-------------------------------------------------------------------------------------

vhost config:
--------------------------------------------------------------------------------------
<VirtualHost *:80>
    DocumentRoot /var/www/web
    ServerName testweb.test.dev
</VirtualHost>
--------------------------------------------------------------------------------------


Directory owners:
/var (root)
/var/www (root)
/var/www/web (test_web)
Scripts:
/var/www/web/index.php (test_web:test_web)


Any Ideas? Even running as root, it will say  "Directory / is not owned by root" which is most certainly is.

Thanks!

Henry

_______________________________________________
suPHP mailing list
suPHP@...
https://lists.marsching.com/mailman/listinfo/suphp
Catalin Hutanu | 29 Jul 20:32 2009
Picon

Internal Server Error (500)

hello.

I have a Centos 5.2 server with cPanel, WHM, php5 and suphp on which i have multiple domains.
While to while... on the domains mostly visited i get a 500 error (internal server error) for 1-2 up to 10 minutes...
in error_log i found this:

SystemException in API_Linux.cpp:172: setuid() failed: Resource temporarily unavailable, referer: http://my_site.com
Premature end of script headers: index.php, referer: http://my_site.com

on google i found that my cpanel account is reaching the number of 20 processes / account and it is blocked automatically.

someone told me that fast-cgi and suphp are the fault and that those 2 are buggy. the fact is that i need suphp..

what can i do?

waiting for your answer.
thanks
_______________________________________________
suPHP mailing list
suPHP@...
https://lists.marsching.com/mailman/listinfo/suphp
Alex Nordlund | 29 Jul 21:27 2009
Picon

Re: Internal Server Error (500)

On Wed, Jul 29, 2009 at 8:32 PM, Catalin Hutanu<nemoxpert@...> wrote:
> SystemException in API_Linux.cpp:172: setuid() failed: Resource temporarily
> unavailable, referer: http://my_site.com

There's the issue, how about giving it enough resources?
Increase the limit :-)?

---
//Alex
Jason Cox | 31 Jul 01:42 2009

500 error for symlinks under suPHP

I have a directory called /home/core/src

This directory contains images and scripts which I share with multiple
websites. What I typically do is symlink to them.

For instance, http://www.buttehumane.org/src/. The "src" directory
is a symlink to /home/core/src

The problem is that on the server with suPHP, I can no longer direct link to a file with
a php, html, etc extension. For instance,
http://www.buttehumane.org/src/js/index.php. I just get a 500 error.

This is because every file under /home/core/src is shared by multiple websites and therefore I cannot assign a particular domain owner or group to them. These are owned by root. But under suPHP, you can't access a file owned by root because the highest level permission available for a file is 644. So I'm stuck... that is unless there's a loophole or some system user that I can apply to it that I'm not aware of.

 Any help?

_______________________________________________
suPHP mailing list
suPHP@...
https://lists.marsching.com/mailman/listinfo/suphp

Gmane