Fatcat

From ThisBlueWiki

Jump to: navigation, search

CentOS 4.5 is a giant pile of steaming crap. Let it be said.

4643

Contents

Apache

Pure-FTPD

  • http://www.pureftpd.org/ml/
  • Turn OFF all auth methods by MySQL (for ccast) -- PAM auth will allow users into the bbs home if the password is blank (or if they know it)! Unix auth appears to refuse blank passwords, but not really tested.

MySQL

Create and grant

  • mysqladmin --password=[password] create [dbname]
  • mysql --password=[password]
    • GRANT ALL ON [dbname].* TO '[user]'@'localhost' IDENTIFIED BY '[password]';

Import

  • mysql --password=[password] [dbname]
    • \. [filename]

BBS

bbs startup script:

#!/bin/sh
#
# chkconfig: 2345 85 30
# description: starts and stops the bbs -q process
#



PATH=/sbin:/bin
OPTIONS="-q"
PIDFILE=/var/run/bbs.pid

test -f /home/bbs/bbs/bin/bbs || exit 0

# Source function library.
if [ -f /etc/init.d/functions ] ; then
  . /etc/init.d/functions
elif [ -f /etc/rc.d/init.d/functions ] ; then
  . /etc/rc.d/init.d/functions
else
  exit 0
fi


start() {
        KIND="bbs"
        echo -n $"Starting $KIND services: "
        daemon /home/bbs/bbs/bin/bbs $OPTIONS
        RETVAL=$?
        echo
        return $RETVAL
}

stop() {
        KIND="bbs"
        echo -n $"Shutting down $KIND services: "
        killproc bbs
        RETVAL=$?
        echo
        return $RETVAL
}

restart() {
        stop
        start
}


case "$1" in
  start)
        start
        ;;
  stop)
        stop
        ;;
  restart)
        restart
        ;;
  *)
        echo $"Usage: $0 {start|stop|restart}"
        exit 1
esac

exit $?

PHP4 CGI

PHP DOM/XML etc

I got an error "Fatal error: Class 'DOMDocument' not found in [blah.php]" -- this is because php-xml was not installed for PHP 5.1.6 on CentOS 4. php-domxml won't cut it, it's PHP4 only. Brilliantly enough, there's no easy way to get the php-xml 5.1.6 package for CentOS 4, the file is present in centosplus but yum doesn't see it even with centosplus enabled, so you'll have to download it manually and install with rpm -i, then restart your web server. CentOS 4 is the worst linux distro I've laid hands on in over 8 years.

Mail

Misc

This page was last modified on 23 February 2008, at 23:28. This page has been accessed 1,549 times.