
16th January 2012, 17:00
|
|
Senior Member
|
|
Join Date: Mar 2009
Location: Austria
Posts: 280
Thanks: 54
Thanked 84 Times in 51 Posts
|
|
Software package installer
Hi,
I got a problem regarding the software package installer.
The shell script works perfectly fine when I start it as root, except the message that he can't find the command for apache restart.
When I zip everything and make it available in my repo, it gets executed and the db is created and filled, but after that there is nothing. No /usr/share/roundcube and no file at /etc/apache2/conf.d/roundcube.conf.
So is it a permission problem or something like that?
Repo would be http://repo.web-wack.at/ispconfig3/
File is attached!
|

17th January 2012, 13:23
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 31,911
Thanks: 693
Thanked 4,198 Times in 3,213 Posts
|
|
The package manager is intended to install packages in the apps vhost and runs under the permissions of the ispapps user and group. This decision has been made for security reasons. The apps vhost root directory is in /var/www/apps/
The problem with your package is that you try to access directories outside of the apps vhost. Also a path like /usr/share/roundcube would collide with the packages of the debian system, so I would not install a custom software package there as a simple "apt-get insall roundcube" would destrpy your installation on debian and ubuntu.
My recommendation is that you install roundcube to /var/www/apps/roundcube. The application will then run safely under the ispapps user and group and can be accessed on port 8081.
I will check how we can extend the apps installer to create a /webmail alias automatically.
|

17th January 2012, 13:38
|
|
Senior Member
|
|
Join Date: Mar 2009
Location: Austria
Posts: 280
Thanks: 54
Thanked 84 Times in 51 Posts
|
|
Well I already managed it to work.
Although the restart of the webserver still doesn't work.
Forgot to change the type to ispconfig which runs as root.
The only issue after changing to type ispconfig is that the db isn't created automatic. So I do this now in the script too with the info from the app.ini
|

17th January 2012, 13:44
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 31,911
Thanks: 693
Thanked 4,198 Times in 3,213 Posts
|
|
You should really consider to install it to the apps vhost as it is intended. There are good reasons why packages of type ispconfig are disabled by default in the config file, if you enable installations by the root user, then a maliciously coded package can take over your server and cause really much damage.
|

17th January 2012, 18:14
|
|
Senior Member
|
|
Join Date: Mar 2009
Location: Austria
Posts: 280
Thanks: 54
Thanked 84 Times in 51 Posts
|
|
Well when I do this, whats with the conf.d file?
BTW Whats with update, delete function for the ispapp?
|

17th January 2012, 18:24
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 31,911
Thanks: 693
Thanked 4,198 Times in 3,213 Posts
|
|
Quote:
|
Well when I do this, whats with the conf.d file?
|
The apps vhost has already a complete configuration, so you dont need the conf.d file for apps that are installed there. The only thing that needs to be configured is an alias and as I posted above, I will see how this can be integrated in the apps installer.
Quote:
|
BTW Whats with update, delete function for the ispapp?
|
The setup.sh script is executed for installation and update. A uninstall function is not available yet.
|

17th January 2012, 18:34
|
|
Senior Member
|
|
Join Date: Mar 2009
Location: Austria
Posts: 280
Thanks: 54
Thanked 84 Times in 51 Posts
|
|
Well I have got some dir matches in the conf file which is blocking .svn files
|

17th January 2012, 18:40
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 31,911
Thanks: 693
Thanked 4,198 Times in 3,213 Posts
|
|
Cant they be added to a .htaccess file instead? Or even better, delete the .svn directories if they exist in the setup.sh script.
|

18th January 2012, 08:20
|
|
Senior Member
|
|
Join Date: Mar 2009
Location: Austria
Posts: 280
Thanks: 54
Thanked 84 Times in 51 Posts
|
|
.htaccess is only working for apache2 so for the nginx i would need to add this to the php.ini suhosin.session.encrypt=Off
The current package on the repo works.
BTW there is a error in the /usr/local/ispconfig/interface/web/admin/software_update_list.php file
Line 164
this
Code:
$sql = "SELECT v1, v2, v3, v4 FROM software_update, software_update_inst WHERE software_update.software_update_id = software_update_inst.software_update_id AND server_id = 1 ORDER BY v1 DESC , v2 DESC , v3 DESC , v4 DESC LIMIT 0,1";
has to be this
Code:
$sql = "SELECT v1, v2, v3, v4 FROM software_update, software_update_inst WHERE software_update.software_update_id = software_update_inst.software_update_id AND server_id = ".$server_id." ORDER BY v1 DESC , v2 DESC , v3 DESC , v4 DESC LIMIT 0,1";
After that update works, just that it throws an error cuz it tries to create the db again during update for all server on multiserver setup.
Than there is only more the delete function missing.
Last edited by Horfic; 18th January 2012 at 08:29.
|

18th January 2012, 11:21
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 31,911
Thanks: 693
Thanked 4,198 Times in 3,213 Posts
|
|
Quote:
|
The current package on the repo works.
|
Thats great to hear!
Quote:
|
TW there is a error in the /usr/local/ispconfig/interface/web/admin/software_update_list.php file
|
Thanks for the patch. I fixed that in svn stable branch.
Quote:
|
Than there is only more the delete function missing.
|
I've added this as todo in the bugtracker together with the alias and php.ini settings problem.
|
|
The Following User Says Thank You to till For This Useful Post:
|
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT +2. The time now is 22:27.
|
|
Recent comments
21 hours 6 min ago
1 day 2 hours ago
1 day 6 hours ago
1 day 8 hours ago
1 day 22 hours ago
1 day 22 hours ago
2 days 3 hours ago
2 days 10 hours ago
2 days 11 hours ago
2 days 12 hours ago