Installing Resourcespace on Ubuntu
1. Install Ubuntu 14.04
2. Install XRDP
http://www.tweaking4all.com/software/linux-software/use-xrdp-remote-access-ubuntu-14-04/
3. Install software and modules
http://wiki.resourcespace.org/index.php/Installing_on_Ubuntu_Linux
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
http://www.kiloroot.com/add-ubuntu-14-04-lts-server-to-a-windows-active-directory-domain-fullest-integration/
https://community.spiceworks.com/how_to/80336-join-ubuntu-14-04lts-to-a-windows-domain-using-pbis-open
7. For external fileshare
http://wiki.resourcespace.org/index.php/External_filestore_tips
a) Edit /root/.smbcredentials
username=www-data
password=********
domain=JACKMANREINVENT
b) edit /etc/fstab
//netapp.jackmanreinvents.com/Joey\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
</Directory>
d) add www-data to server user (This didn't fix my problem)
sudo adduser $USER www-data
completed.jackmanreinvents.com (10.0.40.7)
content.jackmanreinvents.com (10.0.40.8)
#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@10.0.40.8
#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 http://svn.montala.net/svn/resourcespace ./
svn co http://svn.resourcespace.org/svn/rs/releases/[version] ./ # see http://www.resourcespace.org/svn
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
http://wiki.resourcespace.org/index.php/Installation
#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
</Directory>
TO UNMOUNT A SHARED DIRECTORY
sudo umount -f //netapp.jackmanreinvents.com/Joey\ 2.0/Resourcespace
TO MOUNT A SHARED DIRECTORY
sudo mount -a (if set up in fstab)
sudo mount -t cifs //netapp.jackmanreinvents.com/Joey\ 2.0/Resourcespace /var/www/html/filestore -o rw username=jjbadmin
/etc/fstab //netapp.jackmanreinvents.com/Joey\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 http://download.beyondtrust.com/PBISO/8.0.0.2016/linux.deb.x64/pbis-open-8.0.0.2016.linux.x86_64.deb.sh
Connect to LDAP with PBOpen sudo domainjoin-cli join --disable ssh jackmanreinvents.com jjbadmin
LDAP Server: jackman2012-pdc.jackmanreinvents.com:389
LDAP Type: Active Directory
AD Admin: ********
AD Password: *******
AD Domain: jackmanreinvents.com
Use Single Domain: check
Base DN: dc=jackmanreinvents,dc=com
ls /etc/apache2/mods-enabled/
ls /etc/apache2/mods-disabled/