---
title: "Unable to run drush php command on Drupal 7 site"
date: "2022-03-15T20:07:16+00:00"
summary:
image:
type: "article"
url: "/acquia-cloud-platform/help/93056-unable-run-drush-php-command-drupal-7-site"
id: "a8905093-bc60-4a09-9639-ff55d8990a08"
---

Issue
-----

When attempting to run selected `drush php` commands on Drupal 7 site the command errors. 

**Example**

    /var/www/html/[sitename.env]/docroot$ drush php
    Symfony\Component\Console\Exception\InvalidArgumentException: Command name "" is invalid. in [error]
    ...

Resolution
----------

Use the **drush7** executable to run the commands successfully against your Drupal 7 site, this is because `drush8` is the default `drush` used.

**Example**

    /var/www/html/[sitename.env]/docroot$ drush7 php
    [1] [sitename.env]> exit;