Hi all I am trying to install word press from a php script on my hosting server ?is this correct way to execute the command exec ("wget -q http://www.mdomain.com/wp-admin/install.php?step=1",$output); as i cannot get it to work? i do have wget enabled on the hosting account
Do you have ssh access. Try this: exec ("/usr/local/bin/php -f /path/to/my/domain/wp-admin/install.php?step=1",$output); You may need to change the php path depending on your server. Your host may have exec disabled. Is this a shared or semi/dedicated server?
Most likely you wont be able to install like this. You could possibly try using file_get_contents instead of exec. Not sure if that would work for your requirements, but would have the exact same affect as exec(wget