Install WordPress using PHP

Please check if PHP is running in safe mode.
excel_shell is disabled when PHP is running in safe mode.

You can check this running the phpinfo() function.

Tip: You could make a install script in bash and execute that from PHP.
This way it’s easier to test on the command line first, and then wrap it in PHP.