|
|
FatcatFrom ThisBlueWikiCentOS 4.5 is a giant pile of steaming crap. Let it be said. 4643
Apache
Pure-FTPD
MySQLCreate and grant
Import
BBSbbs 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 etcI 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.
Misc |