Skip to content

qc command fails at Creating apache config #6

@snpdev

Description

@snpdev

On using the qc drush command to create a site, I received the following two errors:

fopen(/etc/apache2/sites-available/d8.dev.conf): failed to open stream: Permission denied quickstart.inc:144

I discovered the reason was the /sites-available directory was owned by the root user, but I was logged in with my username, "mike". Since I will always login as "mike" I changed the owner of the directory using:

sudo chown -R mike .

The next problem is that the APACHE_TEMPLATE in quickstart.inc assumes that my username is 'drupalpro' as the logs are hardcoded as:

ErrorLog /home/drupalpro/websites/logs/#DOMAIN#.error.log
CustomLog /home/drupalpro/websites/logs/#DOMAIN#.access.log combined

Replacing 'drupalpro' with my username resolves the problem.

P.S. Thanks JC for contributing this project.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions