Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- sudo su
- apt-get update && apt-get upgrade
- apt-get install apache2
- ip addr show eth0 | grep inet | awk '{ print $2; }' | sed 's/\/.*$//'
- curl http://icanhazip.com
- sudo apt-get install mysql-server php5-mysql
- sudo mysql_install_db
- sudo mysql_secure_installation
- sudo apt-get install php5 libapache2-mod-php5 php5-mcrypt
- apt-get install php5-mysql php5-curl php5-gd
- php5-idn php-pear php5-imagick php5-imap php5-mcrypt php5-memcache
- php5-ming php5-ps php5-pspell php5-recode php5-snmp php5-sqlite
- php5-tidy php5-xmlrpc php5-xsl
- sudo nano /etc/apache2/mods-enabled/dir.conf
- -----------------------------------------------------------------
- Finden und einfügen :
- <IfModule mod_dir.c>
- DirectoryIndex index.html index.cgi index.pl index.php index.xhtml index.htm
- </IfModule>
- (index.php)
- ----------------------------------------------------------------
- sudo service apache2 restart
- (Web Server Restart) (ON:OFF) = status OK
- * Kontrole Ob alle php5 module da sind
- apt-cache search php5-
- "hp5-cgi - server-side, HTML-embedded scripting language (CGI binary)
- php5-cli - command-line interpreter for the php5 scripting language
- php5-common - Common files for packages built from the php5 source
- php5-curl - CURL module for php5
- php5-dbg - Debug symbols for PHP5
- php5-dev - Files for PHP5 module development
- php5-gd - GD module for php5
- . . ."
- -------------------------------------------------------------------
- sudo apt-get install php5-cli
- sudo nano /var/www/html/info.php
- <?php
- phpinfo();
- ?>
- test -> localhost/info.php
- ------------------------------------------------------------------
- apt-get install phpmyadmin
- sudo apt install php-gettext
- nano /etc/apache2/apache2.conf
- Include /etc/phpmyadmin/apache.conf
- /etc/init.d/apache2 restart
- wen nicht klappt dan
- sudo ln -s /etc/phpmyadmin/apache.conf /etc/apache2/conf-available/phpmyadmin.conf
- sudo a2enconf phpmyadmin
- sudo ln -s /usr/share/phpmyadmin /var/www
- sudo service apache2 reload
- ENDE "WEB HOSTING"
- -----------------------------------------------------------------
- SEEDDMS Instalation 16.4.3 Ubuntu .
- Offne das Terminal :
- sudo mkdir /home/www-data
- dan auf die seite zugreifen :
- https://sourceforge.net/projects/seeddms/files/seeddms-5.1.4/
- Alles runterladen und dan in /home/www-data transferiren
- tar -xvf seeddms-quickstart-5.1.4.tgz
- sudo apt-get install php-pear
- sudo apt-get install poppler-utils catdoc
- sudo pear install (Pakete die da sind - Core , Lucene , Preview)
- sudo pear install log
- sudo pear channel-discover pear.dotkernel.com/zf1/svn
- sudo pear install zend/zend
- sudo pear upgrade zend/zend
- sudo chown -R www-data:www-data /home/www-data
- sudo nano /etc/apache2/sites-enabled/000-default.conf
- <Directory/>
- Require all granted
- </Directory>
- Alias /seeddms “/home/www-data/seeddms51x/www/“
- <Directory "="" home="" www-data="" seeddms51x="" www="" "="">
- DirectoryIndex index.php
- AllowOverride All
- Order deny,allow
- Deny from all
- Allow from all
- </Directory>
- Wen nicht funktioniert dan benutzen wir das
- <VirtualHost *:80="">
- ServerAdmin webmaster@localhost
- DocumentRoot /var/www/html
- ErrorLog ${APACHE_LOG_DIR}/error.log
- CustomLog ${APACHE_LOG_DIR}/access.log combined
- <Directory />
- Require all granted
- </Directory>
- Alias /seeddms “/home/www-data/seeddms51x/www/"
- <Directory "/home/www-data/seeddms51x/www/">
- DirectoryIndex index.php
- AllowOverride All
- Order deny,allow
- Deny from all
- Allow from all
- </Directory>
- </VirtualHost>
- sudo a2enmod rewrite
- sudo service apache2 restart
- cd /home/www-data/seeddms51x/www/conf
- cp settings.xml settings.xml.original
- sudo touch /home/www-data/seeddms51x/seeddms-5.1.4/conf/ENABLE_INSTALL_TOOL
- localhost/seeddms/install
- -----------------------------------------------------------------------------------------------
- PART 2#
- ownload four tar balls from;
- http://sourceforge.net/projects/seeddms/files/seeddms-4.0.0-pre5/
- seeddms-4.0.0-pre5.tar.gz
- SeedDMS_Preview-1.0.0.tgz
- SeedDMS_Lucene-1.1.1.tgz
- SeedDMS_Core-4.0.0pre5.tgz
- Install as follows the pear components:
- sudo pear install SeedDMS_Core-4.0.0pre5.tgz
- sudo pear install SeedDMS_Preview-1.0.0.tgz
- sudo pear install SeedDMS_Lucene-1.1.1.tgz
- Download and install the pear Log application:
- wget http://download.pear.php.net/package/Log-1.12.7.tgz
- sudo pear install Log-1.12.7.tgz
- And zend:
- sudo pear channel-discover zend.googlecode.com/svn
- sudo pear install zend/zend
- I installed the following packages, not all of which may be required
- and you may require other packages, please check the dependencies on
- the README.md for example for full text search, you need pdftotext,
- catdoc, xls2csv or scconvert, cat, id3
- sudo apt-get install php5-mysql php5-mysqlnd libapache2-mod-php5
- sudo apt-get install pdo_mysql php5-gd id3 scconvert
- sudo apt-get install php-http-webdav-server
- sudo apt-get install zend-framework zend-framework-bin
- sudo apt-get install libzend-framework-zendx-php
- sudo apt-get install libjs-dojo-core libjs-dojo-dijit libjs-dojo-dojox
- sudo apt-get install libzend-framework-php (It kept bitching about Zend so I just kept piling on packages until it worked)
- mbstring is already a part of libapache2-mod-php5
- pepper:~> show libapache2-mod-php5|grep mbstring
- mbstring mhash openssl pcre Phar posix Reflection session shmop SimpleXML
- Define three locations:
- [1] Some cosy place in yourfile system for the source files to which you
- will link
- I chose "/opt/seeddms-4.0.0-pre5/"
- untar seeddms-4.0.0-pre5.tar.gz into this location
- [2] Make a directory and three subdirectories for the data for your site;
- I chose to do this under "/opt/dms/seeddms_multisite_test/data"
- sudo mkdir -p /opt/dms/seeddms_multisite_test/data/lucene/
- sudo mkdir /opt/dms/seeddms_multisite_test/data/staging/
- sudo mkdir /opt/dms/seeddms_multisite_test/data/cache/
- Give ownership (or write access) to your httpd process to those directories;
- sudo chown -cvR www-data /opt/dms/seeddms_multisite_test/data/
- [3] Somewhere under your www root, make a directory for the sources of
- your site:
- These can be of course under different virtual domains.
- /var/www/www.mydomain.eu/seeddms_multisite_test
- cd /var/www/www.mydomain.eu/seeddms_multisite_test;
- sudo ln -s /opt/seeddms-4.0.0-pre5 src (README.md does not include the `src'!)
- ln -s src/inc inc
- ln -s src/op op
- ln -s src/out out
- ln -s src/js js
- ln -s src/views views
- ln -s src/languages languages
- ln -s src/styles styles
- ln -s src/themes themes
- ln -s src/install install
- ln -s src/index.php index.php
- If need be;
- sudo chown -cvR www-data /var/www/www.mydomain.eu/seeddms_multisite_test/
- Create Dataabse;
- Run the following sql commands to create your db and a user with
- appropriate privileges.
- mysql> create database seeddms_multisite_test;
- mysql> grant all privileges on seeddms_multisite_test.* to seeddms@localhost identified by 'your_passwd';
- Point your browser to the location of your instance as in [3] above
- and /install
- I resorted to a text browser on my server due to failure to access the
- db from a remote browser;
- pepper:~> elinks www.mydomain.eu/seeddms_multisite_test/install
- This is how I filled it in;
- SeedDMS: INSTALL
- SeedDMS Installation for version 4.0.0
- Server settings
- Root directory: /opt/seeddms-4.0.0-pre5/_______________________
- Http Root: /seeddms_multisite_test/_______________________
- Content directory: /opt/dms/seeddms_multisite_test/data___________
- Directory for full text index: /opt/dms/seeddms_multisite_test/data/lucene/___
- Directory for partial uploads: /opt/dms/seeddms_multisite_test/data/staging/__
- Core SeedDMS directory: _______________________________________________
- Lucene SeedDMS directory: _______________________________________________
- Extra PHP include Path: _______________________________________________
- Database settings
- Database Type: mysql________________
- Server name: localhost____________
- Database: seeddms_multisite_tes
- Username: seeddms______________
- Password: ********_____________
- Create database tables: [X]
- [ Apply ]
- If all is okay (and I hope this happens more quickly for you than for me),
- you should be notified accordingly and invited to login to your new site
- with credentials admin/admin. (This password is cleverly set to expire
- in a couple of days. So do not get a shock like I did when it suddenly
- does not work).
- -------------------------------------------------------------------------------
- To make additional sites;
- If you wish to make additional sites, you need to copy the data directories thusly;
- sudo cp -avr /opt/dms/seeddms_multisite_test /opt/dms/seeddms_multisite_test_2
- And the sources thusly;
- sudo cp -avr /var/www/www.mydomain.eu/seeddms_multisite_test /var/www/www.mydomain.eu/seeddms_multisite_test_2
- And of course make data directories for this site:
- sudo mkdir -p /opt/dms/seeddms_multisite_test_2/data/lucene/
- sudo mkdir /opt/dms/seeddms_multisite_test_2/data/staging/
- sudo mkdir /opt/dms/seeddms_multisite_test_2/data/cache/
- Then create another database as shown above but of course give the db
- another name.
- Run the install again from the new location.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement