diff --git a/server/server.sh b/server/server.sh
index 9c92a868b0532d07eb224e50da7cc07fc538b620..3956d05b8b45ee5d287b78a4a7c02771aa278223 100755
--- a/server/server.sh
+++ b/server/server.sh
@@ -15,14 +15,14 @@ if [ -f /usr/local/ispconfig/server/lib/php.ini ]; then
 fi
 
 cd /usr/local/ispconfig/server
-/usr/bin/php -q \
+$(which php) -q \
     -d disable_classes= \
     -d disable_functions= \
     -d open_basedir= \
     /usr/local/ispconfig/server/server.php
 
 cd /usr/local/ispconfig/security
-/usr/bin/php -q \
+$(which php) -q \
     -d disable_classes= \
     -d disable_functions= \
     -d open_basedir= \