How to make a custom install package?

Feed 5 posts, 4 voices

Avatar
3 posts

I have made some changes to the backend and how it displays certain things (like page titles, etc.)
How can i make an install package, based on a current config, so that i don’t have to repeat the changes every time i install a new site?

Thanks in advance.

rubo

 
Avatar
12 posts

interesting, I also would like to know :)

 
Avatar
3 posts

BTT

anyone?

 
Avatar
257 posts

well you need to replace the files in the standard install with the ones you’ve amended. Simples?

 
Avatar
3 posts

What about the database entries?
Do i need to modify them?

 
Avatar
343 posts

You can make a update.php file, which will contain your extra DB stuff. Example:

<?php include("config.php");
$__CONN__ = new PDO(DB_DSN, DB_USER, DB_PASS);
$sql = "INSERT INTO table_name bla bla";
$stmt = $__CONN__->prepare($sql);
$stmt->execute();

But with the raw modified files, you have to copy paste them, because you will mess permissions up on a real server, and that sucks belive me.