LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 05-13-2008, 03:21 AM   #1
Nemie
LQ Newbie
 
Registered: May 2008
Distribution: CentOS 5.2 Vserver / Fedora 9
Posts: 11

Rep: Reputation: 0
suPHP problem, cannot use user


I have compiled suPHP for apache to be able to run php scripts as a user other than apache, but I cannot make it to use my user to run the php script.

I have read and followed all of these:
Documentation in suphp.org
a wiki on a blog that I cannot paste here it seems
and all the documentation that comes with the suphp.tar.gz ( at least 4 times )

This is how I configured suphp before make && make install:
./configure --prefix=/usr --with-setid-mode=paranoid --with-apr=/usr/bin/apr-1-config

I Have these lines in httpd.conf:
LoadModule suphp_module /usr/lib/httpd/modules/mod_suphp.so

AddType application/x-httpd-php .php
AddHandler application/x-httpd-php .php

<Location />
SuPHP_AddHandler x-httpd-php
</Location>


NameVirtualHost *:80

<VirtualHost *:80>
ServerName blaj.foo
ServerAlias *.blaj.foo
DocumentRoot /var/www/html/test
suPHP_ConfigPath /etc/
suPHP_UserGroup nemie users
</VirtualHost>


I have tested with a test-script that php does work:
cat test.php
<?
system("id");
?>


It gives me:
uid=48(apache) gid=48(apache) groups=48(apache),488(nagios)

It's on that line ( I suppose ) I want to see that it uses my user and not apache.

Have I missed something? Or is something really wrong with what I have done?
Thanks!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
suPHP Question Termina Linux - Server 1 03-23-2007 02:16 AM
LXer: How To Set Up suPHP With PHP4 And PHP5 LXer Syndicated Linux News 0 06-11-2006 11:33 AM
suphp redhatnoob Linux - Software 1 12-07-2005 03:28 AM
suPhp, virtual hosts, and shared code? miscreant Linux - Software 0 07-13-2005 06:09 PM
Apache: suPHP: how to change UID value? murr4y Linux - Software 1 06-12-2005 04:10 PM


All times are GMT -5. The time now is 05:28 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration