Selaa lähdekoodia

Juggle install sequence so that libapache2-mod-php5 gets installed first

Bob Mottram 11 vuotta sitten
vanhempi
commit
c6d7dacc83
1 muutettua tiedostoa jossa 124 lisäystä ja 123 poistoa
  1. 124
    123
      beaglebone.txt

+ 124
- 123
beaglebone.txt Näytä tiedosto

@@ -2461,6 +2461,129 @@ gopher://mydomainname.com
2461 2461
 
2462 2462
 There is a browser addon for Gopher called "overbite".  Installing that should enable you to view your site.
2463 2463
 
2464
+** Install Owncloud
2465
+
2466
+#+BEGIN_VERSE
2467
+/It's not water vapour/
2468
+
2469
+-- Larry Ellison
2470
+#+END_VERSE
2471
+
2472
+Owncloud will allow you to upload and download files, share photos, collaboratively edit documents, have a calendar and more.  You should be warned that Owncloud runs quite slowly via an ordinary web browser, but it can be a convenient way to access and share your data from any location in a reasonably secure manner.
2473
+
2474
+*** Server Installation
2475
+
2476
+Install some dependencies:
2477
+
2478
+#+BEGIN_SRC: bash
2479
+apt-get install apache2 php5 php5-gd php-xml-parser php5-intl
2480
+apt-get install php5-sqlite php5-mysql smbclient curl libcurl3 php5-curl
2481
+#+END_SRC
2482
+
2483
+It's very important that /mod_php5/ and not /mod_php5filter/ be installed.  If you have /mod_php5filter/ installed then Owncloud will always fail to install.
2484
+
2485
+#+BEGIN_SRC: bash
2486
+a2dismod php5filter
2487
+apt-get install libapache2-mod-php5
2488
+#+END_SRC
2489
+
2490
+Ensure that the size of files which may be uploaded or downloaded is large enough.
2491
+
2492
+#+BEGIN_SRC: bash
2493
+emacs /etc/php5/apache2/php.ini
2494
+#+END_SRC
2495
+
2496
+Set the following:
2497
+
2498
+#+BEGIN_SRC: bash
2499
+upload_max_filesize = 512M
2500
+post_max_size = 512M
2501
+#+END_SRC
2502
+
2503
+Save and exit, then edit your Apache configuration.
2504
+
2505
+#+BEGIN_SRC: bash
2506
+export HOSTNAME=mydomainname.com
2507
+emacs /etc/apache2/sites-available/$HOSTNAME
2508
+#+END_SRC
2509
+
2510
+And add the following, to the 443 VirtualHost section.  Really we only will want to be using Owncloud with HTTPS to ensure some level of security and avoidance of dragnet surveillance.
2511
+
2512
+#+BEGIN_SRC: bash
2513
+  <Directory /var/www/mydomainname.com/htdocs/owncloud>
2514
+    Options Indexes FollowSymLinks MultiViews
2515
+    AllowOverride All
2516
+    Order allow,deny
2517
+    allow from all
2518
+  </Directory>
2519
+#+END_SRC
2520
+
2521
+To ensure that nobody logs in insecurely add the following to the 80 VirtualHost section.
2522
+
2523
+#+BEGIN_SRC: bash
2524
+  <Directory /var/www/mydomainname.com/htdocs/owncloud>
2525
+    deny from all
2526
+  </Directory>
2527
+#+END_SRC
2528
+
2529
+Save and exit, then restart apache.
2530
+
2531
+#+BEGIN_SRC: bash
2532
+service apache2 restart
2533
+#+END_SRC
2534
+
2535
+Download owncloud.
2536
+
2537
+#+BEGIN_SRC: bash
2538
+cd /tmp
2539
+wget http://freedombone.uk.to/owncloud.tar.bz2
2540
+#+END_SRC
2541
+
2542
+Verify the download:
2543
+
2544
+#+BEGIN_SRC: bash
2545
+md5sum owncloud.tar.bz2
2546
+f43eabb746b5e339ee70d0a6aaf4a49c
2547
+#+END_SRC
2548
+
2549
+Extract the archive.  This may take a couple of minutes, so don't be alarmed that the system has crashed.
2550
+
2551
+#+BEGIN_SRC: bash
2552
+export HOSTNAME=mydomainname.com
2553
+tar -xjf owncloud.tar.bz2
2554
+#+END_SRC
2555
+
2556
+Move the extracted files to your site and set file permissions.
2557
+
2558
+#+BEGIN_SRC: bash
2559
+cp -r owncloud /var/www/$HOSTNAME/htdocs
2560
+chown -R www-data:www-data /var/www/$HOSTNAME/htdocs/owncloud/apps
2561
+chown -R www-data:www-data /var/www/$HOSTNAME/htdocs/owncloud/config
2562
+chown www-data:www-data /var/www/$HOSTNAME/htdocs/owncloud
2563
+#+END_SRC
2564
+
2565
+Edit the htaccess file for Owncloud.
2566
+
2567
+#+BEGIN_SRC: bash
2568
+emacs /var/www/$HOSTNAME/htdocs/owncloud/.htaccess
2569
+#+END_SRC
2570
+
2571
+Set the following.
2572
+
2573
+#+BEGIN_SRC: bash
2574
+php_value upload_max_filesize 512M
2575
+php_value post_max_size 512M
2576
+php_value memory_limit 32M
2577
+#+END_SRC
2578
+
2579
+Save and exit.
2580
+
2581
+With a web browser visit your domain (mydomainname.com/owncloud) and enter an administrator username and password.
2582
+
2583
+*** Owncloud on Android
2584
+
2585
+First install [[https://f-droid.org/][F-Droid]] and then search for the current Owncloud app.  Once it's installed you'll then be able to log into the BBB with the URL https://mydomainname.com/opencloud, supplying your username and password.
2586
+
2464 2587
 ** Install a Wiki
2465 2588
 
2466 2589
 #+BEGIN_VERSE
@@ -2500,7 +2623,7 @@ Edit the Apache configuration for your wiki site.
2500 2623
 emacs /etc/apache2/sites-available/$HOSTNAME
2501 2624
 #+END_SRC
2502 2625
 
2503
-The settings should look something like the following.
2626
+The settings should look something like the following.  Replace /mywikidomainname.com/ with your wiki domain name.
2504 2627
 
2505 2628
 #+BEGIN_SRC: bash
2506 2629
 <VirtualHost *:80>
@@ -2709,129 +2832,6 @@ If you need to be able to upload large files to the wiki then edit */etc/php5/ap
2709 2832
 
2710 2833
 Now you can visit your wiki and begin editing.
2711 2834
 
2712
-** Install Owncloud
2713
-
2714
-#+BEGIN_VERSE
2715
-/It's not water vapour/
2716
-
2717
-#+END_VERSE
2718
-
2719
-Owncloud will allow you to upload and download files, share photos, collaboratively edit documents, have a calendar and more.  You should be warned that Owncloud runs quite slowly via an ordinary web browser, but it can be a convenient way to access and share your data from any location in a reasonably secure manner.
2720
-
2721
-*** Server Installation
2722
-
2723
-Install some dependencies:
2724
-
2725
-#+BEGIN_SRC: bash
2726
-apt-get install apache2 php5 php5-gd php-xml-parser php5-intl
2727
-apt-get install php5-sqlite php5-mysql smbclient curl libcurl3 php5-curl
2728
-#+END_SRC
2729
-
2730
-It's very important that /mod_php5/ and not /mod_php5filter/ be installed.  If you have /mod_php5filter/ installed then Owncloud will always fail to install.
2731
-
2732
-#+BEGIN_SRC: bash
2733
-a2dismod php5filter
2734
-apt-get install libapache2-mod-php5
2735
-#+END_SRC
2736
-
2737
-Ensure that the size of files which may be uploaded or downloaded is large enough.
2738
-
2739
-#+BEGIN_SRC: bash
2740
-emacs /etc/php5/apache2/php.ini
2741
-#+END_SRC
2742
-
2743
-Set the following:
2744
-
2745
-#+BEGIN_SRC: bash
2746
-upload_max_filesize = 512M
2747
-post_max_size = 512M
2748
-#+END_SRC
2749
-
2750
-Save and exit, then edit your Apache configuration.
2751
-
2752
-#+BEGIN_SRC: bash
2753
-export HOSTNAME=mydomainname.com
2754
-emacs /etc/apache2/sites-available/$HOSTNAME
2755
-#+END_SRC
2756
-
2757
-And add the following, to the 443 VirtualHost section.  Really we only will want to be using Owncloud with HTTPS to ensure some level of security and avoidance of dragnet surveillance.
2758
-
2759
-#+BEGIN_SRC: bash
2760
-  <Directory /var/www/mydomainname.com/htdocs/owncloud>
2761
-    Options Indexes FollowSymLinks MultiViews
2762
-    AllowOverride All
2763
-    Order allow,deny
2764
-    allow from all
2765
-  </Directory>
2766
-#+END_SRC
2767
-
2768
-To ensure that nobody logs in insecurely add the following to the 80 VirtualHost section.
2769
-
2770
-#+BEGIN_SRC: bash
2771
-  <Directory /var/www/mydomainname.com/htdocs/owncloud>
2772
-    deny from all
2773
-  </Directory>
2774
-#+END_SRC
2775
-
2776
-Save and exit, then restart apache.
2777
-
2778
-#+BEGIN_SRC: bash
2779
-service apache2 restart
2780
-#+END_SRC
2781
-
2782
-Download owncloud.
2783
-
2784
-#+BEGIN_SRC: bash
2785
-cd /tmp
2786
-wget http://freedombone.uk.to/owncloud.tar.bz2
2787
-#+END_SRC
2788
-
2789
-Verify the download:
2790
-
2791
-#+BEGIN_SRC: bash
2792
-md5sum owncloud.tar.bz2
2793
-f43eabb746b5e339ee70d0a6aaf4a49c
2794
-#+END_SRC
2795
-
2796
-Extract the archive.  This may take a couple of minutes, so don't be alarmed that the system has crashed.
2797
-
2798
-#+BEGIN_SRC: bash
2799
-export HOSTNAME=mydomainname.com
2800
-tar -xjf owncloud.tar.bz2
2801
-#+END_SRC
2802
-
2803
-Move the extracted files to your site and set file permissions.
2804
-
2805
-#+BEGIN_SRC: bash
2806
-cp -r owncloud /var/www/$HOSTNAME/htdocs
2807
-chown -R www-data:www-data /var/www/$HOSTNAME/htdocs/owncloud/apps
2808
-chown -R www-data:www-data /var/www/$HOSTNAME/htdocs/owncloud/config
2809
-chown www-data:www-data /var/www/$HOSTNAME/htdocs/owncloud
2810
-#+END_SRC
2811
-
2812
-Edit the htaccess file for Owncloud.
2813
-
2814
-#+BEGIN_SRC: bash
2815
-emacs /var/www/$HOSTNAME/htdocs/owncloud/.htaccess
2816
-#+END_SRC
2817
-
2818
-Set the following.
2819
-
2820
-#+BEGIN_SRC: bash
2821
-php_value upload_max_filesize 512M
2822
-php_value post_max_size 512M
2823
-php_value memory_limit 32M
2824
-#+END_SRC
2825
-
2826
-Save and exit.
2827
-
2828
-With a web browser visit your domain (mydomainname.com/owncloud) and enter an administrator username and password.
2829
-
2830
-*** Owncloud on Android
2831
-
2832
-First install [[https://f-droid.org/][F-Droid]] and then search for the current Owncloud app.  Once it's installed you'll then be able to log into the BBB with the URL https://mydomainname.com/opencloud, supplying your username and password.
2833
-
2834 2835
 ** Install Bitmessage
2835 2836
 
2836 2837
 #+BEGIN_VERSE