I created a OpenVZ virtual server for the purpose of creating quickly Joomla test sites. I used Ubuntu 8.04 Template in ProxMox. After that I followed the Perfect Server Guide for it where it started to actually install packages. ISPConfig2 seems to work fine except for one small problem. Sites are created with suPHP permissions but new files/components uploaded with Joomla are created with www-data:www-data as owner. Any idea where to start to debuging this?
Yes, you're using mod_php which means that files uploaded via PHP will be owned by the Apache user and group (which is www-data on Debian/Ubuntu).
Where can I find HowTo change it to suPHP? I used this howto... http://how2forge.net/perfect-server-ubuntu8.04-lts-p6
I suggest using new version of suPHP since 6.2 had a rather nasty security problems with symlinks. http://www.suphp.org/download/suphp-0.7.1.tar.gz is the latest at the moment. btw ... what are advantages of suPHP, except file owner issue. Are there any problems that suPHP can cause? How suPHP is updated after this install? Can apt-get update it automatically?
Did not work with that version. I got it to work with these commands... ALSO REMEBER TO ADD THIS LINE FOR APACHE / ISPCONFIG... (Other wise browser / server wants to download the php files.) vi /etc/sysconfig/apache2 [...]APACHE_MODULES="actions alias auth_basic authn_file authz_host authz_groupfile authz_default authz_user authn_dbm autoindex cgi dir env expires include log_config mime negotiation setenvif ssl suexec userdir rewrite ruby"[...] Thanks for all your help. I wonder what is the last suPHP version that works with this?
Take a look at this comment if you want to use a newer suPHP version: http://www.howtoforge.com/install-s...with-ispconfig-2.2.20-and-above#comment-19457
I tried that. It did not work with suPHP 0.7.1. For some reason after upgrade the server gives 'Ineternal Server Errors.' It complains about a fault in the suPHP installation script.
CentOS 5.3 ISPconfig 2 suPHP configuration problem Hello and thank you for the excellent work on the perfect servers and the tutorials. I am however struggling with the suPHP instructions mentioned in this thread. I have tried both v6.2 and v0.7.1 of suPHP and seem to have the same issue. After installing suPHP and removing the LoadModule for php and adding the LoadModule for suPHP as well as adjusting the go_info line and /etc/suphp.conf files my php pages do not want to load - the browser prompts to download them. I have enabled and disabled the PHP mark on the vhost config but the vhost configuration seems to be the same. Specifically: AddType application/x-httpd-php .php .php3 .php4 .php5 php_admin_flag safe_mode Off Any help is appreciated. Regards, Terry
Did you use these instructions? http://www.howtoforge.com/install-s...tions-for-use-with-ispconfig-2.2.20-and-above
suPHP Yes I did. I actually got it working but using those instructions and then making these manual modifications. in /etc/suphp.conf (could not get it to work with the php wrapper) x-httpd-php5="php:/usr/bin/php-cgi" ;Handler for CGI-scripts x-suphp-cgi="execute:!self" in /etc/httpd/conf/vhosts/Vhosts_ispconfig.conf suPHP_Engine on suPHP_UserGroup web6_webmaster web6 AddHandler x-httpd-php5 .php .php3 .php4 .php5 suPHP_AddHandler x-httpd-php5