Files
EasySoft-ZenTaoPMS/build/linux/start88
2012-11-29 03:34:57 +00:00

29 lines
745 B
Bash
Executable File

#!/bin/bash
if test "`id -u`" -ne 0
then
echo "You need to start XAMPP as root!"
exit
fi
sed -e 's/80/88/g' lampp | sed -e 's/3306/3308/g' > lampp.88
mv lampp.88 lampp
chmod a+rx lampp
sed -e 's/80/88/g' etc/httpd.conf > etc/httpd.conf.88
mv etc/httpd.conf.88 etc/httpd.conf
sed -e 's/80/88/g' etc/extra/httpd-vhosts.conf > etc/extra/httpd-vhosts.conf.88
mv etc/extra/httpd-vhosts.conf.88 etc/extra/httpd-vhosts.conf
sed -e 's/3306/3308/g' etc/my.cnf > etc/my.cnf.3308
mv etc/my.cnf.3308 etc/my.cnf
sed -e 's/3306/3308/g' zentao/config/my.php > zentao/config/my.php.3308
mv zentao/config/my.php.3308 zentao/config/my.php
chown nobody -R var/mysql
chmod 777 tmp
chmod 777 -R zentao/tmp
chmod 777 -R zentao/www/data/upload
./lampp start