ionCube Logo
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


 
Post new topic   Reply to topic    ionCube Forum Index -> ionCube Package Foundry

Config file change?? Is it possible?

Author Message
ryh



Joined: 30 Mar 2006
Posts: 9

PostPosted: Wed Aug 16, 2006 12:26 pm    Post subject: Config file change?? Is it possible? Reply with quote

Hello

Could anybody tell me if IPF can do something like this:

1. Prompt for MySQL host,user,password during installation.
2. Paste it to config file (for example, replacing custom tags like ###HOST###, ###USER###, ###PASSWORD###).
3. Send config file to server along with other files.

Now I have to send config file to server and chmod it to 777 in order to change it via post install script (post install script runs as apache, but files send via FTP as account user). When post install script ends I give an alert to change permissions to 755 for safety reasons.

The best solution would be to do it on the local machine during instalation and send ready-to-use config file.

Thank in advance for your reply J
Back to top
View user's profile Send private message
liaison
ionCube Support


Joined: 16 Dec 2004
Posts: 2757

PostPosted: Wed Aug 16, 2006 12:46 pm    Post subject: Reply with quote

You can specify configuration files that are to be edited by the end user, and during installation the installer lets the user edit the configuration files, make their changes, and then the installer automatically uploads the file. Also, if the end user reruns the installer, the installer will take the user directly to the configuration section again, skipping over the installation step as that had already completed, and allowing them to edit the configuration file just as if it were local and then automatically reupload it.

There isn't a feature yet for prompting for custom fields but this is on the list of possible future features.

For the best user experience you might consider not handling database setup this way at all, and to provide the end user with a web based configurator. The installer can change the permissions to make a directory writable by the web server, and a web configurator can the create files either directly in the 777 folder or in a subfolder of the 777 directory so that the parent folder of the configuration files will also be owned by the web server. Web based configuration and initial database setup can be very slick, works for users that have not used the installer as well as those who have, and gives the user an effective way to change details in the future, recreate the database if they need to etc.
_________________
Community Admin
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    ionCube Forum Index -> ionCube Package Foundry All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum