|
|
@@ -20,13 +20,14 @@ You need the following apt packages for ArOZ Online deployment.
|
|
|
|
|
|
You can use the following commands in terminal to install all of them.
|
|
|
|
|
|
-<code>sudo apt-get install -y apache2</code>
|
|
|
-<code>sudo apt-get install -y php libapache2-mod-php php-cli php-common php-mbstring php-gd php xml php-zip </code>
|
|
|
-<code>sudo apt-get install libapache2-mod-xsendfile</code>
|
|
|
-<code>sudo apt-get install php-mysql</code>
|
|
|
-<code>sudo apt-get install ffmpeg</code>
|
|
|
-<code>sudo apt-get install samba</code>
|
|
|
-
|
|
|
+```
|
|
|
+sudo apt-get install -y apache2
|
|
|
+sudo apt-get install -y php libapache2-mod-php php-cli php-common php-mbstring php-gd php xml php-zip
|
|
|
+sudo apt-get install libapache2-mod-xsendfile
|
|
|
+sudo apt-get install php-mysql
|
|
|
+sudo apt-get install ffmpeg
|
|
|
+sudo apt-get install samba
|
|
|
+```
|
|
|
|
|
|
If you are using Debian Buster or its forked distributions, you might want to run the following comamnds before installing all the packages listed above. You should run the following command with super user (su) permission.
|
|
|
|
|
|
@@ -37,38 +38,45 @@ apt-get install sudo unzip net-tools ntfs-3g
|
|
|
First, you need to modify the PHP upload file size limit. In most case, the config file can be found at
|
|
|
/etc/php/{php-version}/apache2/php.ini. Find and replace the following two lines.
|
|
|
|
|
|
-<code>upload_max_filesize = 2048M</code>
|
|
|
-<code>post_max_size = 2048M</code>
|
|
|
-
|
|
|
+```
|
|
|
+upload_max_filesize = 2048M
|
|
|
+post_max_size = 2048M
|
|
|
+```
|
|
|
|
|
|
Add www-data into /etc/sudoers.
|
|
|
Tips: If your cloud system is deploying for public access, due to security reasons, you should modify the permission setting according to your own needs. If you are deploying under a NAT router or private network for PERSONAL USES, you can just use the command below.
|
|
|
|
|
|
-<code>www-data ALL=(ALL:ALL) NOPASSWD:ALL
|
|
|
+```
|
|
|
+www-data ALL=(ALL:ALL) NOPASSWD:ALL
|
|
|
+```
|
|
|
|
|
|
|
|
|
Edit /etc/apache2/apache2.conf and add the following two lines at the bottom of the file.
|
|
|
|
|
|
-<code>XSendFile on</code>
|
|
|
-<code>XSendFilePath /media</code>
|
|
|
-
|
|
|
+```
|
|
|
+XSendFile on
|
|
|
+XSendFilePath /media
|
|
|
+```
|
|
|
|
|
|
Create new folder at /media/storage1 and /media/storage2 for mounting external storages.
|
|
|
|
|
|
-<code>sudo mkdir /media/storage1 /media/storage2</code>
|
|
|
+```
|
|
|
+sudo mkdir /media/storage1 /media/storage2
|
|
|
+```
|
|
|
|
|
|
|
|
|
-cd into /var/www/html/ ,use "wget" to download the ArOZ Online Distribution Pack. You can use the following commands to automate the process for you. Please remember to replace the <code>{dist-pack}</code> to the dist-pack name you are downloading.
|
|
|
-
|
|
|
-<code>cd /var/www/html/</code>
|
|
|
-<code>sudo wget {dist-pack}.zip</code>
|
|
|
-<code>sudo chmod 777 {dist-pack}.zip</code>
|
|
|
-<code>sudo unzip -o {dist-pack}.zip</code>
|
|
|
-<code>rm install.zip</code>
|
|
|
-<code>sudo mkdir -p "/etc/AOB"</code>
|
|
|
-<code>sudo chmod 777 -R "/etc/AOB"</code>
|
|
|
-<code>sudo chmod 777 -R ./AOB</code>
|
|
|
-<code>sudo chown -R www-data ./</code>
|
|
|
-
|
|
|
+cd into /var/www/html/ ,use "wget" to download the ArOZ Online Distribution Pack. You can use the following commands to automate the process for you. Please remember to replace the ```{dist-pack}``` to the dist-pack name you are downloading.
|
|
|
+
|
|
|
+```
|
|
|
+cd /var/www/html/
|
|
|
+sudo wget {dist-pack}.zip
|
|
|
+sudo chmod 777 {dist-pack}.zip
|
|
|
+sudo unzip -o {dist-pack}.zip
|
|
|
+rm install.zip
|
|
|
+sudo mkdir -p "/etc/AOB"
|
|
|
+sudo chmod 777 -R "/etc/AOB"
|
|
|
+sudo chmod 777 -R ./AOB
|
|
|
+sudo chown -R www-data ./
|
|
|
+```
|
|
|
|
|
|
Open your default browser and visit [http://{device-IP}/AOB/](http://{device-IP}/AOB/) . Follow the on-screen tutorial to create your first user account on your ArOZ Online System.
|