![]() |
[SOLVED] suPHP and suEXEC broken by default in Ubuntu 10.04 Perfect Server
I followed the Ubuntu 10.04 perfect server guide and installed ISPConfig 3.
I want to install Joomla so I created a website with suEXEC + PHP Fast-CGI and another site with suPHP. Neither suEXEC + PHP Fast-CGI nor suPHP work correctly by default. If I upload a file via FTP it will be owned by the correct owner (like web1) but any file created by Joomla will be owned by www-data. If you try to install Joomla you will see an error at the beginning saying that configuration.php is not writable. If you change the permissions of /web from the default value of 710 to 777, Joomla can write to configuration.php but the owner will be www-data. You can now continue installing Joomla but you cannnot install anything from within Joomla since all the files it tries to create are owned by www-data. The first thing you notice when you connect to your site's account with ssh or FTP is that some of the default permissions are wrong. in /var/www/clients/client1/web1 all files and directories are owned by web1 (group client1) /.cache is 755 /cgi-bin is 751 /log is 777 /tmp is 777 /web is 710 .bash_history is 755 in /web the /stats directory has 755 but it is owned by root. The are other files from /web are owned by web1 client1 but their permissions are 754 not 644 So, there is absolutely no difference between a site with suPHP and another one with suEXEC + Fast-CGI. They both have the same default permissions and any file created by Joomla is owned by www-data. Any suggestion on how to fix this? The permissions are OK in Ubuntu 8.04 with ISPConfig 3 and suPHP. |
Quote:
Quote:
To find the reason for your problems, check this: Any jobs listed in the jobqueue in the ispconfig monitor? If no, then set the website to suexec + fastcgi. Wait a few minutes and then get the vhost file of this vhost and post its content here. |
Thanks for the quick answer.
I created a new site with suexec and fastcgi. There are no jobs in the queue. Code:
<Directory /var/www/test.zz> |
What result are you expecting when using suexec?
The default setup via ISPConfig is to restrict use of CGI to the cgi-bin. To enable cgi in other directories you'll also have to set the options to +ExecCGI for whatever directory. Suexec enforces the requirements 1/ the script must be owned by the user/group specified by the SuexecUserGroup directive and have 755 permissions 2/ the containing directory must also be owned by the same user/group. |
Quote:
Because none of them works as expected, any new file Joomla tries to create is owned by www-data. In Ubuntu 8.04 + ISPConfig 3 + manual installation of suPHP there are no problems with permissions in Joomla. |
The default settings make it impossible to run a Joomla site.
|
Quote:
|
Quote:
1) How exactly didn you access the contents of this site? By entering http://www.test.zz in the webbrowser? 2) Add a phpinfo file in this vhost, then open it with the webbrowser and post it here. |
1 Attachment(s)
Quote:
I added www.test.zz and the hostname and IP address of the VM to my /etc/hosts. Before posting here, I installed the Ubuntu 10.04 Perfect Server + ISPConfig 3 on 2 different VMs. It's the same problem on both of them. I attached an .mht with the PHP info. It should open just fine in Firefox or Opera. |
Any suggestions?
|
| All times are GMT +2. The time now is 14:51. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.