I encountered same problem on the environment.
- MaxOS X 10.10.5
- Xampp 7.0.6-0
As the result of having a look at the script file "/Applications/XAMPP/xamppfiles/apache2/scripts/ctl.sh", I guess the line 69 is a bug about dealing with a return code.. I think $RESULT is correct.
- Code: Select all
61 is_apache_running
62 RUNNING=$?
63
64 if [ $RUNNING -eq 1 ]; then
65 echo "$0 $ARG: httpd (pid $HTTPD_PID) already running"
66 else
67 /Applications/XAMPP/xamppfiles/xampp startapache > /dev/null
68 RESULT=$?
69 if [ $RUNNING -eq 0 ]; then
70 echo "$0 $ARG: httpd started"
71 else
72 echo "$0 $ARG: httpd could not be started"
73 ERROR=3
74 fi
And then when I tried to run the command "/Applications/XAMPP/xamppfiles/xampp startapache" directly, the result was following.
- Code: Select all
% /Applications/XAMPP/xamppfiles/xampp stopapache
XAMPP is currently only availably as 32 bit application. Please use a 32 bit compatibility library for your system.
% echo $?
1
And then when I tried by v7.0.5-0, apache started properly..!