JC Martinez has very kindly ported the Drupalpro purge/install scripts to Ubuntu 14.04! I was initially unaware of this as I just checked the issue queue here. But I think others will benefit from this - Thanks jcmartinez! https://groups.drupal.org/node/471023

Some quick notes:
- You'll eventually be asked if you want to use a password for MySQL, if you do enter something, you'll need to edit the quickstart.drush.inc file in /usr/share/drush/commands/quickstart (default password combo there seems to be root/drupalpro)
I have tested it on a clean install of Ubuntu and all seems so good so far. D7 works fine. D8 doesn't seem to install properly, though it does download the latest D8 and create the database/host settings.

CommentFileSizeAuthor
#4 drupalpro-ubuntu14-2559371-4.patch34.12 KBthe_g_bomb
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Roden created an issue. See original summary.

Roden’s picture

Update: To fix the D8 install issue, you'll first need to disable xdebug by commenting it out in: /etc/php5/apache2/conf.d/20-xdebug.ini (you should be able to re-enable it after the install without problem)

After restarting apache2, run the following command (the strict stops it halting on a clean URLs issue):
drush qc all --domain=d8.dev --codepath=/home/drupalpro/websites/d8.dev --makefile=/home/drupalpro/make_templates/d8.make --profile=standard --strict=0

D8 should install fine after that, but it'll give an error whenever you click on an admin page. Using the drush wd-show --tail command in the site directory I could see what was happening: "RuntimeException: GuzzleHttp requires cURL, the allow…" This can be fixed by using the following command:

sudo apt-get install php-guzzle

It should work fine after that.

patoshi’s picture

anyone have a vbox image to start from without having to deal with the scripts? thanks!

the_g_bomb’s picture

Status: Active » Needs review
FileSize
34.12 KB

I have had a go at updating the script files to port this to Ubuntu 14.04. I had a look at JC Martinez' work and incorporated some of that where I could, there were still some ommissions.

Also I am looking into an issue I am having with file permissions, I think the website directory being in a home folder is causing some issues, changing the config.ini to install stuff to /var/www/vhosts instead of ~/websites had some success, but more work will be needed to the quickstart drush scripts before that is 100%.

Also I haven't tested out drupal 8 as yet, but I think some more work will be required in the quickstart scripts, to make sure that is as it should be.

Anyway, I wanted to flatten my VM and have another couple of passes of using the installer and didn't want to have to copy and paste the changes anymore, so I am uploading a patch to make that process easier.

Please feel free to test it and let me know of anything else that needs tweaking.

Roden’s picture

Thanks g_bomb, this is handy. But to what files do these patch exactly? I think it would just be better to post a new archive with the scripts so everyone can use it. It would be good if we can keep it updated every so often too :)

the_g_bomb’s picture

These are the changes:
contrib/install-memcached.sh | 17 +++++-
drush_addons/quickstart/quickstart.inc | 6 +-
setup_scripts/0-slim.sh | 47 +++++++++++++++--
setup_scripts/1-update.sh | 3 +
setup_scripts/2-vbox-guest-additions.sh | 3 +-
setup_scripts/3-lamp.sh | 86 +++++++++++++++----------------
setup_scripts/4-ides.sh | 50 ++++++++++++++++--
setup_scripts/5-extras_misc.sh | 12 ++--
setup_scripts/6-extras_development.sh | 59 ++++++++++++++-------
setup_scripts/config.ini | 25 ++++++---

I did wonder if I should be supplying individual patches, as there are a few fixes in there too.
e.g.
contrib/install-memcached.sh
that isn't really a 14.04 fix, but it adds the installation of the pecl memcache library and actually gets memcache to a useable state.
In the 3-lamp.sh there are some fixes for the percona and mariadb installation scripts as well.
So I could probably split this up.
I also added support for PHPStorm in a similar manner to the way that Sublime is installed for testing purposes.

patoshi’s picture

anyone tried getting d8 to run successfully on this yet?

patoshi’s picture

made some time and got it working on 14.04. For those that want to just skip the setup,

here's my virtualbox ova file: https://www.dropbox.com/s/jxfkwgfhpxapl7s/drupalprox-1404.ova?dl=0

i got d7 and d8 working on the box. F12 for guake terminal. i mainly use vim for development, but i also installed sublime text if needed.

overall if u want to build your own 14.04 you can just following this github repo: https://github.com/jcmartinez/drupalpro14 -- alli did was just run each script he made and it worked. no major tweaking needed.

grguth’s picture

I downloaded and installed the .ova file, and imported into Virtual Box 5.0.12. Before executing the 14.04 machine, I changed the shared folder to a new one on my system since the .ova spec is unavailable. Executing the 14.04 vm showed no shared folder, and installing the guest additions CD showed it was deleting the 5.16 guest additions and installing the 5.12 additions. The shared folder was still unavailable. The d7test.dev and d8test.dev sites were available and working. Current vbox is 5.0.20. Any thoughts?