forumnz Posted December 3, 2007 Share Posted December 3, 2007 I want to create an auto installer that I can execute from my server and use to install Joomla (the CMS) on other servers. What I know so far is: - I will need the Joomla files on my server (to be copied) - Other servers will need PHP and MySQL - Usernames and passwords needed (will have a form) I do want to have the files on my server because I will be installing custom files (sometimes). I basically want to create a script to copy the files, and edit the config file to fit the new server usernames, passwords, db's etc. I don't want to be given the code or anything, but I would like to be pointed in the right direction. How would I copy all those 100's (if not 1000's) of files and edit the config? I think that is all that needs to be done? Thanks heaps, Sam. Quote Link to comment Share on other sites More sharing options...
cooldude832 Posted December 3, 2007 Share Posted December 3, 2007 You can't 100% do it from your server as you can't upload to it with out a login, best Idea i got would be this 1) User enters their FTP info and server info, desired path etc. 2) You then ftp into their server upload files 3) Then you have a file on their server called autoconfig it unpacks all the sql data and php config etc 4) Delete the unpack file and you are done. Php can do all this, its just a lot of chug and plug Quote Link to comment Share on other sites More sharing options...
forumnz Posted December 3, 2007 Author Share Posted December 3, 2007 So I wont be able to make a script that automatically adjusts the config file appropriately? Quote Link to comment Share on other sites More sharing options...
cooldude832 Posted December 3, 2007 Share Posted December 3, 2007 well lets put it this way, if they install it in the right locaiton that is given to you, you can probably update a single constant to update this root location and it should be okay, but you will need all the ftp,mysql,server vars etc upfront, but it could be do able Quote Link to comment Share on other sites More sharing options...
forumnz Posted December 3, 2007 Author Share Posted December 3, 2007 I will be doing it all myself. I will have access to the other servers and all. How would I make the config file be adjusted? Thanks. Quote Link to comment Share on other sites More sharing options...
cooldude832 Posted December 3, 2007 Share Posted December 3, 2007 pre ftping you make the adjustments to it or you install it with chmod(07777) and then update it on the server and then set chmods again Quote Link to comment Share on other sites More sharing options...
forumnz Posted December 3, 2007 Author Share Posted December 3, 2007 What about having the certain settings as variables and the config file linked to a PHP file which used a .txt doc that ould be automatically generated upon clicking go? I want to make this an easy process. Possible? Easy? Sam. Quote Link to comment Share on other sites More sharing options...
cooldude832 Posted December 3, 2007 Share Posted December 3, 2007 its however you want to do it, you could really just send a zip to the server and unzip it right there if you wanted to simplify things, so basically package it on your server zip it send it then send a second file to unzip and install mysql and your done Quote Link to comment Share on other sites More sharing options...
forumnz Posted December 3, 2007 Author Share Posted December 3, 2007 Thanks - Im really just wanting the most efficient way. You know how it is. Sam. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.