Search
 
SCRIPT & CODE EXAMPLE
 

PHP

run drush command from php

<?php
exec('/usr/bin/php /var/www/drush/drush.php site-install --yes --db-url=mysql://USER:PASSWORD@localhost:3306/DATABASE --account-name=DRUPAL_USER --account-pass=DRUPAL_PASSWORD --account-mail=contact@email.com --site-name=SiteName');
?>
  
you can also try this also.
  
<?php
  exec('drush site-install --yes --db-url=mysql://USER:PASSWORD@localhost:3306/DATABASE --account-name=DRUPAL_USER --account-pass=DRUPAL_PASSWORD --account-mail=contact@email.com --site-name=SiteName');
?>
Comment

PREVIOUS NEXT
Code Example
Php :: PHP stripslashes — Un-quotes a quoted string 
Php :: IlluminateValidationRulesRequiredIf 
Php :: 0.02 eth to php 
Php :: registration welcome email laravel 
Php :: laravel pass multipale provider 
Php :: orWhereRaw 
Php :: Target class [LoginController] does not exist. 
Php :: codeigniter 4 query builder select 
Php :: in connection.php line 664: could not find driver (sql: select * from information_schema.tables where table_schema = news and table_name = migrations) in connector.php line 67: could not find driver 
Php :: php code for fetching data from database 
Php :: modal form with php 
Php :: what does ? mean in php 
Php :: laravel query 
Php :: laravel authentication tutorial 8 
Php :: Laravael Blog Project 
Php :: laravel share 
Php :: str_word_count() 
Php :: 12 hrs for preg match with single and double digit in php 
Php :: switch php version ubuntu 
Java :: how to print hello world in java 
Java :: import javax.validation.valid error 
Java :: random item from arraylist 
Java :: spring application properties mysql jpa 
Java :: empty character in java 
Java :: com.android.builder.dexing.DexArchiveMergerException: 
Java :: how to remove all special characters from a string in java 
Java :: How can I put a parameter into a localized string in Android? 
Java :: how to force garbage collection in java 
Java :: set fontcolor of jframe 
Java :: javafx open file dialog 
ADD CONTENT
Topic
Content
Source link
Name
8+6 =