2/4/2016 - 4:18 PM

Installing Resourcespace on Ubuntu

Installing Resourcespace on Ubuntu

1. Install Ubuntu 14.04

2. Install XRDP

3. Install software and modules
  Install PHP LDAP module for Active Directory plugin (posixlpauth)
  sudo wget-install php5-ldap

4. Edit php.ini (/etc/php5/apache2/)
	memory_limit 200M
	post_max_size 100M
	upload_max_filesize 100M
	short_open_tag Off

5. Install cifs utils and smb(for connecting to active directory)
	sudo apt-get install samba
	sudo apt-get install cifs-utils

6. Add ubuntu box to windows active directory
7. For external fileshare

	a) Edit /root/.smbcredentials

	b) edit /etc/fstab
		//\0402.0/Resourcespace /var/www/html/filestore cifs vers=1.0,rw,credentials=/root/.smbcredentials,uid=www-data,gid=www-data,file_mode=0777,dir_mode=0777,iocharset=utf8,sec=ntlm 0 0

	c) Remove indexes option for filestore in /etc/apache2/apache2.conf
		<Directory /var/www/html/filestore>
			Options FollowSymLinks
			AllowOverride None
			Require all granted
	d) add www-data to server user (This didn't fix my problem)
	sudo adduser $USER www-data ( (
#Both are running Ubuntu 15.10 with Apache 2, MySql 5.6 and PHP 5.6.11
Login: jjbadmin
Password: ************
#MySQL Root user password is ************ as well. I have not created the initial database, so please feel free to run the initial setup with these commands:

ssh jjbadm@

#update machine
sudo apt-get update

#install php5 support/subversion
#sudo apt-get install php5-dev php5-gd php5-mysql php5-ldap subversion
sudo apt-get install php-dev php-gd php-mysql php-ldap

#install subversion
sudo apt-get install subversion

#install vim/nano/imagemagick
#sudo apt-get install vim nano imagemagick
sudo apt-get install imagemagick # f nano

#install other modules
sudo apt-get install ghostscript antiword xpdf libav-tools libimage-exiftool-perl cron wget

cd /var/www/html/
#download resourcespace
sudo svn co ./
svn co[version] ./ # see
sudo mkdir filestore
sudo chown www-data:www-data ./*
sudo chmod 777 filestore
sudo chmod 777 include # for install

#change user:group of resourcespace files to apache user
sudo chown www-data:www-data ./

#Setup PHP

#Setup MySql
sudo msyql_secure_installation

#change mysql password
mysqladmin -u root -p password ********

# add to /etc/apache2/apache2.conf
<Directory /var/www/html/filestore>
			Options FollowSymLinks
			AllowOverride None
			Require all granted


sudo umount -f //\ 2.0/Resourcespace


sudo mount -a (if set up in fstab)

sudo mount -t cifs //\ 2.0/Resourcespace /var/www/html/filestore -o rw username=jjbadmin

/etc/fstab //\0402.0/Resourcespace /var/www/html/filestore cifs domain=jackmanreinvent,uid=www-data,gid=www-data,credentials=/root/.smbcredentials,file_mode=0777,dir_mode=0777,iocharset=utf8,sec=ntlm 0 0

/// /var/www/resourcespace/filestore cifs credentials=/<credential_file>,gid=www-data,uid=www-data,file_mode=0777,dir_mode=0777,iocharset=utf8 0 0

Add Path to bash $PATH variable PATH=$PATH:/path/to/directory/to/add

Apache /etc/apache2/apache2.conf /etc/apache2/envvars

PHP /etc/php5/apache2/php.ini

Logs /var/log/apache2/error.log

in /pages/setup.php

line 222: $develmode=true;

create devel.config.php in /include/
sudo service apache2 restart

Install PBIS Open wget

Connect to LDAP with PBOpen sudo domainjoin-cli join --disable ssh jjbadmin

LDAP Server:
LDAP Type: Active Directory
AD Admin: ********
AD Password: *******
AD Domain:
Use Single Domain: check
Base DN: dc=jackmanreinvents,dc=com
ls /etc/apache2/mods-enabled/
ls /etc/apache2/mods-disabled/