Grande aplicação!
Após algumas configurações do apache2.conf e do ensite.conf consegui avançar bastante na criação de um site. Agora está ocorrendo um erro que não consegui resolver: "Error: Executing: sudo a2ensite subdomain.mysite.com".
Alguém sabe me dizer como resolver esse problema?
Obrigado.
Below the shell prompt.
[root@host.mysite.com] www >> drush densite subdomain.mysite.com Ok: Executing: sudo echo -e Started enabling a sub-site
Started enabling a sub-site
Found a default connection with:
Driver: mysqli
Host: localhost
User: mysite_mysite
Password: password
Automatic generated name for database will be:
database subdomainmysitecom
Press 'Y' to use these settings. Press 'n' to proceed with manual install of database [Y/n]? y
Proceeding and trying to create database.
You may be prompted for password:
Database subdomainmysitecom already exists and user can connect to it.
Do you want to drop the given database and create it again [Y/n]? y
Ok: Executing: mysqladmin --force -hlocalhost -ppassword -umysite_mysite drop subdomainmysitecom
Database "subdomainmysitecom" dropped
Ok: Executing: mysqladmin -hlocalhost -ppassword -umysite_mysite create subdomainmysitecom
Ok: Executing: mkdir /home/mysite/public_html/sites/subdomain.mysite.com
Ok: Executing: cp /usr/local/lib/drush/commands/densite/settings/default.settings.php-6.x /home/mysite/public_html/sites/subdomain.mysite.com/settings.php
Ok: Executing: Writing new settings.php file: /home/mysite/public_html/sites/subdomain.mysite.com/settings.php
Ok: Executing: sudo mkdir /home/mysite/public_html/sites/subdomain.mysite.com/files
Ok: Executing: sudo chmod 770 /home/mysite/public_html/sites/subdomain.mysite.com/files
Ok: Executing: sudo chown root:500 /home/mysite/public_html/sites/subdomain.mysite.com/files
Ok: Executing: sudo chmod 740 /home/mysite/public_html/sites/subdomain.mysite.com/settings.php
Ok: Executing: sudo chown root:500 /home/mysite/public_html/sites/subdomain.mysite.com/settings.php
Ok: Executing: mkdir /home/subdomain.mysite.com
Ok: Executing: mkdir /home/subdomain.mysite.com/logs
Ok: Executing: touch /home/subdomain.mysite.com/logs/access.log
Ok: Executing: touch /home/subdomain.mysite.com/logs/error.log
Ok: Executing: cp /usr/local/lib/drush/commands/densite/apache2/apache2.conf /tmp/apache2.conf
Ok: Executing: Writing new settings.php file: /tmp/apache2.conf
Ok: Executing: sudo cp /tmp/apache2.conf /usr/local/apache/domlogs/subdomain.mysite.com
Error: Executing: sudo a2ensite subdomain.mysite.com
sudo: a2ensite: command not found
Drush command could not be completed. [error]
Comments
Comment #1
den.iver commentedsudo: a2ensite: command not found
as stated in the documentation. This is mainly made for debian systems (e.g. ubuntu) where the command a2ensite is used for enabling a apache2 site. If you don't have the a2ensite command, you need to manual enable the apache2 site on your system, and proceed with web install of drupal (e.g http://subdomain.yourhost.com/install.php). You will also need to enable cron by hand, but otherwise everything else should have been installed correct, log files, drupal files, settings in settings files etc.
You could also write something in php which will do the same as a2ensite (the a2ensite command is making different symlinks in configuration of apache2 files to tell apache2 which sites are enabled).
Cheers.