Since the documentation linked to from the project page predates the Drubuntu script, I'm doing my best to get up to speed with Drubuntu on my own. I've typically used Windows, NetBeans as my IDE, and Drush. I haven't used the Provision module before. Since there is a lot new here, I thought I'd open a ticket to get some help and document what I run into, in case it might help others.
1) I've installed Drubuntu on a couple of machines now. On one of them, I had to manually create the link to Drush, as outlined in the Drush README.txt file, in order to run Drush from outside the drush directory. On the other machine, the link was apparently created already.
2) Once Drubuntu is installed, I'm able to create new sites, by running something along the lines of the following:
drush drubuntu-site-add mysite
If I understand correctly, if I then run the following:
drush drubuntu-site-add mysite.subsite
...a new site will be created using mysite as the basis for a multi-site configuration. Am I understanding that correctly?
3) When creating sites using the command above, the site gets created but I get 4 errors along the lines of the following (citing lines 636, 637, 638, & 639 in boostap.inc respectively):
Cannot modify header information - headers already sent by (output [warning]
started at /home/mvance/workspace/drush/includes/drush.inc:660)
bootstrap.inc:636
4) What does the root mysql password get set to? Looking at the script made me think it was set to blank, but that doesn't seem to work for logging in to phpmyadmin.
Login without a password is forbidden by configuration (see AllowNoPassword)
5) It appears that the Eclipse project folders don't get created, if Eclipse is open when I run the drubuntu-site-add command.
6) The drubuntu-site-remove command doesn't appear to remove the equivalent Eclipse folders.
Thanks a lot for the script! It does handle a lot.
Comments
Comment #1
iNade commentedThe same exact problem here, moreover I have this error :
Sounds like it's not THAT plug-and-play unfortunately. A documentation would be great, 'cause I'm obviously missing something.
Comment #2
Grayside commentedThat error is a separate issue. I have it myself in Kubuntu/VM Ware. It relates to Drush not being able to detect the current site directory.
Comment #3
owen barton commented1) The alias should be created when you run drubuntu-bootstrap.sh - you might want to check the logic there and figure out what happened.
2) "drush drubuntu-site-add mysite.subsite
...a new site will be created using mysite as the basis for a multi-site configuration. Am I understanding that correctly?"
You need it the other way around - i.e. "drush drubuntu-site-add subsite.mysite
3) "When creating sites using the command above, the site gets created but I get 4 errors along the lines of the following (citing lines 636, 637, 638, & 639 in boostap.inc respectively):"
Yeah - these can be safely ignored...haven't tracked these down yet.
4) "What does the root mysql password get set to? Looking at the script made me think it was set to blank, but that doesn't seem to work for logging in to phpmyadmin."
It is indeed set to blank, if you didn't have an existing password or set the "db_password" option. You will need to set a password, or change the phpmyadmin config if you want to use phpmyadmin. Alternatively you could submit a patch (as a different issue) to change the phpmyadmin config on install :)
5) "It appears that the Eclipse project folders don't get created, if Eclipse is open when I run the drubuntu-site-add command."
Yes - however, I don't think there is much we can do about that. A patch to check ps and warn if Eclipse is running would be welcome.
6) "The drubuntu-site-remove command doesn't appear to remove the equivalent Eclipse folders."
Do you mean the project folder? It does for me - it should also remove a platform if all it's sites have been removed.
Comment #4
drurian commentedIt would be helpful if there was some explanation on how to build sites with different versions (i.e. Drupal 7)
Comment #5
Grayside commentedSeconded. And installation profiles.
After an hour of banging my head...
Comment #6
nco71 commentedThanks for the documentation.
I did install drubuntu. Although I m not aware of all the possibilities , I ll be happy to see a documentation about this fantastic script ( particularly the functions it adds to drush )
I did install Drubuntu and even I had previous apache2 configuration and already installed , it run perfectly.
I find the structure of the folders a bit complex and unecessary ( why website in multiple virtual host has symlink in their /sites directory ? like .default.mysite.localhost
I wanted to share also some experience using it. I did create new website using the drush drubuntu-site-add mysite command and then copy my old website here and then did set up settings.php in /sites/default
However the website took ages to load ( the virgin installation worked perfectly ). I look at the log error.log and found out that The following error (multiple lines though) is reported in File does not exist: /usr/share/phpmyadmin/js/mootools.js, referer: http://localhost/phpmyadmin/main.php?token=e6c0a1559c61090b67ac29fd9590d9f0
I m using ubuntu 9.10
This is not a Drubuuntu bug , but a problem of package for phpmyadmin.
To solve that just do sudo ln -s /usr/share/javascript/mootools/mootools.js /usr/share/phpmyadmin/js/mootools.js and the problem will be gone.
I found the solution on https://bugs.launchpad.net/ubuntu/+source/phpmyadmin/+bug/487241 as it was filled as a but. I don t know if I should add this problem in Drubuntu bug list.
Regards
Comment #7
owen barton commentedThe 6.x.9.x-dev branch now adds a warning if Eclipse is running. There are still some issues with adding projects though (they don't realize their PHP nature until Eclipse has been started, the project opened, and Eclipse restarted).
Comment #8
avpadernoI am closing this issue, as Drupal 6 is no longer supported.