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.
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:144I 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.logCustomLog /home/drupalpro/websites/logs/#DOMAIN#.access.log combinedReplacing 'drupalpro' with my username resolves the problem.
P.S. Thanks JC for contributing this project.