I have a vps, running directadmin with apache 2 and php 5. It all worked fine, until today, since i discovered that PHP scripts are executed under apache:apache, and not under file's owner uid. This screwed up the entire system, but the main problem is that I can't figure out WHY would suphp stop working suddenly??
Some info:
root # php -v
PHP 5.2.17 (cli) (built: Aug 17 2011 21:02:28)
Copyright (c) 1997-2010 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2010 Zend Technologies
httpd.conf
User apache
Group apache
...
<Directory "/var/www/html">
Options -Indexes FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
<IfModule mod_suphp.c>
suPHP_Engine On
suPHP_UserGroup webapps webapps
SetEnv PHP_INI_SCAN_DIR
</IfModule>
</Directory>
<VirtualHost 192.168.56.55:80 >
...
SuexecUserGroup robert robert
...
<Directory /home/robert/domains/testing.com/public_html>
Options +Includes -Indexes
php_admin_flag engine ON
</Directory>
</VirtualHost>
extra/httpd-php-handlers.conf
<FilesMatch "\.(inc|php|php3|php4|php5|php6|phtml|phps)$">
AddHandler application/x-httpd-php .inc .php .php3 .php4 .php5 .phtml
AddHandler application/x-httpd-php-source .phps
</FilesMatch>
Whenever I run phpinfo() inside /var/www/html, or home/robert/domains/testing.com/public_html (with the file owner robert:robert), the result is the same: User/Group apache(48)/48
How can i solve this?
- and suphp log is empty :(