Apache Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsSystem AdministrationApache Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here
  #1  
Old April 6th, 2001, 06:51 AM
Hicks Hicks is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2001
Posts: 18 Hicks User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 18 m 44 sec
Reputation Power: 0
Not sure which forum is most appropriate for this?

Anyhow I've recently setup php for apache which works fine as the module version .php

I have also setup suExec which when i run cgi scripts which call whoami, they print the correct user, eg muphicks and not nobody...

When i run php as cgi by putting #!/usr/local/apache/cgi-bin/php at the top of the sphp files and the following types in httpd

AddType application/x-httpd-wphp sphp
Action application/x-httpd-wphp /cgi-bin/php

Action php-script /cgi-bin/php
AddHandler php-script sphp

I have tried various combinations of the above, eg both enabled, 1 enabled, and neither enabled...

The script itself runs fine with no suexec errors (unless both are disabled then it just outputs the source due to been an unrecognised type), however it outputs that it is running as nobody, when it should be muphicks, due to the script been run from within the ~/muphicks/cgi-bin/test.sphp directory

Any ideas why it works with cgi, but not with php? and gives no errors to indicate that the php scripts failed any of the suexec security tests??

Cheers,

Reply With Quote
  #2  
Old April 9th, 2001, 09:32 AM
carpediem-it carpediem-it is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2001
Posts: 56 carpediem-it User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 8
SuEXEC does not work with Apache Modules

Darren
__________________
HTTP://WWW.PHP4HOSTING.COM ($) HTTP://WWW.PHP4HOSTING.CO.UK (£)
Website Hosting from $4.80/£3pm -- .COM/.NET $39.98/£24.99
PHP4, MySQL (Root Access), Full CGI-BIN, Shell Access, FTP, POP3, WAP
Full Control Reseller Accounts, unlimited domains, FTP, POP, MySQL,PHP4

Reply With Quote
  #3  
Old April 10th, 2001, 03:23 AM
Hicks Hicks is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2001
Posts: 18 Hicks User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 18 m 44 sec
Reputation Power: 0
Thumbs down Re: PHP suExec works but doesnt work!!

Hi,

I'm not using the module version, I used the module version only for php scripts... I use the cgi version for sphp scripts.

The sphp scripts are processed by the cgi version without error. SUexec is enabled and working as any cgi scripts of the #!/bin/sh type definatly get processed by it as i have checked the user changed by using whoami.

I can even force SUexec errors by deliberatly failing the security checks for the cgi scripts...

However for the sphp scripts they simply get processed by the cgi version of php and run normally without changing user.

Are my AddTypes correct for setting sphp to be processed by the cgi version and not the module (see previous post)

Cheers,

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationApache Development > PHP suExec works but doesnt work!!


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway