Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


  Search this Thread
Old 05-13-2008, 04:21 AM   #1
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
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/

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

<Location />
SuPHP_AddHandler x-httpd-php

NameVirtualHost *:80

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

I have tested with a test-script that php does work:
cat test.php

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?


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 03:16 AM
LXer: How To Set Up suPHP With PHP4 And PHP5 LXer Syndicated Linux News 0 06-11-2006 12:33 PM
suphp redhatnoob Linux - Software 1 12-07-2005 04:28 AM
suPhp, virtual hosts, and shared code? miscreant Linux - Software 0 07-13-2005 07:09 PM
Apache: suPHP: how to change UID value? murr4y Linux - Software 1 06-12-2005 05:10 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:57 AM.

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