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