tim874536
Verified User
- Joined
- Nov 24, 2006
- Messages
- 73
My Config:
Apache: 2.2.14
Dovecot: 1.2.6
AWstats: no
exim.conf update: yes
MySQL: no
MySQL backup: yes
PHP: 5.2.11 as CLI and 4.4.9 as CGI (default: PHP 5.2.11) with mail() header patch
phpMyAdmin: 3.2.2.1-all-languages
ProFTPD: 1.3.2b
Atmail webmail: no
RoundCube webmail: 0.3
SquirrelMail: 1.4.19
UebiMiau: 3.11
Zend Optimizer: 3.3.3
I have installed the suphp with
./build suphp with setting
After all installed, I tested whether the suphp is working.
However, it seem not working.
Test with 1.php:
and got:
http.conf of user1
May i know what is the problem of my situation??
P.S. what I want to do is that to prevent some folder being set to 777 in order to allow some php program to work and write cache into some folder like "forumdata/cache, cache/"
Thank You.
Tim Leung
Apache: 2.2.14
Dovecot: 1.2.6
AWstats: no
exim.conf update: yes
MySQL: no
MySQL backup: yes
PHP: 5.2.11 as CLI and 4.4.9 as CGI (default: PHP 5.2.11) with mail() header patch
phpMyAdmin: 3.2.2.1-all-languages
ProFTPD: 1.3.2b
Atmail webmail: no
RoundCube webmail: 0.3
SquirrelMail: 1.4.19
UebiMiau: 3.11
Zend Optimizer: 3.3.3
I have installed the suphp with
./build suphp with setting
"--with-apache-user=apache --with-setid-mode=paranoid"
After all installed, I tested whether the suphp is working.
However, it seem not working.
Test with 1.php:
<?php
system("id")
?>
ls -lh /home/user1/public_html/test/1.php
-rw-r--r-- 1 user1 user1 22 Oct 27 16:56 /home/user1/public_html/test/1.php
and got:
Which means not running with the username - user1uid=48(apache) gid=48(apache) groups=48(apache)
http.conf of user1
<VirtualHost 123.234.123.234:80>
ServerName www.test.userdomain.com
ServerAlias www.test.userdomain.com test.userdomain.com
ServerAdmin [email protected]
DocumentRoot /home/user1/domains/userdomain.com/public_html/test
ScriptAlias /cgi-bin/ /home/user1/domains/userdomain.com/public_html/test/cgi-bin/
UseCanonicalName OFF
SuexecUserGroup user1 user1
CustomLog /var/log/httpd/domains/userdomain.com.test.bytes bytes
CustomLog /var/log/httpd/domains/userdomain.com.test.log combined
ErrorLog /var/log/httpd/domains/userdomain.com.test.error.log
<Directory /home/user1/domains/userdomain.com/public_html/test>
Options +Includes -Indexes
php_admin_flag engine ON
<IfModule !mod_php6.c>
php_admin_flag safe_mode OFF
</IfModule>
php_admin_value sendmail_path '/usr/sbin/sendmail -t -i -f [email protected]'
php_admin_value open_basedir /home/user1/:/tmp:/var/tmp:/usr/local/lib/php/
suPHP_Engine ON
suPHP_UserGroup user1 user1
</Directory>
</VirtualHost>
May i know what is the problem of my situation??
P.S. what I want to do is that to prevent some folder being set to 777 in order to allow some php program to work and write cache into some folder like "forumdata/cache, cache/"
Thank You.
Tim Leung