...
Code Block | ||||
---|---|---|---|---|
| ||||
<?php # # This makes a POST request to the Blesta installer # $post = [ 'agree' => 'yes', 'host' => 'localhost', 'port' => '3306', 'database' => 'blesta', 'user' => 'user', 'password' => 'password', ]; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, 'myblestadomain.com/install/process'); curl_setopt($ch, CURLOPT_POST, true); curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($post)); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $response = curl_exec($ch); $errors = curl_error($ch); curl_close($ch); echo "RESPONSE: "; print_r($response); echo "ERRORS: "; var_dump($errors); |
NOTE! If the web server is not Apache, or is missing mod_rewrite, the curl URL must be pre-pended with index.php, e.g. myblestadomain.com/index.php/install/process
Command Line Installation
...