Go Back   Pligg Forum > Pligg Help > Wiki Articles
 
 
LinkBack Article Tools Display Modes
  #1 (permalink)  
Old 11-28-2007, 07:49 PM
AshDigg's Avatar
AshDigg AshDigg is offline
Mayor of PliggVille
 
Join Date: Dec 2005
Location: Pliggville
Posts: 1,646
Downloads: 34
Uploads: 10
Thanks: 237
Thanked 346 Times in 207 Posts
Setting up a 1-click install for Pligg

-- Reserved --
__________________
- Ash
Reply With Quote
Sponsored Links
Check out the New Templates at the Pligg Pro Shop.
  #2  

Setting up a 1-click install for Pligg

HowTo for Pligg 1-Click installs.

Setup a script to do the following...
1) Rename settings.php.default to settings.php.
2) Rename /libs/dbconnect.php.default to /libs/dbconnect.php
3) chmod 777 (or 755)
/avatars/user_uploaded
/backup
/cache
/templates
/templates_c
4) chmod 666
/libs/dbconnect.php
/libs/lang.conf
settings.php
5) chmod 655
config.php
6) Update /libs/dbconnect.php with the MySQL information
7) Direct the user to http://www.domain.com/pliggfolder/in...all.php?step=3



We also have a bash script that does the above. This should be run from the folder the pligg files are in. You may want to add a "tar zxvf" in the beginning to untar the pligg files into a folder and a "chown -R" at the end to change ownership.

Usage:
sh PliggInstall.sh database_host database_name database_user database_pass

Example
sh PliggInstall.sh localhost pligg ashdigg password

PHP Code:
#!/bin/bash

cp settings.php.default settings.php

chmod 766 avatars/user_uploaded
chmod 766 backup
chmod 777 cache
chmod 755 templates
chmod 777 templates_c

chmod 766 libs/lang.conf
chmod 766 settings.php

touch libs/dbconnect.php

echo "<?php" >> libs/dbconnect.php
echo "
define("EZSQL_DB_USER\", '$3');" >> libs/dbconnect.php
echo "define(\"EZSQL_DB_PASSWORD\", '$4');" >> libs/dbconnect.php
echo "define(\"EZSQL_DB_NAME\", '$2');" >> libs/dbconnect.php
echo "define(\"EZSQL_DB_HOST\", '$1');" >> libs/dbconnect.php
echo "if (!function_exists('gettext')) {" >> libs/dbconnect.php
echo "    function _($s) {return $s;}" >> libs/dbconnect.php
echo "}" >> libs/dbconnect.php
echo "?>" >> libs/dbconnect.php

chmod 766 libs
/dbconnect.php


Contributors:
Created by AshDigg, 11-28-2007 at 07:49 PM
Last edited by AshDigg, 11-28-2007 at 07:55 PM
1 Comments , 1220 Views
 



Article Tools
Display Modes
Posting Rules
You may not create new articles
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On
Similar Threads
Thread Thread Starter Forum Replies Last Post
New install, error: Warning: fopen("./settings.php", "w") Mikeee Installation and Upgrade Help 11 04-01-2007 01:21 PM
I'd like to hire someone to help install vendude Installation and Upgrade Help 3 03-10-2007 09:52 PM
Old database on fresh install noyp General Help 4 03-05-2007 01:21 PM
Pligg IIS install (basics) ButtNutt Installation and Upgrade Help 0 07-15-2006 04:23 PM
Install Error / install 7 GreenMonkey Bug Report 1 06-28-2006 02:09 AM


LinkBacks Enabled by vBSEO 3.0.0