XAMPP: Another web server is already running

今天在一台VPS上面安装XAMPP v5.6.8 (PHP 5.6.8)
此前VPS启用了NGINX占用了80端口 于是

vim /opt/lampp/etc/httpd.conf

修改了80 --> 1234
但是

/opt/lampp/lampp startapache  

时仍然提示XAMPP: Another web server is already running

解决

vim /opt/lampp/lampp

if testport 80
then
$GETTEXT -s "fail."
echo "XAMPP: " $($GETTEXT 'Another web server is already running.')

把80 --> 1234

原来这个是写Hard Code进去的....改了80成自定义端口后 这样启动就不会fail