Files
EasySoft-ZenTaoPMS/build/linux/start
wangchunsheng dd66e05ea2 * adjust the linux xampp package.
* task#676.
2012-02-08 14:45:18 +00:00

23 lines
588 B
Bash

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