Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove ntp, ufw from package list; clean up sudo-code #807

Merged
merged 4 commits into from Feb 20, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
29 changes: 15 additions & 14 deletions docs/LinuxInstall.md
Expand Up @@ -10,11 +10,11 @@ You may need to start by updating the system repositories

**For Ubuntu 14.04:**

sudo apt-get install apache2 mysql-server mysql-client php5 libapache2-mod-php5 php5-mysql php5-curl php-pear php5-dev php5-mcrypt php5-json git-core redis-server build-essential ufw ntp -y
sudo apt-get install apache2 mysql-server mysql-client php5 libapache2-mod-php5 php5-mysql php5-curl php-pear php5-dev php5-mcrypt php5-json git-core redis-server build-essential -y

**For Ubuntu 16.04:**

sudo apt-get install apache2 mysql-server mysql-client php libapache2-mod-php php-mysql php-curl php-pear php-dev php-mcrypt php-json git-core redis-server build-essential ufw ntp -y
sudo apt-get install apache2 mysql-server mysql-client php libapache2-mod-php php-mysql php-curl php-pear php-dev php-mcrypt php-json git-core redis-server build-essential -y

### Install PHP pecl dependencies

Expand All @@ -38,18 +38,19 @@ You may need to start by updating the system repositories
Emoncms uses a front controller to route requests, modrewrite needs to be configured:

```
sudo a2enmod rewrite
sudo sh -c "echo '<Directory /var/www/html/emoncms>' >> /etc/apache2/sites-available/emoncms.conf"
sudo sh -c "echo ' Options FollowSymLinks' >> /etc/apache2/sites-available/emoncms.conf"
sudo sh -c "echo ' AllowOverride All' >> /etc/apache2/sites-available/emoncms.conf"
sudo sh -c "echo ' DirectoryIndex index.php' >> /etc/apache2/sites-available/emoncms.conf"
sudo sh -c "echo ' Order allow,deny' >> /etc/apache2/sites-available/emoncms.conf"
sudo sh -c "echo ' Allow from all' >> /etc/apache2/sites-available/emoncms.conf"
sudo sh -c "echo '</Directory>' >> /etc/apache2/sites-available/emoncms.conf"
sudo sh -c "echo 'ServerName localhost' >> /etc/apache2/apache2.conf"
sudo ln -s /etc/apache2/sites-available/emoncms.conf /etc/apache2/sites-enabled/
sudo a2ensite emoncms
sudo service apache2 reload
sudo a2enmod rewrite
sudo cat <<EOF >> /etc/apache2/sites-available/emoncms.conf
<Directory /var/www/html/emoncms>
Options FollowSymLinks
AllowOverride All
DirectoryIndex index.php
Order allow,deny
Allow from all
</Directory>
EOF
sudo echo 'ServerName localhost' >> /etc/apache2/apache2.conf
sudo a2ensite emoncms
sudo service apache2 reload
```

## Install Emoncms
Expand Down