Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 2 > Tips/Tricks/Mods

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 3rd October 2008, 19:31
SamTzu SamTzu is offline
HowtoForge Supporter
 
Join Date: Apr 2007
Location: Helsinki
Posts: 438
Thanks: 34
Thanked 56 Times in 39 Posts
Send a message via Skype™ to SamTzu
Question Automatic Joomla installation

I have been racking my brains on how to automate some of my work. Has anyone found a way to automatically install Joomla in a new ISPConfig web site?

Does anyone know how to import database automatically in to a new site?
Does anyone know how to create a database automatically?
Does anyone know how to copy files to a new site automatically?
Can this be done according to a Hosting Plan?

Any scripts? Anyone?
__________________

Sami Mattila
Internet-Content

Telephone:
00358942833310
Email: firstname.lastname@internet-content.org
Shop: http://shop.internet-content.net
Site: http://www.internet-content.net
Blog: http://www.internet-content.net/en/blog
FB: https://www.facebook.com/internetcontent

Reply With Quote
Sponsored Links
  #2  
Old 4th October 2008, 14:45
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,749 Times in 2,579 Posts
Default

You could write a shell script. I guess the basic commands that you need are
- wget (to download the Joomla package)
- tar (to uncompress it)
- cd
- cp or mv to copy or move the Joomla files to its destination directory
- and to work with MySQL dumps, take a look at http://www.howtoforge.com/faq/6_4_en.html and http://www.howtoforge.com/faq/6_3_en.html
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 4th October 2008, 19:22
SamTzu SamTzu is offline
HowtoForge Supporter
 
Join Date: Apr 2007
Location: Helsinki
Posts: 438
Thanks: 34
Thanked 56 Times in 39 Posts
Send a message via Skype™ to SamTzu
Default

I have been thinking about a way to somehow connect a script to a hosting plan. That way when a ReSeller makes a new site based on a certain hosting plan it would execute/call that particular script.

If that could be possible then I could have for instance Basic, Standard and Pro folders under /var/www and each of those would be copied to the web folder based on the hosting plan.

That would considerably ease my life.
__________________

Sami Mattila
Internet-Content

Telephone:
00358942833310
Email: firstname.lastname@internet-content.org
Shop: http://shop.internet-content.net
Site: http://www.internet-content.net
Blog: http://www.internet-content.net/en/blog
FB: https://www.facebook.com/internetcontent

Reply With Quote
  #4  
Old 5th October 2008, 17:38
Leszek Leszek is offline
Senior Member
 
Join Date: Nov 2006
Location: Poland,Włocławek
Posts: 369
Thanks: 22
Thanked 42 Times in 35 Posts
Send a message via Skype™ to Leszek
Default

You need something like Fantastico (http://en.wikipedia.org/wiki/Fantastico_(web_hosting)),which comes with CPanel.
It would certainly make Your life easier if it comes to installing CMSes but not if it comes to security. You would have to track version changes of the scripts and update their packages on Your server.That can be a lot of work too and is easy to forget.
Reply With Quote
  #5  
Old 6th October 2008, 12:03
SamTzu SamTzu is offline
HowtoForge Supporter
 
Join Date: Apr 2007
Location: Helsinki
Posts: 438
Thanks: 34
Thanked 56 Times in 39 Posts
Send a message via Skype™ to SamTzu
Default

I don't need something like Fantastico.
It is a commercial script library.
CPANel is also commercial.
In my opinion both are constantly behind their times and in need of massive upgrade. What I want to do I can't do with any of the software out there.

We should start building more functionality (read plugins/scripts) to ISPConfig. Even simple scipts that could copy certain folders automatically to web folder would save time for the administrators. Next step is to link those scripts to Hosting Plans.
__________________

Sami Mattila
Internet-Content

Telephone:
00358942833310
Email: firstname.lastname@internet-content.org
Shop: http://shop.internet-content.net
Site: http://www.internet-content.net
Blog: http://www.internet-content.net/en/blog
FB: https://www.facebook.com/internetcontent

Reply With Quote
  #6  
Old 6th October 2008, 12:48
Leszek Leszek is offline
Senior Member
 
Join Date: Nov 2006
Location: Poland,Włocławek
Posts: 369
Thanks: 22
Thanked 42 Times in 35 Posts
Send a message via Skype™ to Leszek
Default

It's worth to try.We already have a ready interface for addons.
Reply With Quote
  #7  
Old 6th October 2008, 15:19
SamTzu SamTzu is offline
HowtoForge Supporter
 
Join Date: Apr 2007
Location: Helsinki
Posts: 438
Thanks: 34
Thanked 56 Times in 39 Posts
Send a message via Skype™ to SamTzu
Default

I'm of the opinion that only Open Source software will thrive and get regular updates/upgrades. I would even go so far to claim that this decade will see the end of the Closed Source software. I like "ScriptWorx Script Management" but unfortunatelly that too is not Open Source. Similar functionality under the Options page in ISPConfig would rock.
__________________

Sami Mattila
Internet-Content

Telephone:
00358942833310
Email: firstname.lastname@internet-content.org
Shop: http://shop.internet-content.net
Site: http://www.internet-content.net
Blog: http://www.internet-content.net/en/blog
FB: https://www.facebook.com/internetcontent

Reply With Quote
  #8  
Old 7th October 2008, 09:52
SamTzu SamTzu is offline
HowtoForge Supporter
 
Join Date: Apr 2007
Location: Helsinki
Posts: 438
Thanks: 34
Thanked 56 Times in 39 Posts
Send a message via Skype™ to SamTzu
Default

I got a friend of mine intrested in this. He promised to look in to making me a little php script that would auto install a database from userlist/passwordlist. I'm probably going to pay him something even though he said he didn't want any money for it. I'll keep you posted on this. (The script will be GNU ofcourse.)
__________________

Sami Mattila
Internet-Content

Telephone:
00358942833310
Email: firstname.lastname@internet-content.org
Shop: http://shop.internet-content.net
Site: http://www.internet-content.net
Blog: http://www.internet-content.net/en/blog
FB: https://www.facebook.com/internetcontent

Reply With Quote
  #9  
Old 15th October 2008, 23:03
SamTzu SamTzu is offline
HowtoForge Supporter
 
Join Date: Apr 2007
Location: Helsinki
Posts: 438
Thanks: 34
Thanked 56 Times in 39 Posts
Send a message via Skype™ to SamTzu
Default Automation - (Joomla, Drupal etc.)

Good news gang. My friend and I tested the first version of "ReSeller based" Joomla installation on ISPConfig. The tests went well. There are still some details to be ironed out - but all things considered it looks good. By browsing to an install.php webpage and using it - I could install a Joomla from one predefined folder on the server - and predefined sql dump file. All I had to do was to insert a "profile" name (what folder to install from), database name (web-NrX) and it's password on a webpage. Three settings only on a php page. I figure all the ReSellers can be thought this. Eventually this could be integrated in to the ISPConfig "Options" page it self in a manner that only required the RS to choose from a pulldown menu what profile to install. My friend tells me this wont be too difficult. (He only needed couple of hours doing the scripts.)

I'll keep you posted. We should have first version for you to test within a week or so.
__________________

Sami Mattila
Internet-Content

Telephone:
00358942833310
Email: firstname.lastname@internet-content.org
Shop: http://shop.internet-content.net
Site: http://www.internet-content.net
Blog: http://www.internet-content.net/en/blog
FB: https://www.facebook.com/internetcontent

Reply With Quote
  #10  
Old 16th October 2008, 18:59
SamTzu SamTzu is offline
HowtoForge Supporter
 
Join Date: Apr 2007
Location: Helsinki
Posts: 438
Thanks: 34
Thanked 56 Times in 39 Posts
Send a message via Skype™ to SamTzu
 
Default

It's ready.
http://www.howtoforge.net/forums/sho...321#post150321
__________________

Sami Mattila
Internet-Content

Telephone:
00358942833310
Email: firstname.lastname@internet-content.org
Shop: http://shop.internet-content.net
Site: http://www.internet-content.net
Blog: http://www.internet-content.net/en/blog
FB: https://www.facebook.com/internetcontent

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
ubuntu ispconfig joomla .htaccess steve1084 General 8 6th January 2007 16:55
Joomla & MySql config and chmod permissions normdouglas Installation/Configuration 6 27th December 2006 13:39
newbie ububtu 6.0.6 error PHP binary line 816 davidsky73 Installation/Configuration 8 17th September 2006 12:51
Request: Perfect Ubuntu 6.06 LTS - Automatic LAMP Server Installation (co-location) Anim Suggest HOWTO 19 6th June 2006 12:30
ISPC install stops str2etboy Installation/Configuration 19 28th January 2006 08:18


All times are GMT +2. The time now is 12:25.


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