A simple web file serve with AD auth
sudo yum -y install git rpmbuild rpmdevtools
git config --global user.name 'First Lastname'
git config --global user.email 'first.lastname@example.local'
git config --global color.ui true
rpmdev-setuptree
mkdir ~/src
cd ~/src
git clone https://github.com/JasonSFuller/depot.git
cd ~/src/depot/
rpmbuild -ba depot.spec --define 'version x.y.z' --define 'release 1'
EPEL is required for php-mcrypt. If CentOS Extras is installed (which it is, by default), you should simply be able to:
sudo yum -y install epel-release
Otherwise, pick the appropriate section for your release:
# centos6, rhel6, ol6, etc
wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
sudo rpm -Uvh epel-release-6*.rpm
# centos7, rhel7, ol7, etc
wget http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-5.noarch.rpm
sudo rpm -Uvh epel-release-7*.rpm
# For more information on EPEL, visit: https://fedoraproject.org/wiki/EPEL
Then, once the RPM is built (above), you can simply:
sudo yum install /path/to/depot-x.y.z.DIST.rpm
IMPORTANT: Since Apache and PHP are required, both will be installed as
dependencies of depot
. So, you need to do the appropriate things to configure
both applications for your environment. Specifically, you'll need a proper
hostname to be configured (for Apache), and you'll need to set the timezone for
PHP:
echo 'date.timezone = "America/New_York"' | sudo tee /etc/php.d/timezone.ini
Edit the Depot application config file and Apache config file to fit your environment:
sudo vim /opt/depot/depot.conf
sudo vim /etc/httpd/conf.d/depot.conf
Finally, don't forget to restart Apache for your config changes to take effect:
service httpd restart
NOTE: Apache my require further configuration, but it is beyond the scope of this document. For example, Apache should be set to start on boot, a proper hostname should be set, real SSL certificates should be generated and used, etc.
- pass in http challenge/response info (for curl, wget, etc)
- upload to dir
- checksum modal window
- https://www.exchangecore.com/blog/how-use-ldap-active-directory-authentication-php/
- http://eddmann.com/posts/securing-sessions-in-php/
- http://getbootstrap.com/examples/signin/
- http://www.directorylister.com/
- http://fortawesome.github.io/Font-Awesome/icons/
- http://stackoverflow.com/questions/2637945/getting-relative-path-from-absolute-path-in-php
- http://www.media-division.com/php-download-script-with-resume-option/
- http://www.freeformatter.com/mime-types-list.html
- http://www.electrictoolbox.com/jquey-make-entire-table-row-clickable/