-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbitnami- setting-up-a-lamp-stack.html
37 lines (32 loc) · 2.07 KB
/
bitnami- setting-up-a-lamp-stack.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<!DOCTYPE html>
<html>
<head>
<title>Bitnami: Setting up a LAMP Stack</title>
</head>
<body>
<h1>Bitnami: Setting up a LAMP Stack</h1>
<h2>INSTALLING DRUSH</h2>
<p><strong>Install Composer (Globally) first:</strong></p>
<p>Best to install from the home directory<br/>
$ cd /home/bitnami<br/>
$ sudo curl -sS https://getcomposer.org/installer | php<br/>
$ sudo mv composer.phar /usr/local/bin/composer
</p>
<p>Make sure Composer's global bin directory is on the system PATH (recommended):<br/>
$ sed -i '1i export PATH="$HOME/.composer/vendor/bin:$PATH"' $HOME/.bashrc<br/>
$ source $HOME/.bashrc
</p>
<p>* Info here: https://getcomposer.org/doc/00-intro.md#system-requirements</p>
<p><strong>Install Drush</strong></p>
<p>Best to install from the home directory:<br/>
$ composer global require drush/drush:dev-master</p>
<h2>INSTALLING DRUPAL</h2>
<p>After following the instruction on setting up VirtualBox and the Bitnami LAMP stack and then installing the Guest Additions and getting SSH hooked up, you’ll use SFTP to connect to the bitnami VM and copy over the Drupal files. You’ll need to chmod some directory within your home directory within your bitnami VM to alloy the SFTP client to transfer files. </p>
<p><strong>Tip:</strong> The best method for moving your files from Drupal to your test site is by using Git to download the files right into your Bitnami home folder and then moving the whole directory and files into the root directory fo your server. If you must FTP from the host machine into your Bitnami VM, tt is immensely faster to copy the compressed file over to the Bitnami VM and then uncompress once it has arrived rathe than decompressing and FTPing the files. </p>
<p>Once you have copied the files over, uncompress them and move them to /opt/bitnami/apache2/htdocs/drupal</p>
<p>Next you need to do some permissions things to allow apache to install the Drupal site.</p>
<p>$ sudo chown bitnami:daemon -R /opt/bitnami/apache2/htdocs/drupal</p>
<p>Then you need to use MySQL to create the database</p>
<p>Then you can install Drupal and start working with it.</p>
</body>
</html>