#1  
Old 9th May 2010, 11:09
DUCKFACE DUCKFACE is offline
Member
 
Join Date: Dec 2008
Location: Bulgaria
Posts: 92
Thanks: 2
Thanked 2 Times in 2 Posts
Default suPHP problem

when i change the engine from mod_php to suPHP the website starts to act strange.
system('id'); returns
uid=33(www-data) gid=33(www-data) groups=33(www-data),5003(ispconfig),5004(client2),5005(client3), 5006(client4),5007(client5),5008(client0),5009(cli ent6),5010(client7),5011(client8),5012(client9),50 13(client10),5014(ispapps)
isn't that wrong ... www-data
how to fix it ?

Last edited by DUCKFACE; 28th July 2011 at 13:15.
Reply With Quote
Sponsored Links
  #2  
Old 10th May 2010, 13:22
DUCKFACE DUCKFACE is offline
Member
 
Join Date: Dec 2008
Location: Bulgaria
Posts: 92
Thanks: 2
Thanked 2 Times in 2 Posts
Default whats wrong ?

when i change from suPHP to mod_php MySQL database gets empty, ftp folder change the path....
is this the way it have to be ?

Last edited by DUCKFACE; 28th July 2011 at 13:14.
Reply With Quote
  #3  
Old 10th May 2010, 15:18
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,733
Thanks: 840
Thanked 5,596 Times in 4,407 Posts
Default

Enable debugging in ispconfig. But as the code to empty the database is not connected to the website settings in any way, I see no wy how it can get emptied by switching between mod_php and suphp. Also the FTP folder does not change the path, at least if you have not changed the default path settings for websites in ispconfig.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #4  
Old 11th May 2010, 11:07
DUCKFACE DUCKFACE is offline
Member
 
Join Date: Dec 2008
Location: Bulgaria
Posts: 92
Thanks: 2
Thanked 2 Times in 2 Posts
Default debu enabled

11.05.2010-10:57 - DEBUG - Processed datalog_id 303
11.05.2010-10:57 - DEBUG - Call function 'restartHttpd' in module 'web_module'.
11.05.2010-10:57 - DEBUG - Remove Lock: /usr/local/ispconfig/server/temp/.ispconfig_lock
11.05.2010-10:58 - DEBUG - Set Lock: /usr/local/ispconfig/server/temp/.ispconfig_lock
11.05.2010-10:58 - DEBUG - Found 1 changes, starting update process.
11.05.2010-10:58 - DEBUG - Call function 'ssl' in plugin 'apache2_plugin' raised by event 'web_domain_update'.
11.05.2010-10:58 - DEBUG - Call function 'update' in plugin 'apache2_plugin' raised by event 'web_domain_update'.
11.05.2010-10:58 - DEBUG - exec: chmod 751 /var/www/clients/client4/web4/
11.05.2010-10:58 - DEBUG - exec: chmod 751 /var/www/clients/client4/web4/*
11.05.2010-10:58 - DEBUG - exec: chmod 710 /var/www/clients/client4/web4/web
11.05.2010-10:58 - DEBUG - exec: chmod 777 /var/www/clients/client4/web4/tmp
11.05.2010-10:58 - DEBUG - exec: usermod --groups sshusers web4
11.05.2010-10:58 - DEBUG - exec: chown web4:client4 /var/www/clients/client4/web4
11.05.2010-10:58 - DEBUG - exec: chown web4:client4 /var/www/clients/client4/web4/log/error.log
11.05.2010-10:58 - DEBUG - Disable SSL for: garant-stroi.com
11.05.2010-10:58 - DEBUG - Processed datalog_id 304
11.05.2010-10:58 - DEBUG - Call function 'restartHttpd' in module 'web_module'.
11.05.2010-10:58 - DEBUG - Remove Lock: /usr/local/ispconfig/server/temp/.ispconfig_lock

but still no changes in uid
uid=33(www-data) gid=33(www-data) groups=33(www-data),5003(ispconfig),5004(client2),5005(client3), 5006(client4),5007(client5),5008(client0),5009(cli ent6),5010(client7),5011(client8),5012(client9),50 13(client10),5014(ispapps)

here is the lines from vhost
# suphp enabled
<Directory /var/www/clients/client4/web4/web>
suPHP_Engine on
# suPHP_UserGroup web4 client4
AddHandler x-httpd-suphp .php .php3 .php4 .php5
suPHP_AddHandler x-httpd-suphp
</Directory>
the strange part for me is # on suPHP user. when i try to remove it .. i gtet an error "Invalid command 'suPHP_UserGroup', perhaps misspelled or defined by a module not included in the server configuration
"

Last edited by DUCKFACE; 12th May 2010 at 00:29.
Reply With Quote
  #5  
Old 11th May 2010, 11:39
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,733
Thanks: 840
Thanked 5,596 Times in 4,407 Posts
 
Default

Quote:
the strange part for me is # on suPHP user. when i try to remove it .. i gtet an error "Invalid command 'suPHP_UserGroup', perhaps misspelled or defined by a module not included in the server configuration
"
Thats the reason why it is commented out. Suphp on all major linux distributions is compiled to execute the php files under their owner. The setting suPHP_UserGroup is only be used if you recompile your suphp with "paranoid" switch, if its not compiled like that, you get the error message.

If your php files are ecxecuted under the wrong user, you might have uploaded them with the wrong user or you chowned them to www-data. Make sure that the php files are owned by the user of the website, thats the case when you upload them with FTP. If you installed them manually with SSH then you have to chown them.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Strange email problem for one of my domains... any help appreciated paulrobert_a Installation/Configuration 5 9th August 2010 15:15
suPHP file permission catalyst General 14 7th March 2010 02:16
Security - mod_php with FTP vs SuPHP or SuExec ethanlifka Installation/Configuration 1 22nd February 2010 11:18
postfix mysql on fedora core5 igongora Installation/Configuration 7 17th April 2007 05:40


All times are GMT +2. The time now is 18:52.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.