#!/sbin/sh mysqlpw='pw' htdocs="/opt/csw/apache/htdocs" apconf="/opt/csw/apache/conf/httpd.conf" # Set the path PATH=/opt/csw/bin:/opt/csw/apache/bin:/opt/csw/mysql4/bin:/usr/sfw/bin:$PATH export PATH # Configure MySQL /opt/csw/mysql4/share/mysql/quick_start-csw <Click here to enter" > index.html chown -R nobody:nobody * # Add php support to the indexing cp "${apconf}" "${apconf}.PreWP" sed -e "s/index.html/index.html index.php/g" "${apconf}.PreWP" > "${apconf}" /etc/init.d/cswapache restart