PostNuke

Flexible Content Management System

News



Recover lost MySQL root password mini-HowTo

1. Kill the mysqld that may be running (not with -9):

kill `cat /var/lib/mysql/hostname.pid`

2. Restart MySQL in safe mode:

/usr/bin/safe_mysqld --skip-grant-tables&

3. Connect to MySQL:

/usr/bin/mysql

4. Use the mysql database:

use mysql;

5. Run the update command putting your new password where the ....'s are. Yes this is all one command:

update user set password = password('.......') where user = 'root' and host='localhost';

6. Flush the privileges so everything will take:

flush privileges;

7. Then quit mysql:

quit

8. Stop mysql from command line with:

/etc/init.d/mysql stop

9. Restart mysql from command line with:

/etc/init.d/mysql start

how to sell the corp intranet solution

2) Don't tell anybody yet that this is going to be open source (yet)

3) Tell management that the days of paying up-front for software are gone. Vendors are now prepared to give you the software and the once you start getting "value" from it they will then kick in with appropriate user pays charges

4) Find a departmental or business unit sponsor who will give you someone to manage content. Someone who has their finger on the pulse in the business. ie the best office gossip!

5) Set up a post-nuke demo with all the modules you can find. ie weather, gallery, quizz, etc. Make sure you have some good themes to choose from and some ready made topics

6) Show the "gossip". They will love it, let them pick the sections, topics, themes and tune down the modules.

7) Gossip and sponsor agree to a prototype ( as there is no cost )

8) The support arrangements for the prototype are 4 months "best effort", at the end of that time the sponsor must go ahead with cost of full project. Make up a $ number here ( it doesn't matter ) but don't say "no cost".

9) After fabulous pilot of 4 months with no crashes and everybody loving the content you tell the sponsor that after all was considered an open source product did the best job

10) Put in place new an cheap maintenance agreement. Maybee even share the new user intranet $ charges with the sponser

11) Now you have a friend in high places - Go for the whole corp intranet....

Moral - Always remember how to eat an elephant - bit by bit...

Multilingual content

I'm looking for a tool where I can
- add content to a website in different languages
- translation by a translation server

E.g. I would like to have in area:Newsgroups a content:Netiquette in different languages. The script takes the content from the language which the visitor uses and displays it. If the content in this languages doesn't exist, it should take the content from the main language (eng).

Maybe there is a way to add a button to let a content automatically be translated by a translation server.

This would be in my opinion a real content driven website. Is there somebody who can show me this module somewhere? Maybe a developer is interested in this module.


Script to set permission

The original Idea was to set files R/W to websevrer and the FTP user, so the files will have the FTP Users username (from FTP aupload) and we set all files to the Webservers group and the chmod to 664, so the may be readable and writeable for both, webserver and user.


I am not sure if my permissions are chosen wise. A paranoid sysadmin would rather set files to 660 .

Here goes setpermission.sh

#!/bin/sh

# ------------------------------------------------------------------------------
# File: $Id$
# ------------------------------------------------------------------------------
# POST-NUKE Content Management System
# Copyright (C) 2001 by the Post-Nuke Development Team.
# http://www.postnuke.com/
# ------------------------------------------------------------------------------
# Based on:
# PHP-NUKE Web Portal System - http://phpnuke.org/
# Thatware - http://thatware.org/
# ------------------------------------------------------------------------------
# LICENSE
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License (GPL)
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# To read the license please visit http:#www.gnu.org/copyleft/gpl.html
# ------------------------------------------------------------------------------
# Original Author of file: Simon Wunderlin
# Purpose of file:
# setting up propper file permissions
# ------------------------------------------------------------------------------

#if [[ $UID != 0 ]]; then
# echo "This script must be run as root!";
# exit 1;
#fi

## configuration
DIRMASK="775" # premissions to set on directories
FILEMASK="664" # premissions to set on files
GROUP="httpd"; # default group of httpd, we try to detect it later
CONFILE='' # httpd's config file, we try to get the group from there
HTMLDIR='./html' # the directory containing all the html files
CMD_HTTPD=`which httpd`

## check if we have permission to run httpd, if not, we cant deect the group
if [[ -x $CMD_HTTPD ]]; then
## lets try to get the configuration file's path
BASEDIR=`httpd -V | grep "HTTPD_ROOT"`
BASEDIR="${BASEDIR#*/}"; BASEDIR="/${BASEDIR%"*}"
CONFILE=`httpd -V | grep "SERVER_CONFIG_FILE"`
CONFILE="${CONFILE#*"}"; CONFILE="${BASEDIR}/${CONFILE%"*}"

## get the group apache is running as
if [[ -r $CONFILE ]]; then
GROUP=`cat $CONFILE | grep "^Group[[:space:]]" | awk '{print $2}'`
fi
fi

## explain dude what we are going to do
echo "`cat /install.php |
| |
+------------------------------------------------------------+
nn

EOF`"





Hacking more bells and whistles outta 0.64

The number of reads is in the individual themes, so I didn't post that. You can find it easily in your own theme (if your theme has it)--search for $morelink, it's close to that, you'll see it and hack it out easily. The number of bytes is in the module News, so that's posted. I also use NPNews (the older one with the buggy categories--a newer one with categories cleaned up has been posted at http://mods.postnuke.com), so the buggy NPNews w/o the number of bytes is also there. The hack of Sections was done by our team member Steven Beitz--this is really a very nice, very much needed hack imho.

Yes, it's a bit late to be jumping for hacks of 0.64. But some of you might be waiting around a while before you upgrade, so these are here for you. I'll probably post the 0.7 hacks of these, and the other things we've hacked, when we get around to it.

Hacks like this are nice for non-techie users who can get a little intimidated by all the different things that are going on on a page. This shouldn't be underestimated, even though it may seem silly; needless complexity really scares some people off (as I've been told by users).
First Page Previous Page Page 154 / 277 (1531 - 1540 of 2763 Total) Next Page Last Page