Re: [suPHP] Apache2 + MultiViews + suPHP

2009-05-20 Thread Aki Tuomi
On Wed, May 20, 2009 at 12:13:54PM +0700, Alex Grebenshchikov wrote:
 Hello,
 
 I've just upgraded Apache from version 1.3. to 2.0.63. 
 No mod_php is used, PHP is used via suPHP.
 
 Everything seems to work fine, but failes with Options +MultiViews.
 
 If we access a page by link http://domain.com/page.php - that's ok. 
 
 But, when we access a page by link http://domain.com/page with MultiViews set 
 on, suPHP does not parse the script and we see raw php code (nothing in suphp 
 log for that request).
 
 
 IfModule mod_suphp.c
 FilesMatch \.(inc|php|php3|php4|php5|php6|phtml|phps)$
  AddHandler x-httpd-php4 .php4
  AddHandler x-httpd-php5 .inc .php .php3 .php5 .phtml
 /FilesMatch
 Location /
 suPHP_Engine on
 suPHP_ConfigPath /usr/local/etc/php5/cgi/
 suPHP_AddHandler x-httpd-php4
 suPHP_AddHandler x-httpd-php5
 /Location
 
 
 It's not a question to use or not to use MultiViews. It's the question, how 
 to make it works properly.
 
 Please, help.
 
 Regards,
 Alex Gr.

You have to tell apache that http://domain.com/page is a PHP script, not
a page. It does this by looking at the request, not the actual filename
on the filesystem.

 ___
 suPHP mailing list
 suPHP@lists.marsching.biz
 http://lists.marsching.com/mailman/listinfo/suphp


signature.asc
Description: Digital signature
___
suPHP mailing list
suPHP@lists.marsching.biz
http://lists.marsching.com/mailman/listinfo/suphp


Re: [suPHP] PHP opcode cache that works with suPHP

2009-05-19 Thread Aki Tuomi
On Tue, May 19, 2009 at 11:54:44AM +0300, Jani Ollikainen wrote:
 Vladimir Prelovac wrote:
  Do you guys know of any PHP caching solution that will work with suphp?
 
 There aren't for the reasons how mod_suphp works.
 

Perhaps best way to deal with this would be to persist a per-user PHP
process for dealing with subsequent requests. You could kill it after
certain number of requests or time. 

Special care should be taken to handle chrooting correctly, and that
same process is never reused for another user. 

This is similar to how Passenger module for ruby works. 

Aki Tuomi


signature.asc
Description: Digital signature
___
suPHP mailing list
suPHP@lists.marsching.biz
http://lists.marsching.com/mailman/listinfo/suphp


Re: [suPHP] php does not execute

2009-05-18 Thread Aki Tuomi
On Mon, May 18, 2009 at 01:52:34PM -0600, Brian Marshall wrote:
 Hi All,


snip /
 
 
 [Wed May 13 13:36:01 2009] [notice] SELinux policy enabled; httpd
 running as context user_u:system_r:httpd_t:s0

I claim the culprit being here... Perhaps you should confirm your
SELinux policy is compatible? 

-- cm

 
 Thanks
 
 Brian 
 
 
 
 
 This e-mail is intended only for the person or persons to whom it is
 addressed and may contain information that is privileged, confidential,
 or otherwise protected from disclosure. If you have received this e-mail
 in error, please immediately notify us by calling the Integer Group Help
 Desk at +01.303.393.3030. Dissemination, distribution, or copying of this
 e-mail or the information herein by anyone other than the intended
 recipient or an employee or agent responsible for delivering the message
 to the intended recipient is prohibited.
 
 The Integer Group
 +01. 303. 393. 3000
 
 
 ___
 suPHP mailing list
 suPHP@lists.marsching.biz
 http://lists.marsching.com/mailman/listinfo/suphp
 


signature.asc
Description: Digital signature
___
suPHP mailing list
suPHP@lists.marsching.biz
http://lists.marsching.com/mailman/listinfo/suphp


Re: [suPHP] How to use chroot setting?

2009-01-09 Thread Aki Tuomi
On Thu, Jan 08, 2009 at 07:33:42PM +, Dave Kennard wrote:
 
Hi
I want to set the user's folder as their root directory, so I have my
suPHP settings like this:
;Path all scripts have to be in
docroot=${HOME}
;Path to chroot() to before executing script
chroot=${HOME}
;Check wheter script is within DOCUMENT_ROOT
check_vhost_docroot=false
But then when I load a php page I get the error Internal Server Error
- Could not execute script (I have set suPHP to show errors in the
browser).
If I comment out chroot or change it to / then it works okay.
suPHP is in paranoid mode, and I am setting SuPHP_UserGroup in the
virtualhost configuration.
I just installed php5-cgi normally, I didn't compile it with the
--enable-discard-path option, could this be the problem, or am I doing
something else wrong?
Thanks
Dave

Is your chroot set-up properly. PHP won't run in chroot if you don't
have all the libraries etc. it needs to perform. Check apache error log
and suphp log. 

Aki Tuomi

___
suPHP mailing list
suPHP@lists.marsching.biz
http://lists.marsching.com/mailman/listinfo/suphp


Re: [suPHP] File is writable by group

2007-11-18 Thread Aki Tuomi
Nild kirjoitti:
 Hi Everyone,
 
 Internal Server Error
 File file.php is writeable by group
 suPHP 0.6.2


chmod 0644 file.php

Aki



signature.asc
Description: OpenPGP digital signature
___
suPHP mailing list
suPHP@lists.marsching.biz
http://lists.marsching.biz/mailman/listinfo/suphp