Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > Developers' Forum

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 16th January 2012, 17:00
Horfic Horfic is offline
Senior Member
 
Join Date: Mar 2009
Location: Austria
Posts: 325
Thanks: 55
Thanked 95 Times in 60 Posts
Send a message via Skype™ to Horfic
Default 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!
Attached Files
File Type: zip rc2ispconfig3.zip (2.0 KB, 135 views)
__________________
web wack creations - We create your custom web application
Mailuser interface for ISPConfig 3
Reply With Quote
Sponsored Links
  #2  
Old 17th January 2012, 13:23
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,421
Thanks: 834
Thanked 5,500 Times in 4,329 Posts
Default

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.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 17th January 2012, 13:38
Horfic Horfic is offline
Senior Member
 
Join Date: Mar 2009
Location: Austria
Posts: 325
Thanks: 55
Thanked 95 Times in 60 Posts
Send a message via Skype™ to Horfic
Default

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
__________________
web wack creations - We create your custom web application
Mailuser interface for ISPConfig 3
Reply With Quote
  #4  
Old 17th January 2012, 13:44
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,421
Thanks: 834
Thanked 5,500 Times in 4,329 Posts
Default

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.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #5  
Old 17th January 2012, 18:14
Horfic Horfic is offline
Senior Member
 
Join Date: Mar 2009
Location: Austria
Posts: 325
Thanks: 55
Thanked 95 Times in 60 Posts
Send a message via Skype™ to Horfic
Default

Well when I do this, whats with the conf.d file?

BTW Whats with update, delete function for the ispapp?
__________________
web wack creations - We create your custom web application
Mailuser interface for ISPConfig 3
Reply With Quote
  #6  
Old 17th January 2012, 18:24
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,421
Thanks: 834
Thanked 5,500 Times in 4,329 Posts
Default

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.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #7  
Old 17th January 2012, 18:34
Horfic Horfic is offline
Senior Member
 
Join Date: Mar 2009
Location: Austria
Posts: 325
Thanks: 55
Thanked 95 Times in 60 Posts
Send a message via Skype™ to Horfic
Default

Well I have got some dir matches in the conf file which is blocking .svn files
__________________
web wack creations - We create your custom web application
Mailuser interface for ISPConfig 3
Reply With Quote
  #8  
Old 17th January 2012, 18:40
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,421
Thanks: 834
Thanked 5,500 Times in 4,329 Posts
Default

Cant they be added to a .htaccess file instead? Or even better, delete the .svn directories if they exist in the setup.sh script.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #9  
Old 18th January 2012, 08:20
Horfic Horfic is offline
Senior Member
 
Join Date: Mar 2009
Location: Austria
Posts: 325
Thanks: 55
Thanked 95 Times in 60 Posts
Send a message via Skype™ to Horfic
Default

.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.
__________________
web wack creations - We create your custom web application
Mailuser interface for ISPConfig 3

Last edited by Horfic; 18th January 2012 at 08:29.
Reply With Quote
  #10  
Old 18th January 2012, 11:21
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,421
Thanks: 834
Thanked 5,500 Times in 4,329 Posts
 
Default

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.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
The Following User Says Thank You to till For This Useful Post:
Dobneunny (5th November 2012)
Reply

Bookmarks

Tags
installer, package, roundcube

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
Clamd.d not found setting up the Perfect Server (centos 6) deainfo.elisa Server Operation 10 9th December 2013 22:53
yum issues el-sid Installation/Configuration 4 10th August 2011 11:01
setting up a media server centos 5.2 asphix20 HOWTO-Related Questions 2 9th December 2009 16:37
Transaction error Perfect FC6 setup ACDII HOWTO-Related Questions 1 6th July 2007 14:56
Help....package missing sbovisjb1 Installation/Configuration 3 31st March 2006 11:14


All times are GMT +2. The time now is 13:31.


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