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:
Be the architects of evolution and help create the mobile internet future. It’s your move---enter to win here!
  #1  
Old April 25th, 2001, 08:38 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
Hi, I've almost got this sorted now but not quite.

I have got php to run as a module with no probs.

I have also got cgi scripts to run from my user space no probs.

I have also setup suexec so that a cgi script that contains whoami will show my username and not nobody.

I want the same to happen for php, so I have setup php as cgi instead of a module so that it is forced through suexec.

The scripts run fine but do not change user. If I change permission to 700 I get the Internal server error but no suexec log. So the user is not been changed on the script.

What do I need to add to httpd.conf so that all php or sphp or php3 (or whatever extention you think i should use) goes via the php.cgi program? which is installed in /usr/local/apache/cgi-bin/php.cgi

also should the permissions on php.cgi be execute for all?

The permission on the dir I'm running my script in eg ~/test/test1.php3 is execute for all and +rwx for the owner. The script itself is 700.

Can anyone suggest anything that may be wrong? I've tried all sorts of permissions according to how the suexec docs state it should be set and I think they are correct, I think the prob is the calling of the php.cgi from apache?? since normal .cgi scripts are suexec'd to the correct user, so I used the same permissions as I have set on the .cgi.

The way i'm testing whether the php script has changed user is by setting it 700 and seeing if i can do

www.myserver.com/~muphicks/test/test1.php3

It also within the <?php has a call to passthru( whoami )


HELP I'm compleatly stuck on this one.

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationApache Development > php as cgi with Apache


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 1 hosted by Hostway