diff --git a/compile_php.sh b/compile_php.sh index d08fb34b5..a118a4752 100644 --- a/compile_php.sh +++ b/compile_php.sh @@ -62,6 +62,7 @@ cd ../ --with-mysql \ --with-mcrypt \ --with-zlib \ +--enable-sockets \ --enable-pthreads \ --enable-maintainer-zts make @@ -70,4 +71,4 @@ make install cd $DIR rm -r -f install_data/ rmdir install_data/ -cd php5 \ No newline at end of file +echo "[INFO] Compilation Completed!" \ No newline at end of file diff --git a/start.sh b/start.sh index 1e918a675..70de19e89 100644 --- a/start.sh +++ b/start.sh @@ -1,8 +1,8 @@ #!/bin/bash DIR="$( cd -P "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" cd $DIR -if [ -f php5/bin/php ] then -php5/bin/php -d enable_dl=On PocketMine-MP.php +if [ -f php5/bin/php ]; then +./php5/bin/php -d enable_dl=On PocketMine-MP.php exit 0 fi php -d enable_dl=On PocketMine-MP.php \ No newline at end of file